Beispiel #1
0
 /**
  * Read a row from the data page at the given position.
  *
  * @param data the data page
  * @param pos the position to read from
  * @param columnCount the number of columns
  * @return the row
  */
 private static Row readRow(Data data, int pos, int columnCount) {
   Value[] values = new Value[columnCount];
   synchronized (data) {
     data.setPos(pos);
     for (int i = 0; i < columnCount; i++) {
       values[i] = data.readValue();
     }
   }
   return RegularTable.createRow(values);
 }
Beispiel #2
0
 @Override
 public double getCost(Session session, int[] masks, TableFilter filter, SortOrder sortOrder) {
   return getCostRangeIndex(masks, tableData.getRowCountApproximation(), filter, sortOrder);
 }