Skip to content

Commit

Permalink
Typed array stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
wesm committed Mar 7, 2016
1 parent ac8c796 commit 55e69a2
Showing 1 changed file with 48 additions and 1 deletion.
49 changes: 48 additions & 1 deletion python/arrow/array.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,56 @@
# under the License.

from arrow.includes.common cimport shared_ptr
from arrow.includes.arrow cimport CArray
from arrow.includes.arrow cimport CArray, LogicalType

cdef class Array:
cdef:
shared_ptr[CArray] sp_array
CArray* array

def __len__(self):
return self.array.length()


cdef class BooleanArray(Array):
pass


cdef class NumericArray(Array):
pass


cdef class Int8Array(NumericArray):
pass


cdef class UInt8Array(NumericArray):
pass


cdef class Int16Array(NumericArray):
pass


cdef class UInt16Array(NumericArray):
pass


cdef class Int32Array(NumericArray):
pass


cdef class UInt32Array(NumericArray):
pass


cdef class Int64Array(NumericArray):
pass


cdef class UInt64Array(NumericArray):
pass


cdef class StringArray(NumericArray):
pass

0 comments on commit 55e69a2

Please sign in to comment.