krati.core.array.entry
Class EntryFileWriter

java.lang.Object
  extended by krati.core.array.entry.EntryFileWriter
Type Parameters:
T - Generic entry value representing an update to array file.

public class EntryFileWriter
extends Object

Transactional Redo Entry File Structure: +------------------------+ |Head Section | |------------------------| | STORAGE_VERSION | long | | MIN_SCN | long | | MAX_SCN | long | | ENTRY_VALUE_CNT | int | |------------------------| |Data Section | |------------------------| | POSITION VALUE SCN | (entry value 1) | POSITION VALUE SCN | (entry value 2) | ... | ... |------------------------| |Tail Section | |------------------------| | MIN_SCN | long | | MAX_SCN | long | +------------------------+

Author:
jwu

Constructor Summary
EntryFileWriter(File file)
           
 
Method Summary
 void close()
           
 void flush()
           
 File getFile()
           
 long getMaxScn()
           
 long getMinScn()
           
 void open(long minScn, long maxScn)
           
 void write(int pos, int val, long scn)
           
 void write(int pos, long val, long scn)
           
 void write(int pos, short val, long scn)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntryFileWriter

public EntryFileWriter(File file)
Method Detail

getFile

public File getFile()

getMinScn

public long getMinScn()

getMaxScn

public long getMaxScn()

open

public void open(long minScn,
                 long maxScn)
          throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Throws:
IOException

flush

public void flush()
           throws IOException
Throws:
IOException

write

public void write(int pos,
                  int val,
                  long scn)
           throws IOException
Throws:
IOException

write

public void write(int pos,
                  long val,
                  long scn)
           throws IOException
Throws:
IOException

write

public void write(int pos,
                  short val,
                  long scn)
           throws IOException
Throws:
IOException


Copyright © 2011. All Rights Reserved.