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
For Lucene internal use
- See Also:
- Serialized Form
Constructor Summary |
protected |
RAMFile()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buffers
protected ArrayList buffers
sizeInBytes
protected long sizeInBytes
RAMFile
protected 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()
Copyright © 2000-2010 Apache Software Foundation. All Rights Reserved.