Java 类org.apache.lucene.search.FilteredDocIdSet 实例源码

项目:search    文件:ValueSourceFilter.java   
@Override
public DocIdSet getDocIdSet(AtomicReaderContext context, Bits acceptDocs) throws IOException {
  final FunctionValues values = source.getValues( null, context );
  return new FilteredDocIdSet(startingFilter.getDocIdSet(context, acceptDocs)) {
    @Override
    public boolean match(int doc) {
      double val = values.doubleVal( doc );
      return val >= min && val <= max;
    }
  };
}
项目:NYBC    文件:ValueSourceFilter.java   
@Override
public DocIdSet getDocIdSet(AtomicReaderContext context, Bits acceptDocs) throws IOException {
  final FunctionValues values = source.getValues( null, context );
  return new FilteredDocIdSet(startingFilter.getDocIdSet(context, acceptDocs)) {
    @Override
    public boolean match(int doc) {
      double val = values.doubleVal( doc );
      return val >= min && val <= max;
    }
  };
}
项目:read-open-source-code    文件:ValueSourceFilter.java   
@Override
public DocIdSet getDocIdSet(AtomicReaderContext context, Bits acceptDocs) throws IOException {
  final FunctionValues values = source.getValues( null, context );
  return new FilteredDocIdSet(startingFilter.getDocIdSet(context, acceptDocs)) {
    @Override
    public boolean match(int doc) {
      double val = values.doubleVal( doc );
      return val >= min && val <= max;
    }
  };
}
项目:read-open-source-code    文件:ValueSourceFilter.java   
@Override
public DocIdSet getDocIdSet(AtomicReaderContext context, Bits acceptDocs) throws IOException {
  final FunctionValues values = source.getValues( null, context );
  return new FilteredDocIdSet(startingFilter.getDocIdSet(context, acceptDocs)) {
    @Override
    public boolean match(int doc) {
      double val = values.doubleVal( doc );
      return val >= min && val <= max;
    }
  };
}
项目:read-open-source-code    文件:ValueSourceFilter.java   
@Override
public DocIdSet getDocIdSet(AtomicReaderContext context, Bits acceptDocs) throws IOException {
  final FunctionValues values = source.getValues( null, context );
  return new FilteredDocIdSet(startingFilter.getDocIdSet(context, acceptDocs)) {
    @Override
    public boolean match(int doc) {
      double val = values.doubleVal( doc );
      return val >= min && val <= max;
    }
  };
}
项目:Maskana-Gestor-de-Conocimiento    文件:ValueSourceFilter.java   
@Override
public DocIdSet getDocIdSet(AtomicReaderContext context, Bits acceptDocs) throws IOException {
  final FunctionValues values = source.getValues( null, context );
  return new FilteredDocIdSet(startingFilter.getDocIdSet(context, acceptDocs)) {
    @Override
    public boolean match(int doc) {
      double val = values.doubleVal( doc );
      return val >= min && val <= max;
    }
  };
}