Skip to content

Commit a740a58

Browse files
Put all methods in alphabetical order.
1 parent 46cc1fe commit a740a58

File tree

1 file changed

+17
-19
lines changed

1 file changed

+17
-19
lines changed

src/oracledb/interchange/nanoarrow_bridge.pyx

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ cdef extern from "nanoarrow/nanoarrow.c":
3939

4040
ctypedef int ArrowErrorCode
4141

42+
cdef struct ArrowBuffer:
43+
uint8_t *data
44+
int64_t size_bytes
45+
4246
cdef union ArrowBufferViewData:
4347
const void* data
4448

@@ -49,10 +53,6 @@ cdef extern from "nanoarrow/nanoarrow.c":
4953
cdef struct ArrowArrayView:
5054
ArrowBufferView *buffer_views
5155

52-
cdef struct ArrowBuffer:
53-
uint8_t *data
54-
int64_t size_bytes
55-
5656
cdef struct ArrowDecimal:
5757
pass
5858

@@ -65,21 +65,19 @@ cdef extern from "nanoarrow/nanoarrow.c":
6565

6666
cdef ArrowErrorCode NANOARROW_OK
6767

68-
void ArrowArrayRelease(ArrowArray *array)
69-
void ArrowSchemaRelease(ArrowSchema *schema)
70-
71-
ArrowErrorCode ArrowArrayInitFromType(ArrowArray* array,
72-
ArrowType storage_type)
7368
ArrowErrorCode ArrowArrayAppendBytes(ArrowArray* array,
7469
ArrowBufferView value)
75-
ArrowErrorCode ArrowArrayAppendDouble(ArrowArray* array, double value)
76-
ArrowErrorCode ArrowArrayAppendNull(ArrowArray* array, int64_t n)
77-
ArrowErrorCode ArrowArrayAppendInt(ArrowArray* array, int64_t value)
7870
ArrowErrorCode ArrowArrayAppendDecimal(ArrowArray* array,
7971
const ArrowDecimal* value)
72+
ArrowErrorCode ArrowArrayAppendDouble(ArrowArray* array, double value)
73+
ArrowErrorCode ArrowArrayAppendInt(ArrowArray* array, int64_t value)
74+
ArrowErrorCode ArrowArrayAppendNull(ArrowArray* array, int64_t n)
8075
ArrowBuffer* ArrowArrayBuffer(ArrowArray* array, int64_t i)
8176
ArrowErrorCode ArrowArrayFinishBuildingDefault(ArrowArray* array,
8277
ArrowError* error)
78+
ArrowErrorCode ArrowArrayInitFromType(ArrowArray* array,
79+
ArrowType storage_type)
80+
void ArrowArrayRelease(ArrowArray *array)
8381
ArrowErrorCode ArrowArrayReserve(ArrowArray* array,
8482
int64_t additional_size_elements)
8583
ArrowErrorCode ArrowArrayStartAppending(ArrowArray* array)
@@ -90,8 +88,15 @@ cdef extern from "nanoarrow/nanoarrow.c":
9088
const ArrowArray* array,
9189
ArrowError* error)
9290
int8_t ArrowBitGet(const uint8_t* bits, int64_t i)
91+
void ArrowDecimalInit(ArrowDecimal* decimal, int32_t bitwidth,
92+
int32_t precision, int32_t scale)
93+
void ArrowDecimalSetBytes(ArrowDecimal *decimal, const uint8_t* value)
94+
ArrowErrorCode ArrowDecimalSetDigits(ArrowDecimal* decimal,
95+
ArrowStringView value)
9396
void ArrowSchemaInit(ArrowSchema* schema)
9497
ArrowErrorCode ArrowSchemaInitFromType(ArrowSchema* schema, ArrowType type)
98+
void ArrowSchemaRelease(ArrowSchema *schema)
99+
ArrowErrorCode ArrowSchemaSetName(ArrowSchema* schema, const char* name)
95100
ArrowErrorCode ArrowSchemaSetTypeDateTime(ArrowSchema* schema,
96101
ArrowType arrow_type,
97102
ArrowTimeUnit time_unit,
@@ -100,15 +105,8 @@ cdef extern from "nanoarrow/nanoarrow.c":
100105
ArrowType type,
101106
int32_t decimal_precision,
102107
int32_t decimal_scale)
103-
ArrowErrorCode ArrowSchemaSetName(ArrowSchema* schema, const char* name)
104108
int64_t ArrowSchemaToString(const ArrowSchema* schema, char* out,
105109
int64_t n, char recursive)
106-
void ArrowDecimalInit(ArrowDecimal* decimal, int32_t bitwidth,
107-
int32_t precision, int32_t scale)
108-
void ArrowDecimalSetBytes(ArrowDecimal *decimal, const uint8_t* value)
109-
ArrowErrorCode ArrowDecimalSetDigits(ArrowDecimal* decimal,
110-
ArrowStringView value)
111-
112110

113111
cdef int _check_nanoarrow(int code) except -1:
114112
"""

0 commit comments

Comments
 (0)