Commits


Krisztián Szűcs authored and Wes McKinney committed 44bfd0d5a7f
ARROW-2638: [Python] Prevent calling extension class constructors directly Using http://docs.cython.org/en/latest/src/userguide/extension_types.html#fast-instantiation What do You think @pitrou ? Should I implement for the rest of the classes? (Field, Schema etc.) Author: Krisztián Szűcs <szucs.krisztian@gmail.com> Author: Wes McKinney <wesm+git@apache.org> Closes #2085 from kszucs/ARROW-2638 and squashes the following commits: 6c3d9377 <Wes McKinney> Restore DataType to public API ae022d6c <Krisztián Szűcs> private constructor for PlasmaBuffer ee401c61 <Krisztián Szűcs> correct Tensor's error msg 597da834 <Krisztián Szűcs> remove Tensor._validate ef3b9a92 <Krisztián Szűcs> prevent constructing Array and Tensor 71800514 <Krisztián Szűcs> prevent directly constructing Buffer and remove _check_nullptr methods 08b899f1 <Krisztián Szűcs> remove _check_nullptr from ChunkedArray 336d3665 <Krisztián Szűcs> prevent directly constructing ChunkedArray 00a2869f <Krisztián Szűcs> remove _check_nullptr from RecordBatch, Table, Column 6c1edbe3 <Krisztián Szűcs> prevent directly constructing Column 209b8961 <Krisztián Szűcs> remove _check_null methods from types.pxi a96da893 <Krisztián Szűcs> remove DataType, NAType, TimestampType from public API 0231fab4 <Krisztián Szűcs> test struct __len__ and __iter__ fa3e4b4a <Krisztián Szűcs> test more types e1fa710d <Krisztián Szűcs> construct schema via pyarrow_wrap_schema a42c3090 <Krisztián Szűcs> refactor datatype, field and schema pickling to use __reduce__ instead of __getstate__ and __setstate__ methods c13247cd <Krisztián Szűcs> use TypeError instead of RuntimeError bdddf44e <Krisztián Szűcs> datatype, field and schema 102b9b09 <Krisztián Szűcs> recordbatch and table