Documentation
¶
Index ¶
- func ArrowBatchToJSON(batch arrow.Record) (string, error)
- func ArrowRecordToString(record arrow.Record) (string, error)
- func CloneSourceStream(sourceChan <-chan arrow.Record, numClones int) ([]<-chan arrow.Record, error)
- func ConvertSchemaSPB(schema *arrow.Schema) *storagepb.ProtoSchema
- func DecodeToMap(s *pb.Struct) map[string]interface{}
- func IpcReaderToChannel(reader *ipc.Reader) (<-chan arrow.Record, error)
- func LoadEnv()
- func MapArrowTypeToProtoType(dataType arrow.DataType) *descriptorpb.FieldDescriptorProto_Type
- func PrintRecordBatch(record arrow.Record) error
- func ProcessStreams(readErrChan <-chan error, writeErrChan <-chan error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrowBatchToJSON ¶
ArrowBatchToJSON converts an Arrow record batch to a JSON string.
func ArrowRecordToString ¶
ArrowRecordToString converts an Arrow record to a string representation.
func CloneSourceStream ¶
func CloneSourceStream(sourceChan <-chan arrow.Record, numClones int) ([]<-chan arrow.Record, error)
CloneSourceStream creates multiple clones of an Arrow record source channel.
func ConvertSchemaSPB ¶
func ConvertSchemaSPB(schema *arrow.Schema) *storagepb.ProtoSchema
func DecodeToMap ¶
DecodeToMap decodes a protobuf Struct to a Go map.
func IpcReaderToChannel ¶
IpcReaderToChannel reads records from an IPC reader and sends them to a channel.
func MapArrowTypeToProtoType ¶
func MapArrowTypeToProtoType(dataType arrow.DataType) *descriptorpb.FieldDescriptorProto_Type
MapArrowTypeToProtoType maps an Arrow data type to a protobuf field type.
func PrintRecordBatch ¶
PrintRecordBatch prints the contents of an Arrow record batch.
func ProcessStreams ¶
ProcessStreams processes errors from read and write error channels concurrently.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.