accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bil...@apache.org
Subject svn commit: r1327986 - in /accumulo: branches/1.4/docs/examples/README branches/1.4/docs/src/user_manual/chapters/table_design.tex site/trunk/content/1.4/accumulo_user_manual.pdf site/trunk/content/1.4/user_manual/Table_Design.mdtext
Date Thu, 19 Apr 2012 15:16:28 GMT
Author: billie
Date: Thu Apr 19 15:16:28 2012
New Revision: 1327986

URL: http://svn.apache.org/viewvc?rev=1327986&view=rev
Log:
ACCUMULO-546 fixed documentation error

Modified:
    accumulo/branches/1.4/docs/examples/README
    accumulo/branches/1.4/docs/src/user_manual/chapters/table_design.tex
    accumulo/site/trunk/content/1.4/accumulo_user_manual.pdf
    accumulo/site/trunk/content/1.4/user_manual/Table_Design.mdtext

Modified: accumulo/branches/1.4/docs/examples/README
URL: http://svn.apache.org/viewvc/accumulo/branches/1.4/docs/examples/README?rev=1327986&r1=1327985&r2=1327986&view=diff
==============================================================================
--- accumulo/branches/1.4/docs/examples/README (original)
+++ accumulo/branches/1.4/docs/examples/README Thu Apr 19 15:16:28 2012
@@ -34,4 +34,4 @@ Commands intended to be run in bash are 
 
 Commands intended to be run in the Accumulo shell are prefixed by '>'.
 
-[1]: /accumulo/1.4/user_manual/Accumulo_Shell.html#User_Administration
+[1]: /1.4/user_manual/Accumulo_Shell.html#User_Administration

Modified: accumulo/branches/1.4/docs/src/user_manual/chapters/table_design.tex
URL: http://svn.apache.org/viewvc/accumulo/branches/1.4/docs/src/user_manual/chapters/table_design.tex?rev=1327986&r1=1327985&r2=1327986&view=diff
==============================================================================
--- accumulo/branches/1.4/docs/src/user_manual/chapters/table_design.tex (original)
+++ accumulo/branches/1.4/docs/src/user_manual/chapters/table_design.tex Thu Apr 19 15:16:28
2012
@@ -158,7 +158,7 @@ indexScanner.setRange(new Range(term, te
 
 // we retrieve the matching rowIDs and create a set of ranges
 for(Entry<Key,Value> entry : indexScanner)
-    matchingRows.add(new Text(entry.getValue()));
+    matchingRows.add(new Text(entry.getKey().getColumnQualifier()));
 
 // now we pass the set of rowIDs to the batch scanner to retrieve them
 BatchScanner bscan = conn.createBatchScanner("table", auths, 10);
@@ -167,7 +167,7 @@ bscan.setRanges(matchingRows);
 bscan.fetchFamily("attributes");
 
 for(Entry<Key,Value> entry : scan)
-    System.out.println(e.getValue());
+    System.out.println(entry.getValue());
 \end{verbatim}
 \normalsize
 

Modified: accumulo/site/trunk/content/1.4/accumulo_user_manual.pdf
URL: http://svn.apache.org/viewvc/accumulo/site/trunk/content/1.4/accumulo_user_manual.pdf?rev=1327986&r1=1327985&r2=1327986&view=diff
==============================================================================
Binary files - no diff available.

Modified: accumulo/site/trunk/content/1.4/user_manual/Table_Design.mdtext
URL: http://svn.apache.org/viewvc/accumulo/site/trunk/content/1.4/user_manual/Table_Design.mdtext?rev=1327986&r1=1327985&r2=1327986&view=diff
==============================================================================
--- accumulo/site/trunk/content/1.4/user_manual/Table_Design.mdtext (original)
+++ accumulo/site/trunk/content/1.4/user_manual/Table_Design.mdtext Thu Apr 19 15:16:28 2012
@@ -121,7 +121,7 @@ To support efficient lookups of multiple
     
     // we retrieve the matching rowIDs and create a set of ranges
     for(Entry<Key,Value> entry : indexScanner)
-        matchingRows.add(new Text(entry.getValue()));
+        matchingRows.add(new Text(entry.getKey().getColumnQualifier()));
     
     // now we pass the set of rowIDs to the batch scanner to retrieve them
     BatchScanner bscan = conn.createBatchScanner("table", auths, 10);
@@ -130,7 +130,7 @@ To support efficient lookups of multiple
     bscan.fetchFamily("attributes");
     
     for(Entry<Key,Value> entry : scan)
-        System.out.println(e.getValue());
+        System.out.println(entry.getValue());
     
 
 One advantage of the dynamic schema capabilities of Accumulo is that different fields may
be indexed into the same physical table. However, it may be necessary to create different
index tables if the terms must be formatted differently in order to maintain proper sort order.
For example, real numbers must be formatted differently than their usual notation in order
to be sorted correctly. In these cases, usually one index per unique data type will suffice.




Mime
View raw message