mikewalch opened a new issue #111: Create class to clean up pulling Fluo data 
from Key/Value pair
URL: https://github.com/apache/fluo/issues/111
 
 
   Fluo stores extra data in Key/Value pairs returned from Accumulo.  This data 
is retrieved using masks.  It would cleaner to hide this hide the masking from 
the user and create in data class that could be called KeyValue.
   
   Current
   
   ``` java
   Entry<Key,Value> entry = iterator.next()
   long colType = entry.getKey().getTimestamp() & ColumnUtil.PREFIX_MASK;
   long ts = entry.getKey().getTimestamp() & ColumnUtil.TIMESTAMP_MASK;
   ```
   
   Using KeyValue
   
   ``` java
   KeyValue kv = iterator.next()
   ColumnType colType = kv.getColumnType();
   long ts = kv.getTimestamp();
   ```
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to