Class BplusIndexLongs
java.lang.Object
com.semedy.reasoner.edb.persistentstore.BplusIndexLongs
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionthe buffered file for dataBPlusTree<long[],TupleBuffer> the bplus tree for symbols -
Constructor Summary
ConstructorsConstructorDescriptionBplusIndexLongs(int keyLength, int nodesize, String dir, String name, String endtreefile, String enddatafile, boolean compress, int additionalHeaderLength) BplusIndexLongs(BPlusTree<long[], TupleBuffer> btreelong) -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckSanity(String message, boolean shadow) check sanity of treevoidclear()voidclose()booleancontainsKeyLongs(long[] key) booleanvoiddelete()voidflush(boolean shadow) BPlusTree<long[],TupleBuffer> getKeys()intgetLength(long[] key) getLongsBuffer(long[] key) booleanlongput(long[] key, byte[] data, boolean shadow) longput(long[] key, long[] dat, boolean shadow) longputCompressed(long[] key, byte[] compressedData, int originalLength, boolean shadow) voidremove(long[] key, boolean shadow) booleansearchForRecord(long record) voidsetBulkMode(boolean mode) longsize()voidvoidvoid
-
Field Details
-
_keys
the bplus tree for symbols -
_bufferFile
the buffered file for data
-
-
Constructor Details
-
BplusIndexLongs
public BplusIndexLongs(int keyLength, int nodesize, String dir, String name, String endtreefile, String enddatafile, boolean compress, int additionalHeaderLength) throws IOException, EDBException - Throws:
IOExceptionEDBException
-
BplusIndexLongs
-
-
Method Details
-
searchForRecord
- Throws:
IOException
-
checkSanity
check sanity of tree- Returns:
- Throws:
IOException
-
put
- Throws:
IOExceptionEDBException
-
put
- Throws:
IOExceptionEDBException
-
putCompressed
public long putCompressed(long[] key, byte[] compressedData, int originalLength, boolean shadow) throws IOException, EDBException - Throws:
IOExceptionEDBException
-
getLength
- Throws:
IOException
-
getLongsBuffer
- Throws:
IOException
-
getLongsBuffer
- Throws:
IOException
-
containsKeyLongs
- Throws:
IOException
-
containsKeyLongs
- Throws:
IOException
-
flush
- Throws:
IOExceptionEDBException
-
setBulkMode
- Throws:
IOExceptionEDBException
-
isBulkMode
public boolean isBulkMode() -
clear
- Throws:
IOExceptionEDBException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
delete
- Throws:
IOException
-
transactionCommit
- Throws:
IOExceptionEDBException
-
transactionBegin
- Throws:
IOException
-
transactionRollback
- Throws:
IOException
-
remove
- Throws:
IOExceptionEDBException
-
size
public long size() -
getKeys
-