package
0.0.0-20230218021047-056b33b8efc8
Repository: https://github.com/spiceai/data-components-contrib.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

Spice.ai Data Processors

Currently supported processors:

Contribution guide

Writing a data processor means implementing the DataProcessor interface defined at dataprocessor.go and adding it to the NewDataProcessor factory function.

type DataProcessor interface {
	Init(params map[string]string, identifiers map[string]string, measurements map[string]string, categories map[string]string, tags []string) error
	OnData(data []byte) ([]byte, error)
	GetRecord() (arrow.Record, error)
}

Data Processors are consumed in the Spice.ai pod manifest in the data section. E.g.

data:
  processor:
    name: flux-csv

The data processor name is self-declared by the component, but must be unique across all components.