public static class BytesRefHash.DirectBytesStartArray extends BytesRefHash.BytesStartArray
BytesRefHash.BytesStartArray
that tracks
memory allocation using a private Counter
instance.Modifier and Type | Field and Description |
---|---|
protected int |
initSize |
Constructor and Description |
---|
BytesRefHash.DirectBytesStartArray(int initSize) |
BytesRefHash.DirectBytesStartArray(int initSize,
Counter counter) |
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.
|
public BytesRefHash.DirectBytesStartArray(int initSize, Counter counter)
public BytesRefHash.DirectBytesStartArray(int initSize)
public int[] clear()
BytesRefHash.BytesStartArray
BytesRefHash.BytesStartArray
and returns the cleared instance.clear
in class BytesRefHash.BytesStartArray
null
public int[] grow()
BytesRefHash.BytesStartArray
BytesRefHash.BytesStartArray
grow
in class BytesRefHash.BytesStartArray
public int[] init()
BytesRefHash.BytesStartArray
init
in class BytesRefHash.BytesStartArray
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
.Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.