Package org.apache.lucene.queries.function.docvalues

Examples of org.apache.lucene.queries.function.docvalues.DoubleDocValues


    return "const(" + constant + ")";
  }

  @Override
  public FunctionValues getValues(Map context, AtomicReaderContext readerContext) throws IOException {
    return new DoubleDocValues(this) {
      @Override
      public float floatVal(int doc) {
        return fv;
      }
View Full Code Here


  @Override
  public FunctionValues getValues(Map context, AtomicReaderContext readerContext) throws IOException {
    final FieldCache.Doubles arr = cache.getDoubles(readerContext.reader(), field, parser, true);
    final Bits valid = cache.getDocsWithField(readerContext.reader(), field);
    return new DoubleDocValues(this) {
      @Override
      public double doubleVal(int doc) {
        return arr.get(doc);
      }
View Full Code Here

class ReplaceableConstValueSource extends ValueSource {
    double value;
    final FunctionValues fv;

    public ReplaceableConstValueSource() {
        fv = new DoubleDocValues(this) {
            @Override
            public double doubleVal(int i) {
                return value;
            }
        };
View Full Code Here

TOP

Related Classes of org.apache.lucene.queries.function.docvalues.DoubleDocValues

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.