Skip to content

cpp tablet new interface#747

Open
hongzhi-gao wants to merge 1 commit intoapache:developfrom
hongzhi-gao:feature/cpp-tablet-interface
Open

cpp tablet new interface#747
hongzhi-gao wants to merge 1 commit intoapache:developfrom
hongzhi-gao:feature/cpp-tablet-interface

Conversation

@hongzhi-gao
Copy link
Contributor

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant