MMapDirectory
. It will be removed in future versions
of Lucene.@Deprecated public class RAMFile extends Object implements Accountable
Modifier and Type | Field and Description |
---|---|
protected ArrayList<byte[]> |
buffers
Deprecated.
|
protected long |
sizeInBytes
Deprecated.
|
NULL_ACCOUNTABLE
Constructor and Description |
---|
RAMFile()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected byte[] |
addBuffer(int size)
Deprecated.
|
boolean |
equals(Object obj)
Deprecated.
|
protected byte[] |
getBuffer(int index)
Deprecated.
|
long |
getLength()
Deprecated.
|
int |
hashCode()
Deprecated.
|
protected byte[] |
newBuffer(int size)
Deprecated.
Expert: allocate a new buffer.
|
protected int |
numBuffers()
Deprecated.
|
long |
ramBytesUsed()
Deprecated.
Return the memory usage of this object in bytes.
|
protected void |
setLength(long length)
Deprecated.
|
String |
toString()
Deprecated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getChildResources
protected final ArrayList<byte[]> buffers
protected long sizeInBytes
public long getLength()
protected void setLength(long length)
protected final byte[] addBuffer(int size)
protected final byte[] getBuffer(int index)
protected final int numBuffers()
protected byte[] newBuffer(int size)
size
- size of allocated buffer.public long ramBytesUsed()
Accountable
ramBytesUsed
in interface Accountable
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.