krati.core.array.entry
Class EntryValueBatch

java.lang.Object
  extended by krati.core.array.entry.EntryValueBatch
Direct Known Subclasses:
EntryValueBatchInt, EntryValueBatchLong, EntryValueBatchShort

public abstract class EntryValueBatch
extends Object


Field Summary
protected  ByteBuffer _buffer
           
protected  int _valueCapacity
           
protected  int _valueSize
           
 
Constructor Summary
protected EntryValueBatch(int valueSize, int valueCapacity)
           
 
Method Summary
 void clear()
           
 int getByteCapacity()
           
 int getCapacity()
           
 ByteBuffer getInternalBuffer()
           
 void write(FileChannel channel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_valueSize

protected final int _valueSize

_valueCapacity

protected final int _valueCapacity

_buffer

protected final ByteBuffer _buffer
Constructor Detail

EntryValueBatch

protected EntryValueBatch(int valueSize,
                          int valueCapacity)
Method Detail

getCapacity

public int getCapacity()

getByteCapacity

public int getByteCapacity()

getInternalBuffer

public ByteBuffer getInternalBuffer()

write

public void write(FileChannel channel)
           throws IOException
Throws:
IOException

clear

public void clear()


Copyright © 2011. All Rights Reserved.