Class BplusIndexLongs
java.lang.Object
com.semedy.reasoner.edb.persistentstore.BplusIndexLongs
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Field Summary
Modifier and TypeFieldDescriptionthe buffered file for dataBPlusTree<long[],
TupleBuffer> the bplus tree for symbols -
Constructor Summary
ConstructorDescriptionBplusIndexLongs
(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 TypeMethodDescriptionboolean
checkSanity
(String message, boolean shadow) check sanity of treevoid
clear()
void
close()
boolean
containsKeyLongs
(long[] key) boolean
void
delete()
void
flush
(boolean shadow) BPlusTree<long[],
TupleBuffer> getKeys()
int
getLength
(long[] key) getLongsBuffer
(long[] key) boolean
long
put
(long[] key, byte[] data, boolean shadow) long
put
(long[] key, long[] dat, boolean shadow) long
putCompressed
(long[] key, byte[] compressedData, int originalLength, boolean shadow) void
remove
(long[] key, boolean shadow) boolean
searchForRecord
(long record) void
setBulkMode
(boolean mode) long
size()
void
void
void
-
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:
IOException
EDBException
-
BplusIndexLongs
-
-
Method Details
-
searchForRecord
- Throws:
IOException
-
checkSanity
check sanity of tree- Returns:
- Throws:
IOException
-
put
- Throws:
IOException
EDBException
-
put
- Throws:
IOException
EDBException
-
putCompressed
public long putCompressed(long[] key, byte[] compressedData, int originalLength, boolean shadow) throws IOException, EDBException - Throws:
IOException
EDBException
-
getLength
- Throws:
IOException
-
getLongsBuffer
- Throws:
IOException
-
getLongsBuffer
- Throws:
IOException
-
containsKeyLongs
- Throws:
IOException
-
containsKeyLongs
- Throws:
IOException
-
flush
- Throws:
IOException
EDBException
-
setBulkMode
- Throws:
IOException
EDBException
-
isBulkMode
public boolean isBulkMode() -
clear
- Throws:
IOException
EDBException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
delete
- Throws:
IOException
-
transactionCommit
- Throws:
IOException
EDBException
-
transactionBegin
- Throws:
IOException
-
transactionRollback
- Throws:
IOException
-
remove
- Throws:
IOException
EDBException
-
size
public long size() -
getKeys
-