Skip to content

Commit

Permalink
modify example
Browse files Browse the repository at this point in the history
  • Loading branch information
shuwenwei committed Nov 22, 2024
1 parent 9d30cfa commit d74f617
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public static void main(String[] args) throws IOException {
// reset tablet
tablet.reset();

for (int timestamp = 0; timestamp < 5; timestamp++) {
for (long timestamp = 0; timestamp < 5; timestamp++) {
int rowIndex = tablet.getRowSize();
// rowSize may be changed after addTimestamp
tablet.addTimestamp(rowIndex, timestamp);
Expand All @@ -108,7 +108,8 @@ public static void main(String[] args) throws IOException {
// id2 column
tablet.addValue(rowIndex, 1, "id1_field_2");

tablet.addValue(rowIndex, 2, timestamp);
// s1 column
tablet.addValue(rowIndex, 2, 1);

// s2 column
tablet.addValue(rowIndex, 3, false);
Expand Down

0 comments on commit d74f617

Please sign in to comment.