Class NFileJournal
Btree+ based file journal.
- NObject
- NFileJournal implements ICacheJournal
public
|
|
public
|
|
public
|
|
public
array
|
__call(),
__callStatic(),
__get(),
__isset(),
__set(),
__unset(),
extensionMethod(),
getReflection()
|
string |
FILE
|
'btfj.dat' |
#
Filename with journal |
integer |
FILE_MAGIC
|
0x6274666A |
#
4 bytes file header magic (btfj) |
integer |
INDEX_MAGIC
|
0x696E6465 |
#
4 bytes index node magic (inde) |
integer |
DATA_MAGIC
|
0x64617461 |
#
4 bytes data node magic (data) |
integer |
NODE_SIZE
|
4096 |
#
Node size in bytes |
integer |
BITROT
|
12 |
#
Bit rotation for saving data into nodes. BITROT = log2(NODE_SIZE) |
integer |
HEADER_SIZE
|
4096 |
#
Header size in bytes |
integer |
INT32_SIZE
|
4 |
#
Size of 32 bit integer in bytes. INT32_SIZE = 32 / 8 :-) |
string |
INFO
|
'i' |
|
string |
TYPE
|
't' |
|
string |
IS_LEAF
|
'il' |
|
string |
PREV_NODE
|
'p' |
|
string |
END
|
'e' |
|
string |
MAX
|
'm' |
|
string |
INDEX_DATA
|
'id' |
|
string |
LAST_INDEX
|
'l' |
|
string |
TAGS
|
't' |
|
string |
PRIORITY
|
'p' |
|
string |
ENTRIES
|
'e' |
|
string |
DATA
|
'd' |
|
string |
KEY
|
'k' |
|
string |
DELETED
|
'd' |
public static
boolean
|
$debug | FALSE |
#
Debug mode, only for testing purposes |
$reflection
|