Class IteratorConfigUtil
- java.lang.Object
-
- org.apache.accumulo.core.iteratorsImpl.IteratorConfigUtil
-
public class IteratorConfigUtil extends Object
Utility class for configuring iterators. These methods were moved from IteratorUtil so that it could be treated as API.
-
-
Field Summary
Fields Modifier and Type Field Description static Comparator<IterInfo>
ITER_INFO_COMPARATOR
-
Constructor Summary
Constructors Constructor Description IteratorConfigUtil()
-
Method Summary
-
-
-
Field Detail
-
ITER_INFO_COMPARATOR
public static final Comparator<IterInfo> ITER_INFO_COMPARATOR
-
-
Method Detail
-
getProperty
public static Property getProperty(IteratorUtil.IteratorScope scope)
Fetch the correct configuration key prefix for the given scope. Throws an IllegalArgumentException if no property exists for the given scope.
-
generateInitialTableProperties
public static Map<String,String> generateInitialTableProperties(boolean limitVersion)
Generate the initial (default) properties for a table- Parameters:
limitVersion
- include a VersioningIterator at priority 20 that retains a single version of a given K/V pair.- Returns:
- A map of Table properties
-
parseIterConf
public static List<IterInfo> parseIterConf(IteratorUtil.IteratorScope scope, List<IterInfo> iters, Map<String,Map<String,String>> allOptions, AccumuloConfiguration conf)
-
mergeIteratorConfig
public static void mergeIteratorConfig(List<IterInfo> destList, Map<String,Map<String,String>> destOpts, List<IterInfo> tableIters, Map<String,Map<String,String>> tableOpts, List<IterInfo> ssi, Map<String,Map<String,String>> ssio)
-
loadIterConf
public static IteratorBuilder.IteratorBuilderEnv loadIterConf(IteratorUtil.IteratorScope scope, List<IterInfo> iters, Map<String,Map<String,String>> iterOpts, AccumuloConfiguration conf)
-
convertItersAndLoad
public static SortedKeyValueIterator<Key,Value> convertItersAndLoad(IteratorUtil.IteratorScope scope, SortedKeyValueIterator<Key,Value> source, AccumuloConfiguration conf, List<IteratorSetting> iterators, IteratorEnvironment env) throws IOException
Convert the list of iterators to IterInfo objects and then load the stack.- Throws:
IOException
-
loadIterators
public static SortedKeyValueIterator<Key,Value> loadIterators(SortedKeyValueIterator<Key,Value> source, IteratorBuilder iteratorBuilder) throws IOException
Load a stack of iterators provided in the iterator builder, starting with source.- Throws:
IOException
-
-