|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.util.BytesRefHash.BytesStartArray
org.apache.lucene.util.BytesRefHash.DirectBytesStartArray
public static class BytesRefHash.DirectBytesStartArray
A simple BytesRefHash.BytesStartArray that tracks
memory allocation using a private AtomicLong
instance.
| Field Summary | |
|---|---|
protected int |
initSize
|
| Constructor Summary | |
|---|---|
BytesRefHash.DirectBytesStartArray(int initSize)
|
|
| 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
| Constructor Detail |
|---|
public BytesRefHash.DirectBytesStartArray(int initSize)
| Method Detail |
|---|
public int[] clear()
BytesRefHash.BytesStartArrayBytesRefHash.BytesStartArray and returns the cleared instance.
clear in class BytesRefHash.BytesStartArraynullpublic int[] grow()
BytesRefHash.BytesStartArrayBytesRefHash.BytesStartArray
grow in class BytesRefHash.BytesStartArraypublic int[] init()
BytesRefHash.BytesStartArray
init in class BytesRefHash.BytesStartArraypublic AtomicLong bytesUsed()
BytesRefHash.BytesStartArrayAtomicLong 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.BytesStartArrayAtomicLong 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 | |||||||||