Class MapToUByte
- java.lang.Object
- 
- org.apache.sysds.runtime.compress.colgroup.mapping.AMapToData
- 
- org.apache.sysds.runtime.compress.colgroup.mapping.MapToByte
- 
- org.apache.sysds.runtime.compress.colgroup.mapping.MapToUByte
 
 
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class MapToUByte extends MapToByte - See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description MapToUByte(int unique, int size)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcount(int[] ret)voidfill(int v)Fill the map with a given value.intgetIndex(int n)Get the given index back as a integerstatic longgetInMemorySize(int dataLength)MapToFactory.MAP_TYPEgetType()intgetUpperBoundValue()Get the maximum value that is possible to allocate inside this map.voidreplace(int v, int r)Replace v with r for all entries, NOTE! It is assumed that you call this correctly: - with two distinct values that is representable inside the given AMapToData.AMapToDataresize(int unique)intsetAndGet(int n, int v)Set the index to the value and get the contained value after.voidwrite(DataOutput out)Serialize this object to the DataOutput given.- 
Methods inherited from class org.apache.sysds.runtime.compress.colgroup.mapping.MapToBytecopyBit, copyInt, getExactSizeOnDisk, getInMemorySize, set, size
 - 
Methods inherited from class org.apache.sysds.runtime.compress.colgroup.mapping.AMapToDatacopy, getCounts, getMax, getUnique, preAggregateDDC_DDC, preAggregateDDC_SDCZ, preAggregateDDC_SDCZMultiCol, preAggregateDDC_SDCZSingleCol, preAggregateDense, preAggregateDense, preAggregateSDCZ_DDC, preAggregateSDCZ_SDCZ, preAggregateSparse, preAggregateSparse, setUnique, toString
 
- 
 
- 
- 
- 
Method Detail- 
getTypepublic MapToFactory.MAP_TYPE getType() 
 - 
getIndexpublic int getIndex(int n) Description copied from class:AMapToDataGet the given index back as a integer
 - 
setAndGetpublic int setAndGet(int n, int v)Description copied from class:AMapToDataSet the index to the value and get the contained value after.
 - 
fillpublic void fill(int v) Description copied from class:AMapToDataFill the map with a given value. NOTE! The value should be representable inside the map. This requirement is not checked.
 - 
getInMemorySizepublic static long getInMemorySize(int dataLength) 
 - 
writepublic void write(DataOutput out) throws IOException Description copied from class:AMapToDataSerialize this object to the DataOutput given.- Overrides:
- writein class- MapToByte
- Parameters:
- out- The object to serialize this object into.
- Throws:
- IOException- An IO exception if the Serialization fails.
 
 - 
replacepublic void replace(int v, int r)Description copied from class:AMapToDataReplace v with r for all entries, NOTE! It is assumed that you call this correctly: - with two distinct values that is representable inside the given AMapToData.
 - 
getUpperBoundValuepublic int getUpperBoundValue() Description copied from class:AMapToDataGet the maximum value that is possible to allocate inside this map.- Overrides:
- getUpperBoundValuein class- MapToByte
- Returns:
- The maximum value.
 
 - 
resizepublic AMapToData resize(int unique) 
 
- 
 
-