Package org.apache.accumulo.iteratortest
Class IteratorTestInput
- java.lang.Object
-
- org.apache.accumulo.iteratortest.IteratorTestInput
-
public class IteratorTestInput extends Object
The necessary user-input to invoke a test on aSortedKeyValueIterator
.
-
-
Constructor Summary
Constructors Constructor Description IteratorTestInput(Class<? extends SortedKeyValueIterator<Key,Value>> iteratorClass, Map<String,String> iteratorOptions, Range range, SortedMap<Key,Value> input)
Construct an instance of the test input, usingSimpleIteratorEnvironment
.IteratorTestInput(Class<? extends SortedKeyValueIterator<Key,Value>> iteratorClass, Map<String,String> iteratorOptions, Range range, SortedMap<Key,Value> input, Collection<ByteSequence> families, boolean inclusive, IteratorEnvironment iterEnv)
Construct an instance of the test input.IteratorTestInput(Class<? extends SortedKeyValueIterator<Key,Value>> iteratorClass, Map<String,String> iteratorOptions, Range range, SortedMap<Key,Value> input, IteratorEnvironment iterEnv)
Construct an instance of the test input.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Collection<ByteSequence>
getFamilies()
SortedMap<Key,Value>
getInput()
Class<? extends SortedKeyValueIterator<Key,Value>>
getIteratorClass()
IteratorEnvironment
getIteratorEnvironment()
Map<String,String>
getIteratorOptions()
Range
getRange()
int
hashCode()
boolean
isInclusive()
String
toString()
-
-
-
Constructor Detail
-
IteratorTestInput
public IteratorTestInput(Class<? extends SortedKeyValueIterator<Key,Value>> iteratorClass, Map<String,String> iteratorOptions, Range range, SortedMap<Key,Value> input)
Construct an instance of the test input, usingSimpleIteratorEnvironment
.- Parameters:
iteratorClass
- The class for the iterator to test.iteratorOptions
- Options, if any, to provide to the iterator (IteratorSetting
's Map of properties).range
- The Range of data to query (Scanner.setRange(Range)
). By default no column families filter is specified.input
- A sorted collection of Key-Value pairs acting as the table.
-
IteratorTestInput
public IteratorTestInput(Class<? extends SortedKeyValueIterator<Key,Value>> iteratorClass, Map<String,String> iteratorOptions, Range range, SortedMap<Key,Value> input, IteratorEnvironment iterEnv)
Construct an instance of the test input.- Parameters:
iteratorClass
- The class for the iterator to test.iteratorOptions
- Options, if any, to provide to the iterator (IteratorSetting
's Map of properties).range
- The Range of data to query (Scanner.setRange(Range)
). By default no column families filter is specified.input
- A sorted collection of Key-Value pairs acting as the table.iterEnv
- A providedIteratorEnvironment
.
-
IteratorTestInput
public IteratorTestInput(Class<? extends SortedKeyValueIterator<Key,Value>> iteratorClass, Map<String,String> iteratorOptions, Range range, SortedMap<Key,Value> input, Collection<ByteSequence> families, boolean inclusive, IteratorEnvironment iterEnv)
Construct an instance of the test input.- Parameters:
iteratorClass
- The class for the iterator to test.iteratorOptions
- Options, if any, to provide to the iterator (IteratorSetting
's Map of properties).range
- The Range of data to query (Scanner.setRange(Range)
)input
- A sorted collection of Key-Value pairs acting as the table.families
- Column families passed toSortedKeyValueIterator.seek(org.apache.accumulo.core.data.Range, java.util.Collection<org.apache.accumulo.core.data.ByteSequence>, boolean)
.inclusive
- Whether the families are inclusive or exclusive.iterEnv
- An optional providedIteratorEnvironment
.SimpleIteratorEnvironment
will be used if null.
-
-
Method Detail
-
getIteratorClass
public Class<? extends SortedKeyValueIterator<Key,Value>> getIteratorClass()
-
getRange
public Range getRange()
-
getFamilies
public Collection<ByteSequence> getFamilies()
-
isInclusive
public boolean isInclusive()
-
getIteratorEnvironment
public IteratorEnvironment getIteratorEnvironment()
-
-