Skip to content

Commit 50ef24c

Browse files
authored
modify tablet (#531)
1 parent 39cffea commit 50ef24c

File tree

2 files changed

+22
-16
lines changed

2 files changed

+22
-16
lines changed

src/UserGuide/Master/Tree/API/Programming-Java-Native-API.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -323,22 +323,25 @@ It is recommended to use insertTablet to help improve write efficiency.
323323
void insertTablet(Tablet tablet)
324324

325325
public class Tablet {
326-
/** deviceId of this tablet */
327-
public String prefixPath;
326+
/** DeviceId if using tree-view interfaces or TableName when using table-view interfaces. */
327+
private String insertTargetName;
328328
/** the list of measurement schemas for creating the tablet */
329329
private List<MeasurementSchema> schemas;
330+
/**
331+
* Marking the type of each column, namely ID or MEASUREMENT. Notice: the ID columns must be the
332+
* FIRST ones.
333+
*/
334+
private List<ColumnCategory> columnCategories;
330335
/** timestamps in this tablet */
331-
public long[] timestamps;
336+
private long[] timestamps;
332337
/** each object is a primitive type array, which represents values of one measurement */
333-
public Object[] values;
338+
private Object[] values;
334339
/** each bitmap represents the existence of each value in the current column. */
335-
public BitMap[] bitMaps;
340+
private BitMap[] bitMaps;
336341
/** the number of rows to include in this tablet */
337-
public int rowSize;
342+
private int rowSize;
338343
/** the maximum number of rows for this tablet */
339344
private int maxRowNumber;
340-
/** whether this tablet store data of aligned timeseries or not */
341-
private boolean isAligned;
342345
}
343346
```
344347

src/zh/UserGuide/Master/Tree/API/Programming-Java-Native-API.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -289,22 +289,25 @@ public void dropSchemaTemplate(String templateName);
289289
void insertTablet(Tablet tablet)
290290

291291
public class Tablet {
292-
/** deviceId of this tablet */
293-
public String prefixPath;
292+
/** DeviceId if using tree-view interfaces or TableName when using table-view interfaces. */
293+
private String insertTargetName;
294294
/** the list of measurement schemas for creating the tablet */
295295
private List<MeasurementSchema> schemas;
296+
/**
297+
* Marking the type of each column, namely ID or MEASUREMENT. Notice: the ID columns must be the
298+
* FIRST ones.
299+
*/
300+
private List<ColumnCategory> columnCategories;
296301
/** timestamps in this tablet */
297-
public long[] timestamps;
302+
private long[] timestamps;
298303
/** each object is a primitive type array, which represents values of one measurement */
299-
public Object[] values;
304+
private Object[] values;
300305
/** each bitmap represents the existence of each value in the current column. */
301-
public BitMap[] bitMaps;
306+
private BitMap[] bitMaps;
302307
/** the number of rows to include in this tablet */
303-
public int rowSize;
308+
private int rowSize;
304309
/** the maximum number of rows for this tablet */
305310
private int maxRowNumber;
306-
/** whether this tablet store data of aligned timeseries or not */
307-
private boolean isAligned;
308311
}
309312
```
310313

0 commit comments

Comments
 (0)