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.
|
protected long |
sizeInBytes
Deprecated.
|
Constructor and Description |
---|
RAMFile()
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
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
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
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.