public abstract class AMapToData extends Object implements Serializable
Modifier and Type | Method and Description |
---|---|
void |
copy(AMapToData d) |
abstract void |
fill(int v) |
abstract long |
getExactSizeOnDisk() |
abstract int |
getIndex(int n) |
abstract long |
getInMemorySize() |
int |
getUnique() |
abstract 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.
|
abstract void |
set(int n,
int v) |
abstract int |
size() |
String |
toString() |
abstract void |
write(DataOutput out) |
public final int getUnique()
public abstract int getIndex(int n)
public abstract void set(int n, int v)
public abstract void fill(int v)
public abstract long getInMemorySize()
public abstract long getExactSizeOnDisk()
public abstract int size()
public abstract void write(DataOutput out) throws IOException
IOException
public abstract void replace(int v, int r)
v
- v the value to replacer
- r the value to put insteadpublic void copy(AMapToData d)
Copyright © 2021 The Apache Software Foundation. All rights reserved.