org.apache.lucene.store
Class RAMFile
java.lang.Object
org.apache.lucene.store.RAMFile
- All Implemented Interfaces:
- Serializable
public class RAMFile
- extends Object
- implements Serializable
- See Also:
- Serialized Form
- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buffers
protected ArrayList<byte[]> buffers
sizeInBytes
protected long sizeInBytes
RAMFile
public RAMFile()
getLength
public long getLength()
setLength
protected void setLength(long length)
getLastModified
public long getLastModified()
setLastModified
protected void setLastModified(long lastModified)
addBuffer
protected final byte[] addBuffer(int size)
getBuffer
protected final byte[] getBuffer(int index)
numBuffers
protected final int numBuffers()
newBuffer
protected byte[] newBuffer(int size)
- Expert: allocate a new buffer.
Subclasses can allocate differently.
- Parameters:
size
- size of allocated buffer.
- Returns:
- allocated buffer.
getSizeInBytes
public long getSizeInBytes()