public class IteratorUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
IteratorUtil.IteratorScope
Even though this type is not in a public API package, its used by methods in the public API.
|
Constructor and Description |
---|
IteratorUtil() |
Modifier and Type | Method and Description |
---|---|
static List<IteratorSetting> |
decodeIteratorSettings(byte[] enc) |
static byte[] |
encodeIteratorSettings(IteratorConfig iterators) |
static byte[] |
encodeIteratorSettings(List<IteratorSetting> iterators) |
static Map<String,String> |
generateInitialTableProperties(boolean limitVersion)
Generate the initial (default) properties for a table
|
static <K extends org.apache.hadoop.io.WritableComparable<?>,V extends org.apache.hadoop.io.Writable> |
loadIterators(IteratorUtil.IteratorScope scope,
SortedKeyValueIterator<K,V> source,
KeyExtent extent,
AccumuloConfiguration conf,
IteratorEnvironment env) |
static <K extends org.apache.hadoop.io.WritableComparable<?>,V extends org.apache.hadoop.io.Writable> |
loadIterators(IteratorUtil.IteratorScope scope,
SortedKeyValueIterator<K,V> source,
KeyExtent extent,
AccumuloConfiguration conf,
List<IteratorSetting> iterators,
IteratorEnvironment env) |
static <K extends org.apache.hadoop.io.WritableComparable<?>,V extends org.apache.hadoop.io.Writable> |
loadIterators(IteratorUtil.IteratorScope scope,
SortedKeyValueIterator<K,V> source,
KeyExtent extent,
AccumuloConfiguration conf,
List<IterInfo> ssiList,
Map<String,Map<String,String>> ssio,
IteratorEnvironment env) |
static <K extends org.apache.hadoop.io.WritableComparable<?>,V extends org.apache.hadoop.io.Writable> |
loadIterators(IteratorUtil.IteratorScope scope,
SortedKeyValueIterator<K,V> source,
KeyExtent extent,
AccumuloConfiguration conf,
List<IterInfo> ssiList,
Map<String,Map<String,String>> ssio,
IteratorEnvironment env,
boolean useAccumuloClassLoader) |
static <K extends org.apache.hadoop.io.WritableComparable<?>,V extends org.apache.hadoop.io.Writable> |
loadIterators(IteratorUtil.IteratorScope scope,
SortedKeyValueIterator<K,V> source,
KeyExtent extent,
AccumuloConfiguration conf,
List<IterInfo> ssiList,
Map<String,Map<String,String>> ssio,
IteratorEnvironment env,
boolean useAccumuloClassLoader,
String classLoaderContext) |
static <K extends org.apache.hadoop.io.WritableComparable<?>,V extends org.apache.hadoop.io.Writable> |
loadIterators(SortedKeyValueIterator<K,V> source,
Collection<IterInfo> iters,
Map<String,Map<String,String>> iterOpts,
IteratorEnvironment env,
boolean useAccumuloClassLoader,
String context) |
static <K extends org.apache.hadoop.io.WritableComparable<?>,V extends org.apache.hadoop.io.Writable> |
loadIterators(SortedKeyValueIterator<K,V> source,
Collection<IterInfo> iters,
Map<String,Map<String,String>> iterOpts,
IteratorEnvironment env,
boolean useAccumuloClassLoader,
String context,
Map<String,Class<? extends SortedKeyValueIterator<K,V>>> classCache) |
static Range |
maximizeStartKeyTimeStamp(Range range) |
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) |
static Range |
minimizeEndKeyTimeStamp(Range range) |
static void |
parseIterConf(IteratorUtil.IteratorScope scope,
List<IterInfo> iters,
Map<String,Map<String,String>> allOptions,
AccumuloConfiguration conf) |
static SortedKeyValueIterator<Key,Value> |
setupSystemScanIterators(SortedKeyValueIterator<Key,Value> source,
Set<Column> cols,
Authorizations auths,
byte[] defaultVisibility,
AccumuloConfiguration conf) |
static IteratorConfig |
toIteratorConfig(List<IteratorSetting> iterators) |
static IteratorSetting |
toIteratorSetting(TIteratorSetting tis) |
static List<IteratorSetting> |
toIteratorSettings(IteratorConfig ic) |
static TIteratorSetting |
toTIteratorSetting(IteratorSetting is) |
public static Map<String,String> generateInitialTableProperties(boolean limitVersion)
limitVersion
- include a VersioningIterator at priority 20 that retains a single version of a given
K/V pair.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)
public static void parseIterConf(IteratorUtil.IteratorScope scope, List<IterInfo> iters, Map<String,Map<String,String>> allOptions, AccumuloConfiguration conf)
public static <K extends org.apache.hadoop.io.WritableComparable<?>,V extends org.apache.hadoop.io.Writable> SortedKeyValueIterator<K,V> loadIterators(IteratorUtil.IteratorScope scope, SortedKeyValueIterator<K,V> source, KeyExtent extent, AccumuloConfiguration conf, IteratorEnvironment env) throws IOException
IOException
public static <K extends org.apache.hadoop.io.WritableComparable<?>,V extends org.apache.hadoop.io.Writable> SortedKeyValueIterator<K,V> loadIterators(IteratorUtil.IteratorScope scope, SortedKeyValueIterator<K,V> source, KeyExtent extent, AccumuloConfiguration conf, List<IteratorSetting> iterators, IteratorEnvironment env) throws IOException
IOException
public static <K extends org.apache.hadoop.io.WritableComparable<?>,V extends org.apache.hadoop.io.Writable> SortedKeyValueIterator<K,V> loadIterators(IteratorUtil.IteratorScope scope, SortedKeyValueIterator<K,V> source, KeyExtent extent, AccumuloConfiguration conf, List<IterInfo> ssiList, Map<String,Map<String,String>> ssio, IteratorEnvironment env) throws IOException
IOException
public static <K extends org.apache.hadoop.io.WritableComparable<?>,V extends org.apache.hadoop.io.Writable> SortedKeyValueIterator<K,V> loadIterators(IteratorUtil.IteratorScope scope, SortedKeyValueIterator<K,V> source, KeyExtent extent, AccumuloConfiguration conf, List<IterInfo> ssiList, Map<String,Map<String,String>> ssio, IteratorEnvironment env, boolean useAccumuloClassLoader) throws IOException
IOException
public static <K extends org.apache.hadoop.io.WritableComparable<?>,V extends org.apache.hadoop.io.Writable> SortedKeyValueIterator<K,V> loadIterators(IteratorUtil.IteratorScope scope, SortedKeyValueIterator<K,V> source, KeyExtent extent, AccumuloConfiguration conf, List<IterInfo> ssiList, Map<String,Map<String,String>> ssio, IteratorEnvironment env, boolean useAccumuloClassLoader, String classLoaderContext) throws IOException
IOException
public static <K extends org.apache.hadoop.io.WritableComparable<?>,V extends org.apache.hadoop.io.Writable> SortedKeyValueIterator<K,V> loadIterators(SortedKeyValueIterator<K,V> source, Collection<IterInfo> iters, Map<String,Map<String,String>> iterOpts, IteratorEnvironment env, boolean useAccumuloClassLoader, String context) throws IOException
IOException
public static <K extends org.apache.hadoop.io.WritableComparable<?>,V extends org.apache.hadoop.io.Writable> SortedKeyValueIterator<K,V> loadIterators(SortedKeyValueIterator<K,V> source, Collection<IterInfo> iters, Map<String,Map<String,String>> iterOpts, IteratorEnvironment env, boolean useAccumuloClassLoader, String context, Map<String,Class<? extends SortedKeyValueIterator<K,V>>> classCache) throws IOException
IOException
public static TIteratorSetting toTIteratorSetting(IteratorSetting is)
public static IteratorSetting toIteratorSetting(TIteratorSetting tis)
public static IteratorConfig toIteratorConfig(List<IteratorSetting> iterators)
public static List<IteratorSetting> toIteratorSettings(IteratorConfig ic)
public static byte[] encodeIteratorSettings(IteratorConfig iterators)
public static byte[] encodeIteratorSettings(List<IteratorSetting> iterators)
public static List<IteratorSetting> decodeIteratorSettings(byte[] enc)
public static SortedKeyValueIterator<Key,Value> setupSystemScanIterators(SortedKeyValueIterator<Key,Value> source, Set<Column> cols, Authorizations auths, byte[] defaultVisibility, AccumuloConfiguration conf) throws IOException
IOException
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.