-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
358 additions
and
477 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
|
||
#cython: language_level=3 | ||
|
||
from .tsfile_cpp cimport * | ||
|
||
ctypedef struct TsFileReaderStruct: | ||
TsFileReader reader | ||
ctypedef struct ResultSetStruct: | ||
ResultSet result | ||
ctypedef struct TsFileWriterStruct: | ||
TsFileWriter writer | ||
ctypedef struct TabletStruct: | ||
Tablet tablet | ||
|
||
cdef object from_c_result_set_meta_data(ResultSetMetaData schema) | ||
cdef TSDataType to_c_data_type(object data_type) | ||
cdef TSEncoding to_c_encoding_type(object encoding_type) | ||
cdef CompressionType to_c_compression_type(object compression_type) | ||
cdef ColumnCategory to_c_category(object category) | ||
cdef TimeseriesSchema* to_c_timeseries_schema(object py_schema) | ||
cdef DeviceSchema* to_c_device_schema(object py_schema) | ||
cdef ColumnSchema* to_c_column_schema(object py_schema) | ||
cdef TableSchema* to_c_table_schema(object py_schema) | ||
cdef TabletStruct* to_c_tablet(object tablet) | ||
cdef void free_c_table_schema(TableSchema* c_schema) | ||
cdef void free_c_column_schema(ColumnSchema* c_schema) | ||
cdef void free_c_timeseries_schema(TimeseriesSchema* c_schema) | ||
cdef void free_c_device_schema(DeviceSchema* c_schema) | ||
cdef void free_c_tablet(Tablet tablet) | ||
cdef TsFileWriterStruct* tsfile_writer_new_c(object pathname) | ||
cdef TsFileReaderStruct* tsfile_reader_new_c(object pathname) | ||
cdef ErrorCode tsfile_writer_register_device_py_cpp(TsFileWriterStruct *writer, DeviceSchema *schema) | ||
cdef ErrorCode tsfile_writer_register_timeseries_py_cpp(TsFileWriterStruct *writer, object device_name, | ||
TimeseriesSchema *schema) | ||
cdef ErrorCode tsfile_writer_register_table_py_cpp(TsFileWriterStruct *writer, TableSchema *schema) | ||
cdef bint tsfile_result_set_is_null_by_name_c(ResultSet result_set, object name) | ||
cdef ResultSetStruct* tsfile_reader_query_table_c(TsFileReader reader, object table_name, object column_list, | ||
int64_t start_time, int64_t end_time) |
Oops, something went wrong.