voldemort.store.readonly.chunk
Class LocalDataFileChunk

java.lang.Object
  extended by voldemort.store.readonly.chunk.LocalDataFileChunk
All Implemented Interfaces:
DataFileChunk

public class LocalDataFileChunk
extends java.lang.Object
implements DataFileChunk


Field Summary
 java.nio.channels.FileChannel dataFile
           
 
Constructor Summary
LocalDataFileChunk(java.nio.channels.FileChannel dataFile)
           
 
Method Summary
 int read(java.nio.ByteBuffer buffer, long currentOffset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataFile

public java.nio.channels.FileChannel dataFile
Constructor Detail

LocalDataFileChunk

public LocalDataFileChunk(java.nio.channels.FileChannel dataFile)
Method Detail

read

public int read(java.nio.ByteBuffer buffer,
                long currentOffset)
         throws java.io.IOException
Specified by:
read in interface DataFileChunk
Throws:
java.io.IOException


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