MMapDirectory
. It will be removed in future versions
of Lucene.@Deprecated public class RAMFile extends java.lang.Object implements Accountable
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList<byte[]> |
buffers
Deprecated.
|
(package private) RAMDirectory |
directory
Deprecated.
|
(package private) long |
length
Deprecated.
|
protected long |
sizeInBytes
Deprecated.
|
Constructor and Description |
---|
RAMFile()
Deprecated.
|
RAMFile(RAMDirectory directory)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected byte[] |
addBuffer(int size)
Deprecated.
|
boolean |
equals(java.lang.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.
|
java.lang.String |
toString()
Deprecated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getChildResources
protected final java.util.ArrayList<byte[]> buffers
long length
RAMDirectory directory
protected long sizeInBytes
public RAMFile()
RAMFile(RAMDirectory directory)
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
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object