Documentation ¶
Index ¶
- Variables
- type Table
- func (t *Table) Array() values.Array
- func (t *Table) Bool() bool
- func (t *Table) Bytes() []byte
- func (t *Table) Duration() values.Duration
- func (t *Table) Equal(other values.Value) bool
- func (t *Table) Float() float64
- func (t *Table) Function() values.Function
- func (t *Table) Get(name string) (values.Value, bool)
- func (t *Table) Int() int64
- func (t *Table) IsNull() bool
- func (t *Table) Len() int
- func (t *Table) Object() values.Object
- func (t *Table) PolyType() semantic.PolyType
- func (t *Table) Range(fn func(name string, v values.Value))
- func (t *Table) Regexp() *regexp.Regexp
- func (t *Table) Set(name string, v values.Value)
- func (t *Table) Str() string
- func (t *Table) String() string
- func (t *Table) Table() flux.Table
- func (t *Table) Time() values.Time
- func (t *Table) Type() semantic.Type
- func (t *Table) UInt() uint64
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TableType = semantic.NewObjectPolyType( map[string]semantic.PolyType{ "schema": semantic.NewArrayPolyType(SchemaType), }, semantic.LabelSet{"schema"}, semantic.LabelSet{"schema"}, ) TableMonoType, _ = TableType.MonoType() SchemaType = semantic.NewObjectPolyType( map[string]semantic.PolyType{ "label": semantic.String, "grouped": semantic.Bool, "type": semantic.String, }, semantic.LabelSet{"label", "type", "grouped"}, semantic.LabelSet{"label", "type", "grouped"}, ) SchemaMonoType, _ = SchemaType.MonoType() )
A Table is an object with a schema. Schema is the only attribute that the table exposes. To extract records or columns one must use the provided functions (getRecord/getColumn). TODO(affo): we decided not to expose the schema, for now.
Functions ¶
This section is empty.
Types ¶
type Table ¶
type Table struct { flux.BufferedTable // contains filtered or unexported fields }
Table is a values.Value that represents a table in Flux. (Unlike flux.TableObject which represents a stream of tables.)
Click to show internal directories.
Click to hide internal directories.