/**
 * @license
 * Copyright 2017 The FOAM Authors. All Rights Reserved.
 * http://www.apache.org/licenses/LICENSE-2.0
 */
package foam.dao.index;

import foam.core.FObject;
import foam.dao.Sink;
import foam.mlang.order.Comparator;
import foam.mlang.predicate.Predicate;


public class TreePlan implements FindPlan, SelectPlan {
  protected final static TreePlan instance_ = new TreePlan();

  public static TreePlan instance() { return instance_; }

  protected TreePlan() {}

  public long cost() { return 1; }

  public FObject find(Object state, Object key) {
    return null;
  }

  public void select(Object state, Sink sink, long skip, long limit, Comparator order, Predicate predicate) {
    ((TreeNode)state).select((TreeNode)state, sink, skip, limit, order, predicate);
  }
}

@@ -692,16 +692,19 @@
 e) %7B%0A   
+ //
  ((TreeN
@@ -703,24 +703,25 @@
  ((TreeNode)
+ 
 state).selec
@@ -732,16 +732,17 @@
 reeNode)
+ 
 state, s

Comment out broken code.