Class InMemoryMap


  • public class InMemoryMap
    extends Object
    • 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()
      • delete

        public void delete​(long waitTime)