示例#1
0
 @Override
 public String toString() {
   return new TokenBuilder()
       .add(DB)
       .add(':')
       .add(ind.type().toString().toLowerCase(Locale.ENGLISH))
       .add("-range(")
       .addExt(ind.min)
       .add(SEP)
       .addExt(ind.max)
       .add(')')
       .toString();
 }
示例#2
0
  @Override
  public AxisIter iter(final QueryContext ctx) {
    final Data data = ictx.data;
    final byte kind = ind.type() == IndexType.TEXT ? Data.TEXT : Data.ATTR;

    return new AxisIter() {
      final IndexIterator it = data.iter(ind);

      @Override
      public ANode next() {
        return it.more() ? new DBNode(data, it.next(), kind) : null;
      }
    };
  }