public abstract class BaseVectorCache<V extends org.apache.hadoop.io.Writable> extends java.lang.Object implements VectorCache<V>
Modifier and Type | Field and Description |
---|---|
protected int |
blockId |
protected int |
numBlocks |
protected long |
numVertices |
protected int |
size |
Constructor and Description |
---|
BaseVectorCache(int numBlocks,
int blockId,
long numVertices) |
Modifier and Type | Method and Description |
---|---|
void |
addTo(int i,
V value) |
void |
clear() |
boolean |
contains(int i) |
void |
put(int i,
V value) |
int |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get, iterator
protected int size
protected int numBlocks
protected long numVertices
protected int blockId
public BaseVectorCache(int numBlocks, int blockId, long numVertices)
public int size()
size
in interface VectorCache<V extends org.apache.hadoop.io.Writable>
public boolean contains(int i)
contains
in interface VectorCache<V extends org.apache.hadoop.io.Writable>
public void put(int i, V value)
put
in interface VectorCache<V extends org.apache.hadoop.io.Writable>
public void addTo(int i, V value)
addTo
in interface VectorCache<V extends org.apache.hadoop.io.Writable>
public void clear()
clear
in interface VectorCache<V extends org.apache.hadoop.io.Writable>