Class StarTreeIndexMapUtils


  • public class StarTreeIndexMapUtils
    extends Object
    The StarTreeIndexMapUtils class is a utility class to store/load star-tree index map to/from file.

    The star-tree index map file contains index maps for multiple star-trees, where the index map is a map from index to the offset and size in the star-tree index file.

    The entry in the index file is stored in the following format (for STAR_TREE index type, column is null):

    • $starTreeId.$column.$indexType.OFFSET = $indexOffsetInFile
    • $starTreeId.$column.$indexType.SIZE = $indexSize

    For an example:

    • 0.null.STAR_TREE.OFFSET = 0
    • 0.null.STAR_TREE.SIZE = 2000
    • 0.dimension1.FORWARD.OFFSET = 2000
    • 0.dimension1.FORWARD.SIZE = 1000
    • 0.dimension2.FORWARD.OFFSET = 3000
    • 0.dimension2.FORWARD.SIZE = 1500
    • 0.sum__metric.FORWARD.OFFSET = 4500
    • 0.sum__metric.FORWARD.SIZE = 1000
    • 1.null.STAR_TREE.OFFSET = 5500
    • 1.null.STAR_TREE.SIZE = 2500
    • ...