Examples of BoolDocValues


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

  @Override
  public FunctionValues getValues(Map context, AtomicReaderContext readerContext) throws IOException {
    final FunctionValues shapeValues = shapeValuesource.getValues(context, readerContext);

    return new BoolDocValues(this) {
      @Override
      public boolean boolVal(int doc) {
        Shape indexedShape = (Shape) shapeValues.objectVal(doc);
        if (indexedShape == null)
          return false;
View Full Code Here

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

  protected abstract boolean func(int doc, FunctionValues vals);

  @Override
  public BoolDocValues getValues(Map context, AtomicReaderContext readerContext) throws IOException {
    final FunctionValues vals =  source.getValues(context, readerContext);
    return new BoolDocValues(this) {
      @Override
      public boolean boolVal(int doc) {
        return func(doc, vals);
      }
      @Override
View Full Code Here

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

    int i=0;
    for (ValueSource source : sources) {
      vals[i++] = source.getValues(context, readerContext);
    }

    return new BoolDocValues(this) {
      @Override
      public boolean boolVal(int doc) {
        return func(doc, vals);
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.