Module org.apache.lucene.core
Package org.apache.lucene.search
Class ScoringRewrite.TermFreqBoostByteStart
- java.lang.Object
-
- org.apache.lucene.util.BytesRefHash.BytesStartArray
-
- org.apache.lucene.util.BytesRefHash.DirectBytesStartArray
-
- org.apache.lucene.search.ScoringRewrite.TermFreqBoostByteStart
-
- Enclosing class:
- ScoringRewrite<B>
static final class ScoringRewrite.TermFreqBoostByteStart extends BytesRefHash.DirectBytesStartArray
Special implementation of BytesStartArray that keeps parallel arrays for boost and docFreq
-
-
Field Summary
Fields Modifier and Type Field Description (package private) float[]
boost
(package private) TermStates[]
termState
-
Fields inherited from class org.apache.lucene.util.BytesRefHash.DirectBytesStartArray
initSize
-
-
Constructor Summary
Constructors Constructor Description TermFreqBoostByteStart(int initSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]
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 Detail
-
boost
float[] boost
-
termState
TermStates[] termState
-
-
Method Detail
-
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
-
-