arrow

package
v0.0.0-...-056b33b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2023 License: MIT Imports: 6 Imported by: 0

README

Arrow Processor

To use the Arrow Processor use this data config:

data:
  processor:
    name: arrow

Params

Name Supported Values Description
time_selector A top-level field name Specifies the field to use for time

Example Dataspace Config

Paired with the Apache Arrow Flight Data Connector.

dataspaces:
  - from: spice
    name: sql
    identifiers:
      - name: number
    measurements:
      - name: gas_used
    data:
      connector:
        name: flight
        params:
          password: <api_key>
          sql: SELECT number, timestamp, gas_used FROM eth.recent_blocks ORDER BY number DESC
      processor:
        name: arrow
        params:
          time_selector: timestamp

Documentation

Index

Constants

View Source
const (
	ArrowProcessorName string = "arrow"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ArrowProcessor

type ArrowProcessor struct {
	// contains filtered or unexported fields
}

func NewArrowProcessor

func NewArrowProcessor() *ArrowProcessor

func (*ArrowProcessor) GetRecord

func (p *ArrowProcessor) GetRecord() (apache_arrow.Record, error)

func (*ArrowProcessor) Init

func (p *ArrowProcessor) Init(params map[string]string, identifiers map[string]string, measurements map[string]string, categories map[string]string, tags []string) error

func (*ArrowProcessor) OnData

func (p *ArrowProcessor) OnData(data []byte) ([]byte, error)

type FieldInfo

type FieldInfo struct {
	Index int
	Field apache_arrow.Field
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL