Skip to content

Commit e893237

Browse files
committed
add clearRows()
1 parent 1e5cad1 commit e893237

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

core/src/processing/data/Table.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1666,6 +1666,11 @@ public int lastRowIndex() {
16661666
}
16671667

16681668

1669+
public void clearRows() {
1670+
setRowCount(0);
1671+
}
1672+
1673+
16691674
public void setRowCount(int newCount) {
16701675
if (newCount != rowCount) {
16711676
if (newCount > 1000000) {

core/todo.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ o Integer.TYPE, String.class? still nothing for categorical
157157
o maybe it's Table.INT since it's for advanced users anyway
158158
o problem is loading types from file, no way to access it from code
159159
o CATEGORICAL -> CATEGORY? ORDINAL?
160+
X add clearRows()
160161

161162
_ function that will convert awful CSV to TSV.. or something else?
162163
_ maybe to write binary instead? then read the binary file once it's ok?

0 commit comments

Comments
 (0)