private static final class TermsHashPerField.PostingsBytesStartArray extends BytesRefHash.BytesStartArray
Modifier and Type | Field and Description |
---|---|
private Counter |
bytesUsed |
private TermsHashPerField |
perField |
Modifier | Constructor and Description |
---|---|
private |
PostingsBytesStartArray(TermsHashPerField perField,
Counter bytesUsed) |
Modifier and Type | Method and Description |
---|---|
Counter |
bytesUsed()
A
Counter reference holding the number of bytes used by this
BytesRefHash.BytesStartArray . |
int[] |
clear()
clears the
BytesRefHash.BytesStartArray and returns the cleared instance. |
int[] |
grow()
Grows the
BytesRefHash.BytesStartArray |
int[] |
init()
Initializes the BytesStartArray.
|
private final TermsHashPerField perField
private final Counter bytesUsed
private PostingsBytesStartArray(TermsHashPerField perField, Counter bytesUsed)
public int[] init()
BytesRefHash.BytesStartArray
init
in class BytesRefHash.BytesStartArray
public int[] grow()
BytesRefHash.BytesStartArray
BytesRefHash.BytesStartArray
grow
in class BytesRefHash.BytesStartArray
public int[] clear()
BytesRefHash.BytesStartArray
BytesRefHash.BytesStartArray
and returns the cleared instance.clear
in class BytesRefHash.BytesStartArray
null
public Counter bytesUsed()
BytesRefHash.BytesStartArray
Counter
reference holding the number of bytes used by this
BytesRefHash.BytesStartArray
. The BytesRefHash
uses this reference to
track it memory usagebytesUsed
in class BytesRefHash.BytesStartArray
AtomicLong
reference holding the number of bytes used
by this BytesRefHash.BytesStartArray
.