Module org.apache.lucene.memory
Package org.apache.lucene.index.memory
Class MemoryIndex.SliceByteStartArray
java.lang.Object
org.apache.lucene.util.BytesRefHash.BytesStartArray
org.apache.lucene.util.BytesRefHash.DirectBytesStartArray
org.apache.lucene.index.memory.MemoryIndex.SliceByteStartArray
- Enclosing class:
MemoryIndex
private static final class MemoryIndex.SliceByteStartArray
extends BytesRefHash.DirectBytesStartArray
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int[]
(package private) int[]
(package private) int[]
Fields inherited from class org.apache.lucene.util.BytesRefHash.DirectBytesStartArray
initSize
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint[]
clear()
clears theBytesRefHash.BytesStartArray
and returns the cleared instance.int[]
grow()
Grows theBytesRefHash.BytesStartArray
int[]
init()
Initializes the BytesStartArray.Methods inherited from class org.apache.lucene.util.BytesRefHash.DirectBytesStartArray
bytesUsed
-
Field Details
-
start
int[] start -
end
int[] end -
freq
int[] freq
-
-
Constructor Details
-
SliceByteStartArray
public SliceByteStartArray(int initSize)
-
-
Method Details
-
init
public int[] init()Description copied from class:BytesRefHash.BytesStartArray
Initializes the BytesStartArray. This call will allocate memory- Overrides:
init
in classBytesRefHash.DirectBytesStartArray
- Returns:
- the initialized bytes start array
-
grow
public int[] grow()Description copied from class:BytesRefHash.BytesStartArray
Grows theBytesRefHash.BytesStartArray
- Overrides:
grow
in classBytesRefHash.DirectBytesStartArray
- Returns:
- the grown array
-
clear
public int[] clear()Description copied from class:BytesRefHash.BytesStartArray
clears theBytesRefHash.BytesStartArray
and returns the cleared instance.- Overrides:
clear
in classBytesRefHash.DirectBytesStartArray
- Returns:
- the cleared instance, this might be
null
-