_csv.pxd 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # Licensed to the Apache Software Foundation (ASF) under one
  2. # or more contributor license agreements. See the NOTICE file
  3. # distributed with this work for additional information
  4. # regarding copyright ownership. The ASF licenses this file
  5. # to you under the Apache License, Version 2.0 (the
  6. # "License"); you may not use this file except in compliance
  7. # with the License. You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing,
  12. # software distributed under the License is distributed on an
  13. # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  14. # KIND, either express or implied. See the License for the
  15. # specific language governing permissions and limitations
  16. # under the License.
  17. # cython: language_level = 3
  18. from pyarrow.includes.libarrow cimport *
  19. from pyarrow.lib cimport _Weakrefable
  20. cdef class ConvertOptions(_Weakrefable):
  21. cdef:
  22. unique_ptr[CCSVConvertOptions] options
  23. @staticmethod
  24. cdef ConvertOptions wrap(CCSVConvertOptions options)
  25. cdef class ParseOptions(_Weakrefable):
  26. cdef:
  27. unique_ptr[CCSVParseOptions] options
  28. @staticmethod
  29. cdef ParseOptions wrap(CCSVParseOptions options)
  30. cdef class ReadOptions(_Weakrefable):
  31. cdef:
  32. unique_ptr[CCSVReadOptions] options
  33. public object encoding
  34. @staticmethod
  35. cdef ReadOptions wrap(CCSVReadOptions options)
  36. cdef class WriteOptions(_Weakrefable):
  37. cdef:
  38. unique_ptr[CCSVWriteOptions] options
  39. @staticmethod
  40. cdef WriteOptions wrap(CCSVWriteOptions options)