public class MapToBit extends AMapToData
Constructor and Description |
---|
MapToBit(int unique,
int size) |
Modifier and Type | Method and Description |
---|---|
void |
fill(int v) |
long |
getExactSizeOnDisk() |
int |
getIndex(int n) |
long |
getInMemorySize() |
static long |
getInMemorySize(int dataLength) |
static MapToBit |
readFields(DataInput in) |
void |
set(int n,
int v) |
int |
size() |
void |
write(DataOutput out) |
getUnique, toString
public int getIndex(int n)
getIndex
in class AMapToData
public void fill(int v)
fill
in class AMapToData
public long getInMemorySize()
getInMemorySize
in class AMapToData
public static long getInMemorySize(int dataLength)
public long getExactSizeOnDisk()
getExactSizeOnDisk
in class AMapToData
public void set(int n, int v)
set
in class AMapToData
public int size()
size
in class AMapToData
public void write(DataOutput out) throws IOException
write
in class AMapToData
IOException
public static MapToBit readFields(DataInput in) throws IOException
IOException
Copyright © 2021 The Apache Software Foundation. All rights reserved.