Home | Trees | Indices | Help |
---|
|
object --+ | BucketHandler
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
Process a bucket identified by bucketId. The bucket CRC-32 hash is verified before parsing the bucket data. |
The following is the structure of this bucket : 2b Num of indexed items <repeating> 1b data type of property value 1b length of name ?b property name - ascii string </repeating> |
The following is the structure of this bucket: 2b Number of indexed items <repeating> 1b container type ID: no container, ordered set etc <if container="no container"> 1B property type - int, boolean, string etc 1B/2B/4B length of value bytes --OPTIONAL-- (only applies to some string types) ?B the converted value, some data types have a fixed length such as (boolean len=1, byte len=1, short len=2, int len=4, float len=4) </if> <elseif container="ordered set"> 1B property type - int, boolean, string etc 2B number of items in the set <repeat> <if type=string> 1B property type - the type of string - 1B/2B/4B length of value bytes --OPTIONAL-- (only applies to some string types) </if> ?B the converted value, some data types have a fixed length such as (boolean len=1, byte len=1, short len=2, int len=4, float len=4) </repeat> </if> </repeating> |
Read a multi-value property. If the type is a string then the string type is read from the data file for each value in order to know how many bytes to read. |
Properties - nameid:valueid The following is the structure of this bucket The following is the structure of this bucket: 2B Num of indexed items <repeating> 2B num items in collection <repeating> 4B property name ID 4B property value ID </repeating> </repeating> The order of the properties is taken as the index for each item. As each |
Load the data for the IPv4 Tree bucket. This bucket has the following structure: These 3 ints repeat for the entire bucket: <repeating> 4B properties ID value 4B Left value 4B Right value </repeating> |
Read the appropriate property from the ByteReader depending on the data type. All of the primitive types are fixed length. In addition there are five fixed length UTF8 string values and other special types for strings that are less than certain lengths. |
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri May 30 11:47:02 2014 | http://epydoc.sourceforge.net |