|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.lucene.util.IntBlockPool.SliceWriter
public static class IntBlockPool.SliceWriter
A IntBlockPool.SliceWriter that allows to write multiple integer slices into a given IntBlockPool.
IntBlockPool.SliceReader| Constructor Summary | |
|---|---|
IntBlockPool.SliceWriter(IntBlockPool pool)
|
|
| Method Summary | |
|---|---|
int |
getCurrentOffset()
Returns the offset of the currently written slice. |
void |
reset(int sliceOffset)
|
int |
startNewSlice()
starts a new slice and returns the start offset. |
void |
writeInt(int value)
Writes the given value into the slice and resizes the slice if needed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IntBlockPool.SliceWriter(IntBlockPool pool)
| Method Detail |
|---|
public void reset(int sliceOffset)
public void writeInt(int value)
public int startNewSlice()
IntBlockPool.SliceReader.
public int getCurrentOffset()
IntBlockPool.SliceReader once
this slice is fully written or to reset the this writer if another slice
needs to be written.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||