accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Corey Nolet <cjno...@gmail.com>
Subject Re: accumulo Scanner
Date Fri, 12 Dec 2014 03:36:00 GMT
You're going to want to use WholeRowIterator.decodeRow(entry.getKey(),
entry.getValue()) for that one. You can do:

for(Entry<Key,Value> entry : scanner) {
   for(Entry<Key,Value> actualEntry :
WholeRowIterator.decodeRow(entry.getKey(), entry.getValue()).entrySet()) {
        // do something with actualEntry
   }
}

On Thu, Dec 11, 2014 at 10:24 PM, panqingcui@163.com <panqingcui@163.com>
wrote:

> I try to use the WholeRowIterator, the same rowkey data into a line, Now,
> Value contains ColumnFamily, ColumnQualifier, value´╝îbut the value of Value
> should be how to analysis?
>
>  for (Entry<Key, Value> entry : scanner) {
>             log.info("" + entry.getKey() + "," + entry.getValue());
>         }
>
>
>
>
> --
> View this message in context:
> http://apache-accumulo.1065345.n5.nabble.com/accumulo-Scanner-tp12506p12552.html
> Sent from the Developers mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message