accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ujustgotbi...@apache.org
Subject git commit: ACCUMULO-1669 Fix documentation to use example code that compiles when using a Mutation.
Date Thu, 27 Feb 2014 05:01:01 GMT
Repository: accumulo
Updated Branches:
  refs/heads/1.6.0-SNAPSHOT e9aafc23c -> f71720ab6


ACCUMULO-1669 Fix documentation to use example code that compiles when using a Mutation.


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/f71720ab
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/f71720ab
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/f71720ab

Branch: refs/heads/1.6.0-SNAPSHOT
Commit: f71720ab6dbdf99a5625e784a5b280939bb7b5fe
Parents: e9aafc2
Author: Bill Slacum <ujustgotbilld@apache.org>
Authored: Wed Feb 26 23:54:30 2014 -0500
Committer: Bill Slacum <ujustgotbilld@apache.org>
Committed: Wed Feb 26 23:54:30 2014 -0500

----------------------------------------------------------------------
 .../accumulo_user_manual/chapters/table_design.tex     | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/f71720ab/docs/src/main/latex/accumulo_user_manual/chapters/table_design.tex
----------------------------------------------------------------------
diff --git a/docs/src/main/latex/accumulo_user_manual/chapters/table_design.tex b/docs/src/main/latex/accumulo_user_manual/chapters/table_design.tex
index cd75b2f..a833115 100644
--- a/docs/src/main/latex/accumulo_user_manual/chapters/table_design.tex
+++ b/docs/src/main/latex/accumulo_user_manual/chapters/table_design.tex
@@ -32,15 +32,16 @@ if we have the following data in a comma-separated file:
 \end{verbatim}
 \normalsize
 
-We might choose to store this data using the userid as the rowID and the rest of the
-data in column families:
+We might choose to store this data using the userid as the rowID, the column
+name in the column family, and a blank column qualifier:
 
 \small
 \begin{verbatim}
-Mutation m = new Mutation(new Text(userid));
-m.put(new Text("age"), age);
-m.put(new Text("address"), address);
-m.put(new Text("balance"), account_balance);
+Mutation m = new Mutation(userid);
+final String column_qualifier = "";
+m.put("age", column_qualifier, age);
+m.put("address", column_qualifier, address);
+m.put("balance", column_qualifier, account_balance);
 
 writer.add(m);
 \end{verbatim}


Mime
View raw message