Sophie

Sophie

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

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.9. 疑似カラム (pseudo_column) &mdash; groonga v3.0.5 documentation</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>
    <link rel="shortcut icon" href="../_static/favicon.ico"/>
    <link rel="top" title="groonga v3.0.5 documentation" href="../index.html" />
    <link rel="up" title="8. リファレンスマニュアル" href="../reference.html" />
    <link rel="next" title="8.10. grn_expr" href="grn_expr.html" />
    <link rel="prev" title="8.8.1. QueryExpanderTSV" href="query_expanders/tsv.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">An open-source fulltext search engine and column store.</span>
    </a>
  </h1>

  <div class="other-language-links">
    <ul>
      <li><a href="../../../ja/html/reference/pseudo_column.html"><img src="../_static/jp.png" alt="日本語">日本語版はこちら</a></li>
    </ul>
  </div>
</div>
  

    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="grn_expr.html" title="8.10. grn_expr"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="query_expanders/tsv.html" title="8.8.1. QueryExpanderTSV"
             accesskey="P">previous</a> |</li>
        <li><a href="../index.html">groonga v3.0.5 documentation</a> &raquo;</li>
          <li><a href="../reference.html" accesskey="U">8. リファレンスマニュアル</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="pseudo-column">
<h1>8.9. 疑似カラム (pseudo_column)<a class="headerlink" href="#pseudo-column" title="Permalink to this headline">¶</a></h1>
<div class="section" id="id1">
<h2>8.9.1. 名前<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h2>
<p>疑似カラム</p>
</div>
<div class="section" id="id2">
<h2>8.9.2. 説明<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h2>
<p>groongaのデータベースで作成したテーブルには、いくつかのカラムが自動的に定義されます。</p>
<p>これらのカラムはいずれもアンダースコア('_')で始まる名前が付与されます。定義される疑似カラムは、テーブルの種類によって異なります。</p>
<p><tt class="docutils literal"><span class="pre">_id</span></tt></p>
<blockquote>
<div>レコードに付与される一意な番号です。全てのテーブルに定義されます。値の範囲は1〜1073741824の整数で、通常はレコードを追加した順に1ずつ加算されます。_idの値は不変で、レコードが存在する限り変更することはできません。ただし、削除されたレコードの_idの値は再利用されます。</div></blockquote>
<p><tt class="docutils literal"><span class="pre">_key</span></tt></p>
<blockquote>
<div>レコードの主キー値を表します。主キーを持つテーブルのみに定義されます。主キー値はテーブルの中で一意であり、変更することはできません。</div></blockquote>
<p><tt class="docutils literal"><span class="pre">_value</span></tt></p>
<blockquote>
<div>レコードの値を表します。value_typeを指定したテーブルのみに定義されます。自由に変更可能です。</div></blockquote>
<p><tt class="docutils literal"><span class="pre">_score</span></tt></p>
<blockquote>
<div><p>各レコードのスコア値を表します。検索結果として生成されたテーブルのみに定義されます。</p>
<p>検索処理を実行する過程で値が設定されますが、自由に変更可能です。</p>
</div></blockquote>
<p><tt class="docutils literal"><span class="pre">_nsubrecs</span></tt></p>
<blockquote>
<div>主キーの値が同一であったレコードの件数を表します。検索結果として生成されたテーブルのみに定義されます。グループ化(drilldown)処理を実行すると、グループ化前のテーブルにおいて、グループ化キーの値が同一であったレコードの件数が、グループ化処理の結果を格納するテーブルの_nsubrecsに記録されます。</div></blockquote>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
  <h3><a href="../index.html">Table Of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">8.9. 疑似カラム (pseudo_column)</a><ul>
<li><a class="reference internal" href="#id1">8.9.1. 名前</a></li>
<li><a class="reference internal" href="#id2">8.9.2. 説明</a></li>
</ul>
</li>
</ul>

  <h4>Previous topic</h4>
  <p class="topless"><a href="query_expanders/tsv.html"
                        title="previous chapter">8.8.1. QueryExpanderTSV</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="grn_expr.html"
                        title="next chapter">8.10. grn_expr</a></p>
  <h3>This Page</h3>
  <ul class="this-page-menu">
    <li><a href="../_sources/reference/pseudo_column.txt"
           rel="nofollow">Show Source</a></li>
  </ul>
<div id="searchbox" style="display: none">
  <h3>Quick search</h3>
    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    Enter search terms or a module, class or function name.
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="grn_expr.html" title="8.10. grn_expr"
             >next</a> |</li>
        <li class="right" >
          <a href="query_expanders/tsv.html" title="8.8.1. QueryExpanderTSV"
             >previous</a> |</li>
        <li><a href="../index.html">groonga v3.0.5 documentation</a> &raquo;</li>
          <li><a href="../reference.html" >8. リファレンスマニュアル</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
        &copy; Copyright 2009-2013, Brazil, Inc.
    </div>
  </body>
</html>