You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@fluo.apache.org by GitBox <gi...@apache.org> on 2018/07/06 13:37:53 UTC

[GitHub] mikewalch opened a new issue #111: Create class to clean up pulling Fluo data from Key/Value pair

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:
users@infra.apache.org


With regards,
Apache Git Services