Documentation
¶
Index ¶
- func RowDataToBlob(rd *Row) []byte
- type BinaryExpr
- type BooleanValue
- type Evaluation
- type Evaluator
- type FloatValue
- type Function
- type IntegerValue
- type JqMessageParser
- type JqParserParams
- type JsonEncoder
- type Pipeline
- type PipelineStep
- type Printer
- type Processor
- type Query
- type Row
- type RowIdentifier
- type RowSchema
- type Sink
- type Source
- type StringValue
- type Type
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RowDataToBlob ¶
Types ¶
type BinaryExpr ¶
func (*BinaryExpr) Cast ¶
func (e *BinaryExpr) Cast(target Type) Value
func (*BinaryExpr) Equals ¶
func (e *BinaryExpr) Equals(other Value) bool
func (*BinaryExpr) GetType ¶
func (e *BinaryExpr) GetType() Type
type BooleanValue ¶
type BooleanValue struct {
Value bool
}
var ( True BooleanValue = BooleanValue{true} False = BooleanValue{false} )
func (BooleanValue) Cast ¶
func (b BooleanValue) Cast(target Type) Value
func (BooleanValue) Equals ¶
func (b BooleanValue) Equals(other Value) bool
func (BooleanValue) GetType ¶
func (b BooleanValue) GetType() Type
type Evaluation ¶
type Evaluator ¶
type Evaluator struct{}
func (*Evaluator) Eval ¶
func (q *Evaluator) Eval(query string) *Evaluation
type FloatValue ¶
type FloatValue struct {
Value float64
}
func (FloatValue) Cast ¶
func (i FloatValue) Cast(target Type) Value
func (*FloatValue) Equals ¶
func (v *FloatValue) Equals(other Value) bool
func (FloatValue) GetType ¶
func (i FloatValue) GetType() Type
type Function ¶
func NewFunction ¶
type IntegerValue ¶
type IntegerValue struct {
Value int64
}
func (*IntegerValue) Cast ¶
func (i *IntegerValue) Cast(target Type) Value
func (*IntegerValue) Equals ¶
func (v *IntegerValue) Equals(other Value) bool
func (IntegerValue) GetType ¶
func (i IntegerValue) GetType() Type
type JqMessageParser ¶
type JqMessageParser struct {
// contains filtered or unexported fields
}
type JqParserParams ¶
type JqParserParams struct {
// contains filtered or unexported fields
}
func NewJqParams ¶
func NewJqParams(queries map[string]string) JqParserParams
type JsonEncoder ¶
type JsonEncoder struct{}
func NewJsonEncoder ¶
func NewJsonEncoder() *JsonEncoder
type Pipeline ¶
type Pipeline struct {
Input []Source
Processors []PipelineStep
Output Sink
SideOutput Sink
Parallelism int
}
type PipelineStep ¶
func NewPipelineStep ¶
func NewPipelineStep(name string, proc Processor, schema RowSchema) PipelineStep
type Printer ¶
type Printer struct {
// contains filtered or unexported fields
}
Printer will write to stdout
func NewPrinter ¶
func NewPrinter() *Printer
type Processor ¶
type Processor interface {
Process(p *Pipeline, in, out RowSchema, msg model.Message) (model.Message, error)
}
func NewJqMessageParser ¶
func NewJqMessageParser(p JqParserParams) Processor
type Query ¶
type Query struct {
// contains filtered or unexported fields
}
Query represents an ANSI(?) SQL statement
func (*Query) GetEvaluation ¶
func (q *Query) GetEvaluation() *Evaluation
type RowIdentifier ¶
type RowIdentifier struct {
Name string
}
func NewRowIdentifier ¶
func NewRowIdentifier(name string) *RowIdentifier
func (RowIdentifier) Cast ¶
func (i RowIdentifier) Cast(target Type) Value
func (*RowIdentifier) Equals ¶
func (v *RowIdentifier) Equals(other Value) bool
func (RowIdentifier) GetType ¶
func (i RowIdentifier) GetType() Type
func (*RowIdentifier) String ¶
func (r *RowIdentifier) String() string
type StringValue ¶
type StringValue struct {
Value string
}
func (*StringValue) Cast ¶
func (i *StringValue) Cast(target Type) Value
func (*StringValue) Equals ¶
func (v *StringValue) Equals(other Value) bool
func (StringValue) GetType ¶
func (i StringValue) GetType() Type
Click to show internal directories.
Click to hide internal directories.