Class FacetSet

    • Field Detail

      • dims

        public final int dims
        The number of dimension values in this set.
    • Constructor Detail

      • FacetSet

        protected FacetSet​(int dims)
        Constructs a new instance of a facet set with the given number of dimensions.
    • Method Detail

      • getComparableValues

        public abstract long[] getComparableValues()
        Returns the dimension values in this facet set as comparable longs.
      • packValues

        public int packValues​(byte[] buf,
                              int start)
        Packs the dimension values into the given byte[] and returns the number of packed-values bytes. The default implementation packs the comparable values, and you can override to implement your own scheme.
      • sizePackedBytes

        public int sizePackedBytes()
        Returns the size of the packed values in this facet set. If the value is unknown in advance (e.g. if the values are compressed), this method can return an upper limit. The default implementations returns dims * Long.BYTES per the default implementation of packValues(byte[], int). You should override if you implement packValues(byte[], int) differently.