org.apache.accumulo.core.iterators.user
public class WholeRowIterator extends RowEncodingIterator
This iterator extends the RowEncodingIterator
, providing implementations for rowEncoder and rowDecoder which serializes all column and value
information from a given row into a single ByteStream in a value.
As with the RowEncodingIterator, when seeking in the WholeRowIterator using a range that starts at a non-inclusive first key in a row, this iterator will skip to the next row.
To regain the original key/value pairs of the row, call the decodeRow function on the key/value pair that this iterator returned.
RowFilter
sourceIter
Constructor and Description |
---|
WholeRowIterator() |
Modifier and Type | Method and Description |
---|---|
static SortedMap<Key,Value> |
decodeRow(Key rowKey,
Value rowValue) |
SortedKeyValueIterator<Key,Value> |
deepCopy(IteratorEnvironment env)
Implement deepCopy.
|
static Value |
encodeRow(List<Key> keys,
List<Value> values) |
SortedMap<Key,Value> |
rowDecoder(Key rowKey,
Value rowValue)
Given a value generated by the rowEncoder implementation, recreate the original Key, Value pairs.
|
Value |
rowEncoder(List<Key> keys,
List<Value> values)
Take a stream of keys and values.
|
filter, getTopKey, getTopValue, hasTop, init, next, seek
public SortedKeyValueIterator<Key,Value> deepCopy(IteratorEnvironment env)
RowEncodingIterator
deepCopy
in interface SortedKeyValueIterator<Key,Value>
deepCopy
in class RowEncodingIterator
env
- IteratorEnvironment environment in which iterator is being run.public SortedMap<Key,Value> rowDecoder(Key rowKey, Value rowValue) throws IOException
RowEncodingIterator
rowDecoder
in class RowEncodingIterator
IOException
public Value rowEncoder(List<Key> keys, List<Value> values) throws IOException
RowEncodingIterator
rowEncoder
in class RowEncodingIterator
IOException
public static final SortedMap<Key,Value> decodeRow(Key rowKey, Value rowValue) throws IOException
IOException
public static final Value encodeRow(List<Key> keys, List<Value> values) throws IOException
IOException
Copyright © 2011–2016 The Apache Software Foundation. All rights reserved.