Overview | Package | Class | Use | Tree | Deprecated | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.lucene.util
Class IntBlockPool.SliceWriter

    java.lang.Object
      org.apache.lucene.util.IntBlockPool.SliceWriter

Enclosing class:
  IntBlockPool

    public static class IntBlockPool.SliceWriter

extends Object

A `IntBlockPool.SliceWriter` that allows to write multiple integer slices into a given `IntBlockPool`.

See Also:
  `IntBlockPool.SliceReader`
NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.

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

### IntBlockPool.SliceWriter

    public IntBlockPool.SliceWriter(IntBlockPool pool)

Method Detail

### reset

    public void reset(int sliceOffset)

### writeInt

    public void writeInt(int value)

  Writes the given value into the slice and resizes the slice if needed

### startNewSlice

    public int startNewSlice()

  starts a new slice and returns the start offset. The returned value should be used as the start offset to initialize a `IntBlockPool.SliceReader`.

### getCurrentOffset

    public int getCurrentOffset()

  Returns the offset of the currently written slice. The returned value should be used as the end offset to initialize a `IntBlockPool.SliceReader` once this slice is fully written or to reset the this writer if another slice needs to be written.

Overview | Package | Class | Use | Tree | Deprecated | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.