Package dovetaildb.querynode

Source Code of dovetaildb.querynode.WrappingQueryNode

package dovetaildb.querynode;

import dovetaildb.bagindex.Range;

import dovetaildb.bytes.ArrayBytes;
import dovetaildb.bytes.Bytes;
import dovetaildb.querynode.QueryNode.NextStatus;

public abstract class WrappingQueryNode extends AbstractQueryNode {

  protected QueryNode subQueryNode;
 
  public WrappingQueryNode(QueryNode inner) {
    this.subQueryNode = inner;
  }
 
  public long doc() { return subQueryNode.doc(); }
 
  public boolean next() {
    return subQueryNode.next();
  }
 
  public void seek(long seekDoc, Bytes seekTerm) {
    subQueryNode.seek(seekDoc, seekTerm);
  }
 
  public NextStatus nextTerm() {
    NextStatus status = subQueryNode.nextTerm();
    return status;
  }
 
  public Bytes term() { return subQueryNode.term(); }

  public abstract QueryNode copy();
 
  public abstract QueryNode specialize(Range range);

  @Override
  public int cost() {
    return subQueryNode.cost();
  }

  @Override
  public boolean positionSet(long docId, Bytes prefix) {
    return subQueryNode.positionSet(docId, prefix);
  }
 
  @Override
  public boolean positionNext() {
    return subQueryNode.positionNext();
  }
 
  @Override
  public long nextValidDocId(long docId) {
    return subQueryNode.nextValidDocId(docId);
  }

  @Override
  public boolean anyNext() {
    return subQueryNode.anyNext();
  }
 
}
TOP

Related Classes of dovetaildb.querynode.WrappingQueryNode

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.