|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.util.BytesRefHash.BytesStartArray org.apache.lucene.util.BytesRefHash.TrackingDirectBytesStartArray
public static class BytesRefHash.TrackingDirectBytesStartArray
A direct BytesRefHash.BytesStartArray
that tracks all memory allocation using an AtomicLong
instance.
Field Summary | |
---|---|
protected AtomicLong |
bytesUsed
|
protected int |
initSize
|
Constructor Summary | |
---|---|
BytesRefHash.TrackingDirectBytesStartArray(int initSize,
AtomicLong bytesUsed)
|
Method Summary | |
---|---|
AtomicLong |
bytesUsed()
A AtomicLong 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final int initSize
protected final AtomicLong bytesUsed
Constructor Detail |
---|
public BytesRefHash.TrackingDirectBytesStartArray(int initSize, AtomicLong bytesUsed)
Method Detail |
---|
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 AtomicLong bytesUsed()
BytesRefHash.BytesStartArray
AtomicLong
reference holding the number of bytes used by this
BytesRefHash.BytesStartArray
. The BytesRefHash
uses this reference to
track it memory usage
bytesUsed
in class BytesRefHash.BytesStartArray
AtomicLong
reference holding the number of bytes used
by this BytesRefHash.BytesStartArray
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |