public class FirstNEntriesInRowIterator extends Object implements org.apache.accumulo.core.iterators.OptionDescriber, org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value>
SortedKeyValueIterator will return only the first n
keys/values for each row that it iterates through.| Constructor and Description |
|---|
FirstNEntriesInRowIterator() |
FirstNEntriesInRowIterator(FirstNEntriesInRowIterator other,
org.apache.accumulo.core.iterators.IteratorEnvironment env) |
| Modifier and Type | Method and Description |
|---|---|
static List<Map.Entry<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value>> |
decodeRow(org.apache.accumulo.core.data.Key rowKey,
org.apache.accumulo.core.data.Value rowValue) |
org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value> |
deepCopy(org.apache.accumulo.core.iterators.IteratorEnvironment env) |
org.apache.accumulo.core.iterators.OptionDescriber.IteratorOptions |
describeOptions() |
static org.apache.accumulo.core.data.Value |
encodeRow(List<org.apache.accumulo.core.data.Key> keys,
List<org.apache.accumulo.core.data.Value> values) |
protected org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value> |
getSource() |
org.apache.accumulo.core.data.Key |
getTopKey() |
org.apache.accumulo.core.data.Value |
getTopValue() |
boolean |
hasTop() |
void |
init(org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value> source,
Map<String,String> options,
org.apache.accumulo.core.iterators.IteratorEnvironment env) |
void |
next() |
void |
seek(org.apache.accumulo.core.data.Range range,
Collection<org.apache.accumulo.core.data.ByteSequence> columnFamilies,
boolean inclusive) |
static void |
setNumKeysToReturn(org.apache.accumulo.core.client.IteratorSetting cfg,
int n) |
static void |
setNumScansBeforeSeek(org.apache.accumulo.core.client.IteratorSetting cfg,
int num) |
protected void |
setSource(org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value> source) |
protected void |
skipRow() |
boolean |
validateOptions(Map<String,String> options) |
public FirstNEntriesInRowIterator()
public FirstNEntriesInRowIterator(FirstNEntriesInRowIterator other, org.apache.accumulo.core.iterators.IteratorEnvironment env)
public static void setNumScansBeforeSeek(org.apache.accumulo.core.client.IteratorSetting cfg,
int num)
public static void setNumKeysToReturn(org.apache.accumulo.core.client.IteratorSetting cfg,
int n)
public static final List<Map.Entry<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value>> decodeRow(org.apache.accumulo.core.data.Key rowKey, org.apache.accumulo.core.data.Value rowValue) throws IOException
IOExceptionpublic static final org.apache.accumulo.core.data.Value encodeRow(List<org.apache.accumulo.core.data.Key> keys, List<org.apache.accumulo.core.data.Value> values) throws IOException
IOExceptionpublic org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value> deepCopy(org.apache.accumulo.core.iterators.IteratorEnvironment env)
deepCopy in interface org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value>public void init(org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value> source,
Map<String,String> options,
org.apache.accumulo.core.iterators.IteratorEnvironment env)
throws IOException
init in interface org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value>IOExceptionpublic boolean hasTop()
hasTop in interface org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value>public void next()
throws IOException
next in interface org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value>IOExceptionprotected org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value> getSource()
protected void setSource(org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value> source)
protected void skipRow()
throws IOException
IOExceptionpublic void seek(org.apache.accumulo.core.data.Range range,
Collection<org.apache.accumulo.core.data.ByteSequence> columnFamilies,
boolean inclusive)
throws IOException
seek in interface org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value>IOExceptionpublic org.apache.accumulo.core.data.Key getTopKey()
getTopKey in interface org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value>public org.apache.accumulo.core.data.Value getTopValue()
getTopValue in interface org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value>public org.apache.accumulo.core.iterators.OptionDescriber.IteratorOptions describeOptions()
describeOptions in interface org.apache.accumulo.core.iterators.OptionDescriberCopyright © 2014 Calrissian. All Rights Reserved.