From 960b4d041704623febd37701f2259d153c826981 Mon Sep 17 00:00:00 2001 From: jeremyhi Date: Thu, 21 Dec 2023 22:36:03 +0800 Subject: [PATCH] chore: rm sub range tabelrows --- .../main/java/io/greptime/models/TableRows.java | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/ingester-protocol/src/main/java/io/greptime/models/TableRows.java b/ingester-protocol/src/main/java/io/greptime/models/TableRows.java index 34351b0..c6940ea 100644 --- a/ingester-protocol/src/main/java/io/greptime/models/TableRows.java +++ b/ingester-protocol/src/main/java/io/greptime/models/TableRows.java @@ -184,7 +184,7 @@ public TableRows insert(Object... values) { @Override public TableRows subRange(int fromIndex, int toIndex) { List rows = this.rows.subList(fromIndex, toIndex); - return new SubRangeTableRows(this.tableName, this.columnSchemas, rows); + return new RowBasedTableRows(this.tableName, this.columnSchemas, rows); } @Override @@ -211,16 +211,4 @@ public RowData.Rows into() { .build(); } } - - class SubRangeTableRows extends RowBasedTableRows { - - SubRangeTableRows(String tableName, List columnSchemas, List rows) { - super(tableName, columnSchemas, rows); - } - - @Override - public TableRows insert(Object... values) { - throw new UnsupportedOperationException("SubRangeTableRows can not insert"); - } - } }