|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unimi.dsi.sux4j.io.ChunkedHashStore.Chunk
public static final class ChunkedHashStore.Chunk
A chunk returned by a ChunkedHashStore
.
Method Summary | |
---|---|
Iterator<long[]> |
iterator()
Returns an iterator over the triples associated to this chunk; the returned array of longs is reused at each call. |
int |
offset(int k)
Returns the offset of the k -th triple returned by this chunk. |
int |
size()
The number of triples in this chunk. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int size()
public int offset(int k)
k
-th triple returned by this chunk.
This method provides an alternative random access to offset 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()
iterator
in interface Iterable<long[]>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |