Module org.apache.lucene.core
Package org.apache.lucene.util.fst
Class FSTCompiler.FixedLengthArcsBuffer
- java.lang.Object
-
- org.apache.lucene.util.fst.FSTCompiler.FixedLengthArcsBuffer
-
- Enclosing class:
- FSTCompiler<T>
static class FSTCompiler.FixedLengthArcsBuffer extends java.lang.Object
Reusable buffer for building nodes with fixed length arcs (binary search or direct addressing).
-
-
Field Summary
Fields Modifier and Type Field Description private ByteArrayDataOutput
bado
private byte[]
bytes
-
Constructor Summary
Constructors Constructor Description FixedLengthArcsBuffer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) FSTCompiler.FixedLengthArcsBuffer
ensureCapacity(int capacity)
Ensures the capacity of the internal byte array.(package private) byte[]
getBytes()
Gets the internal byte array.(package private) int
getPosition()
(package private) FSTCompiler.FixedLengthArcsBuffer
resetPosition()
(package private) FSTCompiler.FixedLengthArcsBuffer
writeByte(byte b)
(package private) FSTCompiler.FixedLengthArcsBuffer
writeVInt(int i)
-
-
-
Field Detail
-
bytes
private byte[] bytes
-
bado
private final ByteArrayDataOutput bado
-
-
Method Detail
-
ensureCapacity
FSTCompiler.FixedLengthArcsBuffer ensureCapacity(int capacity)
Ensures the capacity of the internal byte array. Enlarges it if needed.
-
resetPosition
FSTCompiler.FixedLengthArcsBuffer resetPosition()
-
writeByte
FSTCompiler.FixedLengthArcsBuffer writeByte(byte b)
-
writeVInt
FSTCompiler.FixedLengthArcsBuffer writeVInt(int i)
-
getPosition
int getPosition()
-
getBytes
byte[] getBytes()
Gets the internal byte array.
-
-