Skip to content
Permalink
Browse files
Merge pull request #10 from sglyon/sl/indexstyle
ENH: ArrowVector should have IndexStyle IndexLinear()
  • Loading branch information
ExpandingMan committed Mar 2, 2018
2 parents d176834 + d2d79ad commit e626f8ade25f7c3d692a36bae9f1aa414326730b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
@@ -12,6 +12,7 @@ const ALIGNMENT = 8

import Base: convert, show, unsafe_string, checkbounds, write, values, copy
import Base: length, endof, size, eltype, start, next, done, getindex, isassigned, view
import Base: IndexStyle
import Base: >, , <, , ==
import Base.isnull # this will be removed in 0.7
import CategoricalArrays.levels
@@ -256,6 +256,7 @@ done(A::ArrowVector, i::Integer) = i > length(A)
convert(::Type{Array{T}}, A::ArrowVector{T}) where T = A[:]
convert(::Type{Vector{T}}, A::ArrowVector{T}) where T = A[:]

IndexStyle(::Type{<:ArrowVector}) = IndexLinear()

# macro for creating arrowformat functions
macro _formats(constructor, argtype, w...)

0 comments on commit e626f8a

Please sign in to comment.