Sophie

Sophie

distrib > Fedora > 18 > x86_64 > media > updates > by-pkgid > e450e7f3d6075c4a54de19e68d38177f > files > 597

groonga-doc-3.0.5-1.fc18.x86_64.rpm


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>8.3.8. column_list &mdash; groonga v3.0.5ドキュメント</title>
    
    <link rel="stylesheet" href="../../_static/groonga.css" type="text/css" />
    <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '../../',
        VERSION:     '3.0.5',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="../../_static/jquery.js"></script>
    <script type="text/javascript" src="../../_static/underscore.js"></script>
    <script type="text/javascript" src="../../_static/doctools.js"></script>
    <script type="text/javascript" src="../../_static/translations.js"></script>
    <link rel="shortcut icon" href="../../_static/favicon.ico"/>
    <link rel="top" title="groonga v3.0.5ドキュメント" href="../../index.html" />
    <link rel="up" title="8.3. コマンド" href="../command.html" />
    <link rel="next" title="8.3.9. column_remove" href="column_remove.html" />
    <link rel="prev" title="8.3.7. column_create" href="column_create.html" /> 
  </head>
  <body>
<div class="header">
  <h1 class="title">
    <a id="top-link" href="../../index.html">
      <span class="project">groonga</span>
      <span class="separator">-</span>
      <span class="description">オープンソースのカラムストア機能付き全文検索エンジン</span>
    </a>
  </h1>

  <div class="other-language-links">
    <ul>
      <li><a href="../../../../en/html/reference/commands/column_list.html"><img src="../../_static/us.png" alt="English">English page</a></li>
    </ul>
  </div>
</div>
  

    <div class="related">
      <h3>ナビゲーション</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../../genindex.html" title="総合索引"
             accesskey="I">索引</a></li>
        <li class="right" >
          <a href="column_remove.html" title="8.3.9. column_remove"
             accesskey="N">次へ</a> |</li>
        <li class="right" >
          <a href="column_create.html" title="8.3.7. column_create"
             accesskey="P">前へ</a> |</li>
        <li><a href="../../index.html">groonga v3.0.5ドキュメント</a> &raquo;</li>
          <li><a href="../../reference.html" >8. リファレンスマニュアル</a> &raquo;</li>
          <li><a href="../command.html" accesskey="U">8.3. コマンド</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="column-list">
<h1>8.3.8. column_list<a class="headerlink" href="#column-list" title="このヘッドラインへのパーマリンク">¶</a></h1>
<div class="section" id="id1">
<h2>8.3.8.1. 名前<a class="headerlink" href="#id1" title="このヘッドラインへのパーマリンク">¶</a></h2>
<p>column_list - テーブルに定義されているカラムのリスト表示</p>
</div>
<div class="section" id="id2">
<h2>8.3.8.2. 書式<a class="headerlink" href="#id2" title="このヘッドラインへのパーマリンク">¶</a></h2>
<div class="highlight-none"><div class="highlight"><pre>column_list table
</pre></div>
</div>
</div>
<div class="section" id="id3">
<h2>8.3.8.3. 説明<a class="headerlink" href="#id3" title="このヘッドラインへのパーマリンク">¶</a></h2>
<p>groonga組込コマンドの一つであるcolumn_listについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。</p>
<p>column_listはテーブルに定義されているカラムをリスト表示します。</p>
</div>
<div class="section" id="id4">
<h2>8.3.8.4. 引数<a class="headerlink" href="#id4" title="このヘッドラインへのパーマリンク">¶</a></h2>
<dl class="docutils">
<dt><tt class="docutils literal"><span class="pre">table</span></tt></dt>
<dd>カラム情報を出力するテーブルの名前を指定します。</dd>
</dl>
</div>
<div class="section" id="id5">
<h2>8.3.8.5. 返値<a class="headerlink" href="#id5" title="このヘッドラインへのパーマリンク">¶</a></h2>
<div class="section" id="json">
<h3>8.3.8.5.1. json形式<a class="headerlink" href="#json" title="このヘッドラインへのパーマリンク">¶</a></h3>
<p>カラム名一覧を以下の形式で返却します。:</p>
<div class="highlight-none"><div class="highlight"><pre>[[[カラム情報名1,カラム情報型1],...], カラム情報1,...]
</pre></div>
</div>
<p><tt class="docutils literal"><span class="pre">カラム情報名n</span></tt></p>
<blockquote>
<div><p><tt class="docutils literal"><span class="pre">カラム情報n</span></tt> には複数の情報が含まれますが、そこに入る情報がどんな内容かを示す名前を出力します。
情報名は以下の通りです。</p>
<p><tt class="docutils literal"><span class="pre">id</span></tt></p>
<blockquote>
<div>カラムオブジェクトに割り当てられたID</div></blockquote>
<p><tt class="docutils literal"><span class="pre">name</span></tt></p>
<blockquote>
<div>カラム名</div></blockquote>
<p><tt class="docutils literal"><span class="pre">path</span></tt></p>
<blockquote>
<div>カラム値を格納するファイル名</div></blockquote>
<p><tt class="docutils literal"><span class="pre">type</span></tt></p>
<blockquote>
<div>スカラ型、ベクタ型、インデックス型の種別</div></blockquote>
<p><tt class="docutils literal"><span class="pre">flags</span></tt></p>
<blockquote>
<div>カラムのflags属性</div></blockquote>
<p><tt class="docutils literal"><span class="pre">domain</span></tt></p>
<blockquote>
<div>カラムの値の属する型</div></blockquote>
<p><tt class="docutils literal"><span class="pre">range</span></tt></p>
<blockquote>
<div>テーブルのkeyの型</div></blockquote>
<p><tt class="docutils literal"><span class="pre">source</span></tt></p>
<blockquote>
<div>インデックスカラムのとき、インデックス対象カラム名の配列</div></blockquote>
</div></blockquote>
<p><tt class="docutils literal"><span class="pre">カラム情報型n</span></tt></p>
<blockquote>
<div>カラム情報の型を出力します。</div></blockquote>
<p><tt class="docutils literal"><span class="pre">カラム情報n</span></tt></p>
<blockquote>
<div><tt class="docutils literal"><span class="pre">カラム情報名n</span></tt> で示された情報の配列を出力します。
情報の順序は <tt class="docutils literal"><span class="pre">カラム情報名n</span></tt> の順序と同じです。</div></blockquote>
</div>
</div>
<div class="section" id="id6">
<h2>8.3.8.6. 例<a class="headerlink" href="#id6" title="このヘッドラインへのパーマリンク">¶</a></h2>
<div class="highlight-none"><div class="highlight"><pre>column_list Entry

