Interface MapToFactory
- 
 public interface MapToFactory
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static classMapToFactory.MAP_TYPE
 - 
Field SummaryFields Modifier and Type Field Description static org.apache.commons.logging.LogLOG
 - 
Method SummaryStatic Methods Modifier and Type Method Description static AMapToDatacreate(int size, boolean zeros, IntArrayList[] values)static AMapToDatacreate(int size, int numTuples)Create and allocate a map with the given size and support for upto the num tuples argument of valuesstatic AMapToDatacreate(int size, int[] values, int nUnique)static AMapToDatacreate(int size, ABitmap ubm)static AMapToDatacreate(int size, MapToFactory.MAP_TYPE t)static longestimateInMemorySize(int size, int numTuples)static AMapToDatareadIn(DataInput in)static AMapToDataresize(AMapToData d, int numTuples)Reshape the map, to a smaller instance if applicable.static AMapToDataresizeForce(AMapToData d, MapToFactory.MAP_TYPE t)Force the mapping into an other mapping type.
 
- 
- 
- 
Method Detail- 
createstatic AMapToData create(int size, ABitmap ubm) 
 - 
createstatic AMapToData create(int size, boolean zeros, IntArrayList[] values) 
 - 
createstatic AMapToData create(int size, int[] values, int nUnique) 
 - 
createstatic AMapToData create(int size, int numTuples) Create and allocate a map with the given size and support for upto the num tuples argument of values- Parameters:
- size- The number of cells to allocate
- numTuples- The maximum value to be able to represent inside the map.
- Returns:
- A new map
 
 - 
createstatic AMapToData create(int size, MapToFactory.MAP_TYPE t) 
 - 
resizestatic AMapToData resize(AMapToData d, int numTuples) Reshape the map, to a smaller instance if applicable. Note that it returns the input if the input is the smallest representation that fits, otherwise it will return something that is smaller.- Parameters:
- d- The Input mat to potentially reduce the size of.
- numTuples- The number of tuples that should be in the resulting map
- Returns:
- The returned hopefully reduced map.
 
 - 
resizeForcestatic AMapToData resizeForce(AMapToData d, MapToFactory.MAP_TYPE t) Force the mapping into an other mapping type. This method is unsafe since if there is overflows in the conversions, they are not handled. Also if the change is into the same type a new map is allocated anyway.- Parameters:
- d- The map to resize.
- t- The type to resize to.
- Returns:
- A new allocated mapToData with the specified type.
 
 - 
estimateInMemorySizestatic long estimateInMemorySize(int size, int numTuples)
 - 
readInstatic AMapToData readIn(DataInput in) throws IOException - Throws:
- IOException
 
 
- 
 
-