public static final class ChunkedHashStore.Chunk extends Object implements Iterable<long[]>
ChunkedHashStore.| Modifier and Type | Method and Description |
|---|---|
long |
data(long k)
Returns the data of the
k-th triple returned by this chunk. |
Iterator<long[]> |
iterator()
Returns an iterator over the quadruples associated with this chunk; the returned array of longs is reused at each call.
|
int |
size()
The number of triples in this chunk.
|
public int size()
public long data(long k)
k-th triple returned by this chunk.
This method provides an alternative random access to data (w.r.t. indexing the fourth element of the
quadruples returned by iterator()).
k - the index (in iteration order) of a triple.public Iterator<long[]> iterator()