[[[&quot;id&quot;, &quot;UInt32&quot;],
  [&quot;name&quot;,&quot;ShortText&quot;],
  [&quot;path&quot;,&quot;ShortText&quot;],
  [&quot;type&quot;,&quot;ShortText&quot;],
  [&quot;flags&quot;,&quot;ShortText&quot;],
  [&quot;domain&quot;, &quot;ShortText&quot;],
  [&quot;range&quot;, &quot;ShortText&quot;],
  [&quot;source&quot;,&quot;ShortText&quot;]],
 [258,
  &quot;Entry.body&quot;,
  &quot;test.db.0000102&quot;,
  &quot;var&quot;,
  &quot;COLUMN_SCALAR|COMPRESS_NONE|PERSISTENT&quot;,
  &quot;Entry&quot;,
  &quot;ShortText&quot;,
  []]]
</pre></div>
</div>
<p>注: 実際は改行が入りません。</p>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
  <h3><a href="../../index.html">目次</a></h3>
  <ul>
<li><a class="reference internal" href="#">8.3.8. column_list</a><ul>
<li><a class="reference internal" href="#id1">8.3.8.1. 名前</a></li>
<li><a class="reference internal" href="#id2">8.3.8.2. 書式</a></li>
<li><a class="reference internal" href="#id3">8.3.8.3. 説明</a></li>
<li><a class="reference internal" href="#id4">8.3.8.4. 引数</a></li>
<li><a class="reference internal" href="#id5">8.3.8.5. 返値</a><ul>
<li><a class="reference internal" href="#json">8.3.8.5.1. json形式</a></li>
</ul>
</li>
<li><a class="reference internal" href="#id6">8.3.8.6. 例</a></li>
</ul>
</li>
</ul>

  <h4>前のトピックへ</h4>
  <p class="topless"><a href="column_create.html"
                        title="前の章へ">8.3.7. column_create</a></p>
  <h4>次のトピックへ</h4>
  <p class="topless"><a href="column_remove.html"
                        title="次の章へ">8.3.9. column_remove</a></p>
  <h3>このページ</h3>
  <ul class="this-page-menu">
    <li><a href="../../_sources/reference/commands/column_list.txt"
           rel="nofollow">ソースコードを表示</a></li>
  </ul>
<div id="searchbox" style="display: none">
  <h3>クイック検索</h3>
    <form class="search" action="../../search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="検索" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    モジュール、クラス、または関数名を入力してください
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>ナビゲーション</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../../genindex.html" title="総合索引"
             >索引</a></li>
        <li class="right" >
          <a href="column_remove.html" title="8.3.9. column_remove"
             >次へ</a> |</li>
        <li class="right" >
          <a href="column_create.html" title="8.3.7. column_create"
             >前へ</a> |</li>
        <li><a href="../../index.html">groonga v3.0.5ドキュメント</a> &raquo;</li>
          <li><a href="../../reference.html" >8. リファレンスマニュアル</a> &raquo;</li>
          <li><a href="../command.html" >8.3. コマンド</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
        &copy; Copyright 2009-2013, Brazil, Inc.
    </div>
  </body>
</html>