hongzhi-gao opened a new pull request, #747:
URL: https://github.com/apache/tsfile/pull/747
Add tsfile-cpp tablet new interface
```
/**
* @brief Constructs a Tablet object by taking pre-filled columns.
*
* For numeric types, `columns[col_index]` should point to a contiguous
* array of the corresponding C++ type.
* For string-like types (TEXT/BLOB/STRING), `columns[col_index]` should
* point to an array of `common::String` with length `row_num`.
*/
Tablet(uint32_t column_num, uint32_t row_num, void** columns,
const std::vector<std::string>& column_names,
const std::vector<common::TSDataType>& data_types);
/**
* @brief Set a whole column buffer at once.
*
* @param column_index Schema index of the column to set.
* @param column A pointer to an array with `column_length` elements.
* See the constructor doc for the expected element types.
* @param column_length Number of rows to copy from `column`.
*/
int set_column(int column_index, void* column, int column_length);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]