Documentation
¶
Overview ¶
Package attributes provides utilities for managing and manipulating attribute key-value pairs in Arrow format.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttributeID ¶
AttributeID generates a unique identifier for the attribute key-value pair.
Types ¶
type AttributeBuilder ¶
type AttributeBuilder struct {
// contains filtered or unexported fields
}
AttributeBuilder presents a builder for constructing attribute key-value pairs.
func NewAttributeBuilder ¶
func NewAttributeBuilder(allocator memory.Allocator) *AttributeBuilder
NewAttributeBuilder creates a new AttributesBuilder using the provided RecordBuilder.
func (*AttributeBuilder) Append ¶
func (ab *AttributeBuilder) Append(key, val string) uint32
Append appends a key-value pair to the attributes builder and returns the primary key.
func (*AttributeBuilder) Build ¶
func (ab *AttributeBuilder) Build() arrow.RecordBatch
Build builds and returns the RecordBatch containing the attributes.
func (*AttributeBuilder) Release ¶
func (ab *AttributeBuilder) Release()
Release releases the resources held by the RecordBuilder.
func (*AttributeBuilder) Schema ¶
func (ab *AttributeBuilder) Schema() *arrow.Schema
Schema returns the schema of the attributes record.
Click to show internal directories.
Click to hide internal directories.