org.apache.accumulo.core.iterators
Class IteratorUtil

java.lang.Object
  extended by org.apache.accumulo.core.iterators.IteratorUtil

public class IteratorUtil
extends Object


Nested Class Summary
static class IteratorUtil.IteratorScope
           
static class IteratorUtil.IterInfoComparator
           
 
Constructor Summary
IteratorUtil()
           
 
Method Summary
static List<IteratorSetting> decodeIteratorSettings(byte[] enc)
           
static byte[] encodeIteratorSettings(IteratorConfig iterators)
           
static byte[] encodeIteratorSettings(List<IteratorSetting> iterators)
           
static String findIterator(IteratorUtil.IteratorScope scope, String className, AccumuloConfiguration conf, Map<String,String> opts)
           
static Map<String,String> generateInitialTableProperties(boolean limitVersion)
          Generate the initial (default) properties for a table
static int getMaxPriority(IteratorUtil.IteratorScope scope, AccumuloConfiguration conf)
           
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)
           
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)
           
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)
           
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)
           
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)
           
static Range maximizeStartKeyTimeStamp(Range range)
           
static Range minimizeEndKeyTimeStamp(Range range)
           
static IteratorConfig toIteratorConfig(List<IteratorSetting> iterators)
           
static IteratorSetting toIteratorSetting(TIteratorSetting tis)
           
static List<IteratorSetting> toIteratorSettings(IteratorConfig ic)
           
static TIteratorSetting toTIteratorSetting(IteratorSetting is)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IteratorUtil

public IteratorUtil()
Method Detail

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

getMaxPriority

public static int getMaxPriority(IteratorUtil.IteratorScope scope,
                                 AccumuloConfiguration conf)

findIterator

public static String findIterator(IteratorUtil.IteratorScope scope,
                                  String className,
                                  AccumuloConfiguration conf,
                                  Map<String,String> opts)

loadIterators

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
Throws:
IOException

loadIterators

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
Throws:
IOException

loadIterators

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
Throws:
IOException

loadIterators

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
Throws:
IOException

loadIterators

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
Throws:
IOException

maximizeStartKeyTimeStamp

public static Range maximizeStartKeyTimeStamp(Range range)

minimizeEndKeyTimeStamp

public static Range minimizeEndKeyTimeStamp(Range range)

toTIteratorSetting

public static TIteratorSetting toTIteratorSetting(IteratorSetting is)

toIteratorSetting

public static IteratorSetting toIteratorSetting(TIteratorSetting tis)

toIteratorConfig

public static IteratorConfig toIteratorConfig(List<IteratorSetting> iterators)

toIteratorSettings

public static List<IteratorSetting> toIteratorSettings(IteratorConfig ic)

encodeIteratorSettings

public static byte[] encodeIteratorSettings(IteratorConfig iterators)

encodeIteratorSettings

public static byte[] encodeIteratorSettings(List<IteratorSetting> iterators)

decodeIteratorSettings

public static List<IteratorSetting> decodeIteratorSettings(byte[] enc)


Copyright © 2013 Apache Accumulo Project. All Rights Reserved.