Package org.apache.lucene.index
Class TermsHashPerField.PostingsBytesStartArray
- java.lang.Object
-
- org.apache.lucene.util.BytesRefHash.BytesStartArray
-
- org.apache.lucene.index.TermsHashPerField.PostingsBytesStartArray
-
- Enclosing class:
- TermsHashPerField
private static final class TermsHashPerField.PostingsBytesStartArray extends BytesRefHash.BytesStartArray
-
-
Field Summary
Fields Modifier and Type Field Description private CounterbytesUsedprivate TermsHashPerFieldperField
-
Constructor Summary
Constructors Modifier Constructor Description privatePostingsBytesStartArray(TermsHashPerField perField, Counter bytesUsed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CounterbytesUsed()ACounterreference holding the number of bytes used by thisBytesRefHash.BytesStartArray.int[]clear()clears theBytesRefHash.BytesStartArrayand returns the cleared instance.int[]grow()Grows theBytesRefHash.BytesStartArrayint[]init()Initializes the BytesStartArray.
-
-
-
Field Detail
-
perField
private final TermsHashPerField perField
-
bytesUsed
private final Counter bytesUsed
-
-
Constructor Detail
-
PostingsBytesStartArray
private PostingsBytesStartArray(TermsHashPerField perField, Counter bytesUsed)
-
-
Method Detail
-
init
public int[] init()
Description copied from class:BytesRefHash.BytesStartArrayInitializes the BytesStartArray. This call will allocate memory- Specified by:
initin classBytesRefHash.BytesStartArray- Returns:
- the initialized bytes start array
-
grow
public int[] grow()
Description copied from class:BytesRefHash.BytesStartArrayGrows theBytesRefHash.BytesStartArray- Specified by:
growin classBytesRefHash.BytesStartArray- Returns:
- the grown array
-
clear
public int[] clear()
Description copied from class:BytesRefHash.BytesStartArrayclears theBytesRefHash.BytesStartArrayand returns the cleared instance.- Specified by:
clearin classBytesRefHash.BytesStartArray- Returns:
- the cleared instance, this might be
null
-
bytesUsed
public Counter bytesUsed()
Description copied from class:BytesRefHash.BytesStartArrayACounterreference holding the number of bytes used by thisBytesRefHash.BytesStartArray. TheBytesRefHashuses this reference to track it memory usage- Specified by:
bytesUsedin classBytesRefHash.BytesStartArray- Returns:
- a
AtomicLongreference holding the number of bytes used by thisBytesRefHash.BytesStartArray.
-
-