Class BlockedDataFile
java.lang.Object
com.semedy.reasoner.edb.persistentstore.bplustree.DataFileImp
com.semedy.reasoner.edb.persistentstore.bplustree.BlockedDataFile
- All Implemented Interfaces:
DataFile,Closeable,AutoCloseable
Manages space in a file. Writes and reads blockwise.
file address is padded and left shifted
leftshift bytes are used to address inside a block.
New data is always appended to file.
file address is padded and left shifted
leftshift bytes are used to address inside a block.
New data is always appended to file.
- Author:
- angele
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.semedy.reasoner.edb.persistentstore.bplustree.DataFileImp
checkSanity, checkSanity1, clear, create, delete, free, length, open, readInt, transactionBegin, transactionCommit, transactionRollback, writeCompressed, writeDirect, writeDirect
-
Constructor Details
-
BlockedDataFile
- Parameters:
filePath-
-
-
Method Details
-
read
Reads data at position from file and returns them- Specified by:
readin interfaceDataFile- Overrides:
readin classDataFileImp- Parameters:
position-- Returns:
- Throws:
IOException
-
close
Close file- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceDataFile- Overrides:
closein classDataFileImp- Throws:
IOException
-
flush
flush file- Specified by:
flushin interfaceDataFile- Overrides:
flushin classDataFileImp- Throws:
IOException
-
write
write data to file. Returns address of data- Specified by:
writein interfaceDataFile- Overrides:
writein classDataFileImp- Returns:
- Throws:
IOException
-
elements
iterator for file pieces- Specified by:
elementsin interfaceDataFile- Overrides:
elementsin classDataFileImp- Returns:
-