voldemort.store.readonly.io
Class BaseMappedFile

java.lang.Object
  extended by voldemort.store.readonly.io.BaseMappedFile
Direct Known Subclasses:
MappedFileReader

public class BaseMappedFile
extends java.lang.Object


Field Summary
protected  java.nio.channels.FileChannel channel
           
protected  Closer closer
           
protected  boolean fadvise
           
protected  int fd
           
protected  java.io.File file
           
protected  long length
           
protected  long offset
           
 
Constructor Summary
BaseMappedFile()
           
 
Method Summary
 int getFd()
           
 java.io.File getFile()
           
 boolean isClosed()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

channel

protected java.nio.channels.FileChannel channel

offset

protected long offset

length

protected long length

closer

protected Closer closer

file

protected java.io.File file

fd

protected int fd

fadvise

protected boolean fadvise
Constructor Detail

BaseMappedFile

public BaseMappedFile()
Method Detail

getFile

public java.io.File getFile()

getFd

public int getFd()

isClosed

public boolean isClosed()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu