Package org.apache.accumulo.tserver
Class InMemoryMap
- java.lang.Object
-
- org.apache.accumulo.tserver.InMemoryMap
-
public class InMemoryMap extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classInMemoryMap.MemoryIterator
-
Field Summary
Fields Modifier and Type Field Description static StringTYPE_DEFAULT_MAPstatic StringTYPE_LOCALITY_GROUP_MAPstatic StringTYPE_LOCALITY_GROUP_MAP_NATIVEstatic StringTYPE_NATIVE_MAP_WRAPPER
-
Constructor Summary
Constructors Constructor Description InMemoryMap(AccumuloConfiguration config, ServerContext serverContext, TableId tableId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SortedKeyValueIterator<Key,Value>compactionIterator()voiddelete(long waitTime)longestimatedSizeInBytes()Returns a long representing the size of the InMemoryMapStringgetMapType()Description of the type of SimpleMap that is created.longgetNumEntries()voidmutate(List<Mutation> mutations, int numKVs)Applies changes to a row in the InMemoryMapInMemoryMap.MemoryIteratorskvIterator(SamplerConfigurationImpl iteratorSamplerConfig)
-
-
-
Field Detail
-
TYPE_NATIVE_MAP_WRAPPER
public static final String TYPE_NATIVE_MAP_WRAPPER
- See Also:
- Constant Field Values
-
TYPE_DEFAULT_MAP
public static final String TYPE_DEFAULT_MAP
- See Also:
- Constant Field Values
-
TYPE_LOCALITY_GROUP_MAP
public static final String TYPE_LOCALITY_GROUP_MAP
- See Also:
- Constant Field Values
-
TYPE_LOCALITY_GROUP_MAP_NATIVE
public static final String TYPE_LOCALITY_GROUP_MAP_NATIVE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
InMemoryMap
public InMemoryMap(AccumuloConfiguration config, ServerContext serverContext, TableId tableId)
-
-
Method Detail
-
getMapType
public String getMapType()
Description of the type of SimpleMap that is created.If no locality groups are present, the SimpleMap is either TYPE_DEFAULT_MAP or TYPE_NATIVE_MAP_WRAPPER. If there is one more locality groups, then the InMemoryMap has an array for simple maps that either contain either TYPE_LOCALITY_GROUP_MAP which contains DefaultMaps or TYPE_LOCALITY_GROUP_MAP_NATIVE which contains NativeMapWrappers.
- Returns:
- String that describes the Map type
-
mutate
public void mutate(List<Mutation> mutations, int numKVs)
Applies changes to a row in the InMemoryMap
-
estimatedSizeInBytes
public long estimatedSizeInBytes()
Returns a long representing the size of the InMemoryMap- Returns:
- bytesInMemory
-
getNumEntries
public long getNumEntries()
-
skvIterator
public InMemoryMap.MemoryIterator skvIterator(SamplerConfigurationImpl iteratorSamplerConfig)
-
compactionIterator
public SortedKeyValueIterator<Key,Value> compactionIterator()
-
delete
public void delete(long waitTime)
-
-