class Nanoarrow::StringArray

Defined in:

nanoarrow/array.cr

Constructors

Instance Method Summary

Instance methods inherited from class Nanoarrow::ArrayBase(String)

[](index : Int) : T | Nil
[](range : Range) : Array(T | Nil)
[]
, compact : Array(T) compact, each(& : T | Nil -> ) : Nil each, empty? : Bool empty?, finalize finalize, inspect(io : IO) : Nil inspect, length : Int64 length, null?(index : Int) : Bool null?, null_count : Int64 null_count, ptr : Pointer(LibNanoarrowBridge::ArrowArray) ptr, release : Nil release, released? : Bool released?, size : Int64 size, to_s(io : IO) : Nil to_s, to_unsafe : Pointer(LibNanoarrowBridge::ArrowArray) to_unsafe, unsafe_get(index : Int64) : T | Nil unsafe_get

Constructor methods inherited from class Nanoarrow::ArrayBase(String)

new(ptr : Pointer(LibNanoarrowBridge::ArrowArray)) new

Constructor Detail

def self.build(values : Enumerable(String | Nil)) : self #

[View source]
def self.new(ptr : Pointer(LibNanoarrowBridge::ArrowArray)) #

[View source]

Instance Method Detail

def to_a : Array(String | Nil) #
Description copied from module Enumerable(String?)

Returns an Array with all the elements in the collection.

(1..5).to_a # => [1, 2, 3, 4, 5]

[View source]
def unsafe_get(index : Int64) : String | Nil #
Description copied from class Nanoarrow::ArrayBase(String)

Subclasses implement raw element access (index is already bounds-checked).


[View source]