Package org.elasticsearch.index.field.data.ints

Examples of org.elasticsearch.index.field.data.ints.IntFieldDataMissingComparator


      return new ExtendedFieldComparatorSource() {
        @Override
        public FieldComparator newComparator(String fieldname,
            int numHits, int sortPos, boolean reversed)
            throws IOException {
          return new IntFieldDataMissingComparator(numHits,
              fieldname, cache, reversed ? Integer.MIN_VALUE
                  : Integer.MAX_VALUE);
        }

        @Override
        public int reducedType() {
          return SortField.INT;
        }
      };
    }
    if (missing.equals("_first")) {
      return new ExtendedFieldComparatorSource() {
        @Override
        public FieldComparator newComparator(String fieldname,
            int numHits, int sortPos, boolean reversed)
            throws IOException {
          return new IntFieldDataMissingComparator(numHits,
              fieldname, cache, reversed ? Integer.MAX_VALUE
                  : Integer.MIN_VALUE);
        }

        @Override
        public int reducedType() {
          return SortField.INT;
        }
      };
    }
    return new ExtendedFieldComparatorSource() {
      @Override
      public FieldComparator newComparator(String fieldname, int numHits,
          int sortPos, boolean reversed) throws IOException {
        return new IntFieldDataMissingComparator(numHits, fieldname,
            cache, Integer.parseInt(missing));
      }

      @Override
      public int reducedType() {
View Full Code Here

TOP

Related Classes of org.elasticsearch.index.field.data.ints.IntFieldDataMissingComparator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.