Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class CompactPtRowNode {
- /************** fields *******************/
- //these are ordered by their order in the final compressed byte[]
- //all nodes have a token except 1b leaves whose only byte is in the parent fan
- int tokenWidth;
- byte[] token;
- int fanOut; //0 for leaf, meaning no children
- byte[] fan;
- int numCells;// will be 0 for internal nodes
- //these exist if numCells > 0
- //each cell has a column and a timestamp
- byte[] columnOffsets;//offset from the column data start
- byte[] timestampIndexes;//version deltas have fixed widths
- //block index: offset into hfile
- //data block: offset into data array
- byte[] dataOffsets;
- //block index: disk size of data block
- //data block: length of value
- byte[] dataLengths;
- //branches and nubs
- Integer offsetWidth;//boxed Integer because it is not known at first
- byte[] offsetBytes;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement