krati.core.array.entry
Class EntryFileWriter
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntryFileWriter
public EntryFileWriter(File file)
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.