public abstract class UnfilteredRowIterators
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
UnfilteredRowIterators.MergeListener |
Modifier and Type | Method and Description |
---|---|
static UnfilteredRowIterator |
cloningIterator(UnfilteredRowIterator iterator,
AbstractAllocator allocator) |
static UnfilteredRowIterator |
concat(UnfilteredRowIterator iter1,
UnfilteredRowIterator iter2)
Returns an iterator that concatenate two atom iterators.
|
static void |
digest(UnfilteredRowIterator iterator,
java.security.MessageDigest digest,
int version)
Digests the partition represented by the provided iterator.
|
static RowIterator |
filter(UnfilteredRowIterator iter,
int nowInSec)
Returns a iterator that only returns rows with only live content.
|
static UnfilteredRowIterator |
loggingIterator(UnfilteredRowIterator iterator,
java.lang.String id,
boolean fullDetails)
Wraps the provided iterator so it logs the returned atoms for debugging purposes.
|
static UnfilteredRowIterator |
merge(java.util.List<UnfilteredRowIterator> iterators,
int nowInSec)
Returns an iterator that is the result of merging other iterators.
|
static UnfilteredRowIterator |
merge(java.util.List<UnfilteredRowIterator> iterators,
int nowInSec,
UnfilteredRowIterators.MergeListener mergeListener)
Returns an iterator that is the result of merging other iterators, and (optionally) using
specific MergeListener.
|
static UnfilteredRowIterator |
noRowsIterator(CFMetaData cfm,
DecoratedKey partitionKey,
Row staticRow,
DeletionTime partitionDeletion,
boolean isReverseOrder)
Returns an empty atom iterator for a given partition.
|
static UnfilteredRowIterator |
withValidation(UnfilteredRowIterator iterator,
java.lang.String filename)
Validate that the data of the provided iterator is valid, that is that the values
it contains are valid for the type they represent, and more generally that the
infos stored are sensible.
|
public static RowIterator filter(UnfilteredRowIterator iter, int nowInSec)
public static UnfilteredRowIterator merge(java.util.List<UnfilteredRowIterator> iterators, int nowInSec)
public static UnfilteredRowIterator merge(java.util.List<UnfilteredRowIterator> iterators, int nowInSec, UnfilteredRowIterators.MergeListener mergeListener)
public static UnfilteredRowIterator noRowsIterator(CFMetaData cfm, DecoratedKey partitionKey, Row staticRow, DeletionTime partitionDeletion, boolean isReverseOrder)
public static void digest(UnfilteredRowIterator iterator, java.security.MessageDigest digest, int version)
iterator
- the iterator to digest.digest
- the MessageDigest
to use for the digest.version
- the messaging protocol to use when producing the digest.public static UnfilteredRowIterator concat(UnfilteredRowIterator iter1, UnfilteredRowIterator iter2)
iter2
come after the ones of iter1
(that is, that concatenating the iterator
make sense).public static UnfilteredRowIterator cloningIterator(UnfilteredRowIterator iterator, AbstractAllocator allocator)
public static UnfilteredRowIterator withValidation(UnfilteredRowIterator iterator, java.lang.String filename)
iterator
- the partition to check.filename
- the name of the file the data is comming from.iterator
but that
checks said data and throws a CorruptedSSTableException
if it detects
invalid data.public static UnfilteredRowIterator loggingIterator(UnfilteredRowIterator iterator, java.lang.String id, boolean fullDetails)
Note that this is only meant for debugging as this can log a very large amount of logging at INFO.
Copyright © 2016 The Apache Software Foundation