Changes

Jump to navigation Jump to search
249 bytes added ,  19:41, 26 October 2011
! Type
! Description
! Example(native → hex integers)
|-
| valign='top' | {{Type|Num}}| valign='top' | Compressed integer (1-5 bytes), specified in [https://github.com/BaseXdb/basex/blob/master/src/main/java/org/basex/util/Num.java Num.java]| valign='top' {{Mono| 15 }} → {{Mono|0F}}; {{Mono|511}} 0x0F{{Mono|41 FF}}<br/>|-| {{Type|Token}}| Length ({{Type|Num}}) and bytes of UTF8 byte representation| {{Mono|Hello}} → {{Mono|05 48 65 6c 6c 6f}}|-| {{Type|Double}}| Number, stored as token| {{Mono|123}} → {{Mono|03 31 32 33}}|-| {{Type|Boolean}}| Boolean (1 byte, <code>00</code> or <code>01</code>)| {{Mono|true}} → {{Mono|01}}|-| {{Type|Nums}}, {{Type|Tokens}}, {{Type|Doubles}}| Arrays of values, introduced with the number of entries| {{Mono|1,2}} → {{Mono|02 01 31 01 32}}|-| {{Type|TokenSet}}| Key array ({{Type|Tokens}}), next/bucket/size arrays (3x {{Type|Nums}})|
|}
 
 
* {{Type|Num}}: compressed integer (1-5 bytes)
* {{Type|Token}}: length ({{Type|Num}}) and bytes of UTF8 byte representation
* {{Type|Double}}: number, stored as token
* {{Type|Boolean}}: boolean (1 byte, <code>00</code> or <code>01</code>)
* {{Type|TokenSet}}: key array (<code>Tokens</code>), next/bucket/size arrays (<code>Nums</code>)
* {{Type|Nums}}, {{Type|Tokens}} and {{Type|Doubles}} are arrays of values, and introduced with the number of entries ({{Type|Num}})
=Database Files=
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu