public class MapToByte extends AMapToData
| Constructor and Description | 
|---|
MapToByte(int unique,
         int size)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
copy(AMapToData d)  | 
void | 
fill(int v)  | 
byte[] | 
getBytes()  | 
long | 
getExactSizeOnDisk()  | 
int | 
getIndex(int n)  | 
long | 
getInMemorySize()  | 
static long | 
getInMemorySize(int dataLength)  | 
static MapToByte | 
readFields(DataInput in)  | 
void | 
replace(int v,
       int r)
Replace v with r for all entries, note that it is assumed that you call this correctly, with two distinct values. 
 | 
void | 
set(int n,
   int v)  | 
int | 
size()  | 
void | 
write(DataOutput out)  | 
getUnique, toStringpublic int getIndex(int n)
getIndex in class AMapToDatapublic void fill(int v)
fill in class AMapToDatapublic long getInMemorySize()
getInMemorySize in class AMapToDatapublic static long getInMemorySize(int dataLength)
public long getExactSizeOnDisk()
getExactSizeOnDisk in class AMapToDatapublic void set(int n,
                int v)
set in class AMapToDatapublic int size()
size in class AMapToDatapublic void write(DataOutput out) throws IOException
write in class AMapToDataIOExceptionpublic static MapToByte readFields(DataInput in) throws IOException
IOExceptionpublic byte[] getBytes()
public void replace(int v,
                    int r)
AMapToDatareplace in class AMapToDatav - v the value to replacer - r the value to put insteadpublic void copy(AMapToData d)
copy in class AMapToDataCopyright © 2021 The Apache Software Foundation. All rights reserved.