public class MapToByte extends AMapToData
| Constructor and Description |
|---|
MapToByte(int unique,
int size) |
| Modifier and Type | Method and Description |
|---|---|
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 |
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()
Copyright © 2021 The Apache Software Foundation. All rights reserved.