public class

RAMFile

extends Object
implements Serializable
java.lang.Object
   ↳ org.apache.lucene.store.RAMFile

Class Overview

For Lucene internal use

Summary

Fields
protected ArrayList<byte[]> buffers
protected long sizeInBytes
Protected Constructors
RAMFile()
Public Methods
synchronized long getLastModified()
synchronized long getLength()
synchronized long getSizeInBytes()
Protected Methods
final byte[] addBuffer(int size)
synchronized final byte[] getBuffer(int index)
byte[] newBuffer(int size)
Expert: allocate a new buffer.
synchronized final int numBuffers()
synchronized void setLastModified(long lastModified)
synchronized void setLength(long length)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected ArrayList<byte[]> buffers

protected long sizeInBytes

Protected Constructors

protected RAMFile ()

Public Methods

public synchronized long getLastModified ()

public synchronized long getLength ()

public synchronized long getSizeInBytes ()

Protected Methods

protected final byte[] addBuffer (int size)

protected final synchronized byte[] getBuffer (int index)

protected byte[] newBuffer (int size)

Expert: allocate a new buffer. Subclasses can allocate differently.

Parameters
size size of allocated buffer.
Returns
  • allocated buffer.

protected final synchronized int numBuffers ()

protected synchronized void setLastModified (long lastModified)

protected synchronized void setLength (long length)