Documentation
¶
Index ¶
- Variables
- type InetArray
- type InetBuilder
- func (b *InetBuilder) Append(v net.IPNet)
- func (b *InetBuilder) AppendValues(v []net.IPNet, valid []bool)
- func (b *InetBuilder) Unmarshal(dec *json.Decoder) error
- func (b *InetBuilder) UnmarshalJSON(data []byte) error
- func (b *InetBuilder) UnmarshalOne(dec *json.Decoder) error
- func (b *InetBuilder) UnsafeAppend(v net.IPNet)
- type InetType
- func (InetType) ArrayType() reflect.Type
- func (InetType) Deserialize(storageType arrow.DataType, data string) (arrow.ExtensionType, error)
- func (u InetType) ExtensionEquals(other arrow.ExtensionType) bool
- func (InetType) ExtensionName() string
- func (InetType) NewBuilder(bldr *array.ExtensionBuilder) array.Builder
- func (InetType) Serialize() string
- type JSONArray
- type JSONBuilder
- type JSONType
- func (JSONType) ArrayType() reflect.Type
- func (JSONType) Deserialize(storageType arrow.DataType, data string) (arrow.ExtensionType, error)
- func (e JSONType) ExtensionEquals(other arrow.ExtensionType) bool
- func (JSONType) ExtensionName() string
- func (e JSONType) MarshalJSON() ([]byte, error)
- func (JSONType) NewBuilder(bldr *array.ExtensionBuilder) array.Builder
- func (JSONType) Serialize() string
- func (e JSONType) String() string
- type MacArray
- type MacBuilder
- func (b *MacBuilder) Append(v net.HardwareAddr)
- func (b *MacBuilder) AppendValues(v []net.HardwareAddr, valid []bool)
- func (b *MacBuilder) Unmarshal(dec *json.Decoder) error
- func (b *MacBuilder) UnmarshalJSON(data []byte) error
- func (b *MacBuilder) UnmarshalOne(dec *json.Decoder) error
- func (b *MacBuilder) UnsafeAppend(v net.HardwareAddr)
- type MacType
- func (MacType) ArrayType() reflect.Type
- func (MacType) Deserialize(storageType arrow.DataType, data string) (arrow.ExtensionType, error)
- func (u MacType) ExtensionEquals(other arrow.ExtensionType) bool
- func (MacType) ExtensionName() string
- func (MacType) NewBuilder(bldr *array.ExtensionBuilder) array.Builder
- func (MacType) Serialize() string
- type UUIDArray
- type UUIDBuilder
- func (b *UUIDBuilder) Append(v uuid.UUID)
- func (b *UUIDBuilder) AppendValues(v []uuid.UUID, valid []bool)
- func (b *UUIDBuilder) Unmarshal(dec *json.Decoder) error
- func (b *UUIDBuilder) UnmarshalJSON(data []byte) error
- func (b *UUIDBuilder) UnmarshalOne(dec *json.Decoder) error
- func (b *UUIDBuilder) UnsafeAppend(v uuid.UUID)
- type UUIDType
- func (UUIDType) ArrayType() reflect.Type
- func (UUIDType) Deserialize(storageType arrow.DataType, data string) (arrow.ExtensionType, error)
- func (e UUIDType) ExtensionEquals(other arrow.ExtensionType) bool
- func (UUIDType) ExtensionName() string
- func (e UUIDType) MarshalJSON() ([]byte, error)
- func (UUIDType) NewBuilder(bldr *array.ExtensionBuilder) array.Builder
- func (UUIDType) Serialize() string
- func (e UUIDType) String() string
Constants ¶
This section is empty.
Variables ¶
var ExtensionTypes = struct { UUID arrow.ExtensionType Inet arrow.ExtensionType Mac arrow.ExtensionType JSON arrow.ExtensionType }{ UUID: NewUUIDType(), Inet: NewInetType(), Mac: NewMacType(), JSON: NewJSONType(), }
var UUID = NewUUIDType()
Functions ¶
This section is empty.
Types ¶
type InetArray ¶
type InetArray struct {
array.ExtensionArrayBase
}
InetArray is a simple array which is a FixedSizeBinary(16)
func (*InetArray) GetOneForMarshal ¶
func (*InetArray) ValueString ¶
type InetBuilder ¶
type InetBuilder struct {
*array.ExtensionBuilder
}
func NewInetBuilder ¶
func NewInetBuilder(bldr *array.ExtensionBuilder) *InetBuilder
func (*InetBuilder) Append ¶
func (b *InetBuilder) Append(v net.IPNet)
func (*InetBuilder) AppendValues ¶
func (b *InetBuilder) AppendValues(v []net.IPNet, valid []bool)
func (*InetBuilder) UnmarshalJSON ¶
func (b *InetBuilder) UnmarshalJSON(data []byte) error
func (*InetBuilder) UnmarshalOne ¶
func (b *InetBuilder) UnmarshalOne(dec *json.Decoder) error
func (*InetBuilder) UnsafeAppend ¶
func (b *InetBuilder) UnsafeAppend(v net.IPNet)
type InetType ¶
type InetType struct {
arrow.ExtensionBase
}
InetType is a simple extension type that represents a StringType to be used for representing IP Addresses and CIDRs
func NewInetType ¶
func NewInetType() *InetType
NewInetType is a convenience function to create an instance of InetType with the correct storage type
func (InetType) Deserialize ¶
Deserialize expects storageType to be StringType and the data to be "inet-serialized" in order to correctly create a InetType for testing deserialize.
func (InetType) ExtensionEquals ¶
func (u InetType) ExtensionEquals(other arrow.ExtensionType) bool
InetType are equal if both are named "inet"
func (InetType) ExtensionName ¶
func (InetType) NewBuilder ¶
func (InetType) NewBuilder(bldr *array.ExtensionBuilder) array.Builder
type JSONArray ¶
type JSONArray struct {
array.ExtensionArrayBase
}
JSONArray is a simple array which is a Binary
func (*JSONArray) GetOneForMarshal ¶
func (*JSONArray) MarshalJSON ¶
func (*JSONArray) ValueString ¶
type JSONBuilder ¶
type JSONBuilder struct {
*array.ExtensionBuilder
}
func NewJSONBuilder ¶
func NewJSONBuilder(bldr *array.ExtensionBuilder) *JSONBuilder
func (*JSONBuilder) Append ¶
func (b *JSONBuilder) Append(v any)
func (*JSONBuilder) AppendValues ¶
func (b *JSONBuilder) AppendValues(v []any, valid []bool)
func (*JSONBuilder) UnmarshalJSON ¶
func (b *JSONBuilder) UnmarshalJSON(data []byte) error
func (*JSONBuilder) UnmarshalOne ¶
func (b *JSONBuilder) UnmarshalOne(dec *json.Decoder) error
func (*JSONBuilder) UnsafeAppend ¶
func (b *JSONBuilder) UnsafeAppend(v any)
type JSONType ¶
type JSONType struct {
arrow.ExtensionBase
}
JSONType is a simple extension type that represents a BinaryType to be used for representing JSONs
func NewJSONType ¶
func NewJSONType() *JSONType
NewJSONType is a convenience function to create an instance of JSONType with the correct storage type
func (JSONType) Deserialize ¶
Deserialize expects storageType to be BinaryBuilder and the data to be "json-serialized" in order to correctly create a JSONType for testing deserialize.
func (JSONType) ExtensionEquals ¶
func (e JSONType) ExtensionEquals(other arrow.ExtensionType) bool
ExtensionEquals returns true if both extensions have the same name
func (JSONType) ExtensionName ¶
func (JSONType) MarshalJSON ¶
func (JSONType) NewBuilder ¶
func (JSONType) NewBuilder(bldr *array.ExtensionBuilder) array.Builder
type MacArray ¶
type MacArray struct {
array.ExtensionArrayBase
}
MacArray is a simple array which is a wrapper around a BinaryArray
func (*MacArray) GetOneForMarshal ¶
func (*MacArray) MarshalJSON ¶
func (*MacArray) ValueString ¶
type MacBuilder ¶
type MacBuilder struct {
*array.ExtensionBuilder
}
func NewMacBuilder ¶
func NewMacBuilder(bldr *array.ExtensionBuilder) *MacBuilder
func (*MacBuilder) Append ¶
func (b *MacBuilder) Append(v net.HardwareAddr)
func (*MacBuilder) AppendValues ¶
func (b *MacBuilder) AppendValues(v []net.HardwareAddr, valid []bool)
func (*MacBuilder) UnmarshalJSON ¶
func (b *MacBuilder) UnmarshalJSON(data []byte) error
func (*MacBuilder) UnmarshalOne ¶
func (b *MacBuilder) UnmarshalOne(dec *json.Decoder) error
func (*MacBuilder) UnsafeAppend ¶
func (b *MacBuilder) UnsafeAppend(v net.HardwareAddr)
type MacType ¶
type MacType struct {
arrow.ExtensionBase
}
MacType is a simple extension type that represents a BinaryType to be used for representing mac addresses.
func NewMacType ¶
func NewMacType() *MacType
NewMacType is a convenience function to create an instance of MacType with the correct storage type
func (MacType) Deserialize ¶
Deserialize expects storageType to be FixedSizeBinaryType{ByteWidth: 16} and the data to be "mac-serialized" in order to correctly create a MacType for testing deserialize.
func (MacType) ExtensionEquals ¶
func (u MacType) ExtensionEquals(other arrow.ExtensionType) bool
MacTypes are equal if both are named "mac"
func (MacType) ExtensionName ¶
func (MacType) NewBuilder ¶
func (MacType) NewBuilder(bldr *array.ExtensionBuilder) array.Builder
type UUIDArray ¶
type UUIDArray struct {
array.ExtensionArrayBase
}
UUIDArray is a simple array which is a FixedSizeBinary(16)
func (*UUIDArray) GetOneForMarshal ¶
func (*UUIDArray) MarshalJSON ¶
func (*UUIDArray) ValueString ¶
type UUIDBuilder ¶
type UUIDBuilder struct {
*array.ExtensionBuilder
}
func NewUUIDBuilder ¶
func NewUUIDBuilder(bldr *array.ExtensionBuilder) *UUIDBuilder
func (*UUIDBuilder) Append ¶
func (b *UUIDBuilder) Append(v uuid.UUID)
func (*UUIDBuilder) AppendValues ¶
func (b *UUIDBuilder) AppendValues(v []uuid.UUID, valid []bool)
func (*UUIDBuilder) UnmarshalJSON ¶
func (b *UUIDBuilder) UnmarshalJSON(data []byte) error
func (*UUIDBuilder) UnmarshalOne ¶
func (b *UUIDBuilder) UnmarshalOne(dec *json.Decoder) error
func (*UUIDBuilder) UnsafeAppend ¶
func (b *UUIDBuilder) UnsafeAppend(v uuid.UUID)
type UUIDType ¶
type UUIDType struct {
arrow.ExtensionBase
}
UUIDType is a simple extension type that represents a FixedSizeBinary(16) to be used for representing UUIDs
func NewUUIDType ¶
func NewUUIDType() *UUIDType
NewUUIDType is a convenience function to create an instance of UuidType with the correct storage type
func (UUIDType) Deserialize ¶
Deserialize expects storageType to be FixedSizeBinaryType{ByteWidth: 16} and the data to be "uuid-serialized" in order to correctly create a UuidType for testing deserialize.
func (UUIDType) ExtensionEquals ¶
func (e UUIDType) ExtensionEquals(other arrow.ExtensionType) bool
UuidTypes are equal if both are named "uuid"
func (UUIDType) ExtensionName ¶
func (UUIDType) MarshalJSON ¶
func (UUIDType) NewBuilder ¶
func (UUIDType) NewBuilder(bldr *array.ExtensionBuilder) array.Builder