Skip to content

Commit

Permalink
chore: rm sub range tabelrows
Browse files Browse the repository at this point in the history
  • Loading branch information
fengjiachun committed Dec 21, 2023
1 parent a8f3439 commit 960b4d0
Showing 1 changed file with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public TableRows insert(Object... values) {
@Override
public TableRows subRange(int fromIndex, int toIndex) {
List<RowData.Row> rows = this.rows.subList(fromIndex, toIndex);
return new SubRangeTableRows(this.tableName, this.columnSchemas, rows);
return new RowBasedTableRows(this.tableName, this.columnSchemas, rows);
}

@Override
Expand All @@ -211,16 +211,4 @@ public RowData.Rows into() {
.build();
}
}

class SubRangeTableRows extends RowBasedTableRows {

SubRangeTableRows(String tableName, List<RowData.ColumnSchema> columnSchemas, List<RowData.Row> rows) {
super(tableName, columnSchemas, rows);
}

@Override
public TableRows insert(Object... values) {
throw new UnsupportedOperationException("SubRangeTableRows can not insert");
}
}
}

0 comments on commit 960b4d0

Please sign in to comment.