You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by dm...@apache.org on 2011/10/16 23:03:25 UTC
svn commit: r1184932 - /hbase/trunk/src/docbkx/book.xml
Author: dmeil
Date: Sun Oct 16 21:03:25 2011
New Revision: 1184932
URL: http://svn.apache.org/viewvc?rev=1184932&view=rev
Log:
HBASE-4600 book.xml
Modified:
hbase/trunk/src/docbkx/book.xml
Modified: hbase/trunk/src/docbkx/book.xml
URL: http://svn.apache.org/viewvc/hbase/trunk/src/docbkx/book.xml?rev=1184932&r1=1184931&r2=1184932&view=diff
==============================================================================
--- hbase/trunk/src/docbkx/book.xml (original)
+++ hbase/trunk/src/docbkx/book.xml Sun Oct 16 21:03:25 2011
@@ -421,7 +421,8 @@ put.add(Bytes.toBytes("cf"), Bytes.toByt
htable.put(put);
</programlisting>
Caution: the version timestamp is internally by HBase for things like time-to-live calculations.
- It's usually best to avoid setting the timestamp yourself.
+ It's usually best to avoid setting this timestamp yourself. Prefer using a separate
+ timestamp attribute of the row, or have the timestamp a part of the rowkey, or both.
</para>
</section>
@@ -1614,25 +1615,27 @@ scan.setFilter(filter);
<para>Even though these are for the same row, a KeyValue is created for each column:</para>
<para>Key portion for Put #1:
<itemizedlist>
- <listitem>rowlength (4)</listitem>
- <listitem>row (row1)</listitem>
- <listitem>columnfamilylength (2)</listitem>
- <listitem>columnfamily (cf)</listitem>
- <listitem>columnqualifier (attr1)</listitem>
- <listitem>timestamp (server time of Put)</listitem>
- <listitem>keytype (Put)</listitem>
+ <listitem>rowlength <code>------------> 4</code></listitem>
+ <listitem>row <code>-----------------> row1</code></listitem>
+ <listitem>columnfamilylength <code>---> 2</code></listitem>
+ <listitem>columnfamily <code>--------> cf</code></listitem>
+ <listitem>columnqualifier <code>------> attr1</code></listitem>
+ <listitem>timestamp <code>-----------> server time of Put</code></listitem>
+ <listitem>keytype <code>-------------> Put</code></listitem>
</itemizedlist>
</para>
<para>Key portion for Put #2:
<itemizedlist>
- <listitem>rowlength (4)</listitem>
- <listitem>row (row1)</listitem>
- <listitem>columnfamilylength (2)</listitem>
- <listitem>columnfamily (cf)</listitem>
- <listitem>columnqualifier (attr2)</listitem>
- <listitem>timestamp (server time of Put)</listitem>
- <listitem>keytype (Put)</listitem>
+ <listitem>rowlength <code>------------> 4</code></listitem>
+ <listitem>row <code>-----------------> row1</code></listitem>
+ <listitem>columnfamilylength <code>---> 2</code></listitem>
+ <listitem>columnfamily <code>--------> cf</code></listitem>
+ <listitem>columnqualifier <code>------> attr2</code></listitem>
+ <listitem>timestamp <code>-----------> server time of Put</code></listitem>
+ <listitem>keytype <code>-------------> Put</code></listitem>
</itemizedlist>
+ <!-- trying to get the above arrows to line up at the same horizontal position has proven
+ harder than I thought -->
</para>
</section>
<para>It is critical to understand that the rowkey, ColumnFamily, and column (aka columnqualifier) are embedded within