Ejemplo n.º 1
0
 @Override
 public Index getScanIndex(Session session) {
   if (getStep(session) == 0) {
     throw DbException.get(ErrorCode.STEP_SIZE_MUST_NOT_BE_ZERO);
   }
   return new RangeIndex(this, IndexColumn.wrap(columns));
 }
Ejemplo n.º 2
0
 private Index addIndex(String name, ArrayList<Column> list, IndexType indexType) {
   Column[] cols = new Column[list.size()];
   list.toArray(cols);
   Index index = new Index(this, name, IndexColumn.wrap(cols), indexType);
   indexes.add(index);
   return index;
 }