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 class
InMemoryMap.MemoryIterator
-
Field Summary
Fields Modifier and Type Field Description static String
TYPE_DEFAULT_MAP
static String
TYPE_LOCALITY_GROUP_MAP
static String
TYPE_LOCALITY_GROUP_MAP_NATIVE
static String
TYPE_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()
void
delete(long waitTime)
long
estimatedSizeInBytes()
Returns a long representing the size of the InMemoryMapString
getMapType()
Description of the type of SimpleMap that is created.long
getNumEntries()
void
mutate(List<Mutation> mutations, int numKVs)
Applies changes to a row in the InMemoryMapInMemoryMap.MemoryIterator
skvIterator(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)
-
-