public class InMemoryMap extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
InMemoryMap.MemoryIterator |
| Modifier and Type | Field and 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 and Description |
|---|
InMemoryMap(AccumuloConfiguration config) |
InMemoryMap(boolean useNativeMap,
String memDumpDir) |
InMemoryMap(Map<String,Set<ByteSequence>> lggroups,
boolean useNativeMap,
String memDumpDir) |
| Modifier and Type | Method and Description |
|---|---|
SortedKeyValueIterator<Key,Value> |
compactionIterator() |
void |
delete(long waitTime) |
long |
estimatedSizeInBytes()
Returns a long representing the size of the InMemoryMap
|
String |
getMapType()
Description of the type of SimpleMap that is created.
|
long |
getNumEntries() |
void |
mutate(List<Mutation> mutations)
Applies changes to a row in the InMemoryMap
|
InMemoryMap.MemoryIterator |
skvIterator() |
public static final String TYPE_NATIVE_MAP_WRAPPER
public static final String TYPE_DEFAULT_MAP
public static final String TYPE_LOCALITY_GROUP_MAP
public static final String TYPE_LOCALITY_GROUP_MAP_NATIVE
public InMemoryMap(boolean useNativeMap,
String memDumpDir)
public InMemoryMap(Map<String,Set<ByteSequence>> lggroups, boolean useNativeMap, String memDumpDir)
public InMemoryMap(AccumuloConfiguration config) throws LocalityGroupUtil.LocalityGroupConfigurationError
public String getMapType()
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.
public long estimatedSizeInBytes()
public long getNumEntries()
public InMemoryMap.MemoryIterator skvIterator()
public SortedKeyValueIterator<Key,Value> compactionIterator()
public void delete(long waitTime)
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.