krati.core.array.entry
Class EntryValue

java.lang.Object
  extended by krati.core.array.entry.EntryValue
All Implemented Interfaces:
Comparable<EntryValue>
Direct Known Subclasses:
EntryValueInt, EntryValueLong, EntryValueShort

public abstract class EntryValue
extends Object
implements Comparable<EntryValue>

EntryValue.

Author:
jwu

Field Summary
 int pos
           
 long scn
           
 
Constructor Summary
EntryValue(int pos, long scn)
           
 
Method Summary
 int compareTo(EntryValue o)
           
 int getPosition()
           
 long getScn()
           
 String toString()
           
abstract  void updateArrayFile(DataWriter writer, long position)
          Writes this EntryValue to a file channel at a given position.
abstract  void write(DataWriter writer)
          Writes this EntryValue to entry log file via a channel writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pos

public int pos

scn

public long scn
Constructor Detail

EntryValue

public EntryValue(int pos,
                  long scn)
Method Detail

getPosition

public final int getPosition()

getScn

public final long getScn()

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(EntryValue o)
Specified by:
compareTo in interface Comparable<EntryValue>

write

public abstract void write(DataWriter writer)
                    throws IOException
Writes this EntryValue to entry log file via a channel writer.

Parameters:
writer -
Throws:
IOException

updateArrayFile

public abstract void updateArrayFile(DataWriter writer,
                                     long position)
                              throws IOException
Writes this EntryValue to a file channel at a given position.

Parameters:
writer -
position -
Throws:
IOException


Copyright © 2011. All Rights Reserved.