public final class MapToFactory extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MapToFactory.MAP_TYPE |
Constructor and Description |
---|
MapToFactory() |
Modifier and Type | Method and Description |
---|---|
static AMapToData |
create(int size,
ABitmap ubm) |
static AMapToData |
create(int size,
boolean zeros,
IntArrayList[] values) |
static AMapToData |
create(int size,
int numTuples) |
static long |
estimateInMemorySize(int size,
int numTuples) |
static AMapToData |
join(AMapToData left,
AMapToData right) |
static AMapToData |
readIn(DataInput in) |
static AMapToData |
resize(AMapToData d,
int numTuples)
Reshape the map, to a smaller instance if applicable.
|
public static AMapToData create(int size, ABitmap ubm)
public static AMapToData create(int size, boolean zeros, IntArrayList[] values)
public static AMapToData create(int size, int numTuples)
public static AMapToData resize(AMapToData d, int numTuples)
d
- The Input mat to potentially reduce the size of.numTuples
- The number of tuples that should be in the resulting mappublic static long estimateInMemorySize(int size, int numTuples)
public static AMapToData readIn(DataInput in) throws IOException
IOException
public static AMapToData join(AMapToData left, AMapToData right)
Copyright © 2021 The Apache Software Foundation. All rights reserved.