Class NumericUtils.LongRangeBuilder

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addRange​(long min, long max, int shift)
      Overwrite this method, if you like to receive the raw long range bounds.
      void addRange​(BytesRef minPrefixCoded, BytesRef maxPrefixCoded)
      Overwrite this method, if you like to receive the already prefix encoded range bounds.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LongRangeBuilder

        public LongRangeBuilder()
    • Method Detail

      • addRange

        public void addRange​(BytesRef minPrefixCoded,
                             BytesRef maxPrefixCoded)
        Overwrite this method, if you like to receive the already prefix encoded range bounds. You can directly build classical (inclusive) range queries from them.
      • addRange

        public void addRange​(long min,
                             long max,
                             int shift)
        Overwrite this method, if you like to receive the raw long range bounds. You can use this for e.g. debugging purposes (print out range bounds).