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.BytesStartArrayinit in class BytesRefHash.BytesStartArraypublic int[] grow()
BytesRefHash.BytesStartArrayBytesRefHash.BytesStartArraygrow in class BytesRefHash.BytesStartArraypublic int[] clear()
BytesRefHash.BytesStartArrayBytesRefHash.BytesStartArray and returns the cleared instance.clear in class BytesRefHash.BytesStartArraynullpublic Counter bytesUsed()
BytesRefHash.BytesStartArrayCounter reference holding the number of bytes used by this
BytesRefHash.BytesStartArray. The BytesRefHash uses this reference to
track it memory usagebytesUsed in class BytesRefHash.BytesStartArrayAtomicLong reference holding the number of bytes used
by this BytesRefHash.BytesStartArray.