apache / apache/accumulo-fluo

Create class to clean up pulling Fluo data from Key/Value pair

Open
#111 1 comment 0 reactions 0 assignees View on GitHub
improvement
Dominant language
Java
Stars
200
Forks
73
PR merge metrics
No merged PRs in 30d

Description

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 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();
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.