|
Public Member Functions |
| BulkBlock (bool leaf=false) |
| ~BulkBlock () |
int | count () |
bool | leaf () |
bool | insert (const char *key, int keyLength, const char *data, int dataLength) |
bool | insertFirstKey (BulkBlock &block, UINT32 blockID) |
bool | getIndex (int index, char *key, int &keyActual, int keyLength, char *value, int &valueActual, int valueLength) |
bool | findGreater (const char *key, int keyLength, char *value, int &actualLength, int valueBufferLength) |
bool | find (const char *key, int keyLength, char *value, int &actualLength, int valueBufferLength) |
int | findIndexOf (const char *key) |
void | clear () |
char * | data () |
void | setID (UINT32 id) |
UINT32 | getID () |
void | link (BulkBlock *previous, BulkBlock *next) |
void | unlink () |
BulkBlock * | previous () |
BulkBlock * | next () |
Static Public Member Functions |
UINT64 | dataSize () |
Private Member Functions |
int | _remainingCapacity () |
int | _dataEnd () |
int | _keyEnd (int index) |
int | _keyStart (int index) |
int | _valueStart (int index) |
int | _valueEnd (int index) |
bool | _canInsert (int keyLength, int dataLength) |
void | _storeKeyValueLength (int insertPoint, int keyLength, int valueLength) |
int | _compare (const char *one, int oneLength, const char *two, int twoLength) |
int | _find (const char *key, int keyLength, bool &exact) |
Private Attributes |
char * | _buffer |
BulkBlock * | _previous |
BulkBlock * | _next |
UINT32 | _id |