Documentation ¶
Index ¶
- Variables
- type Table
- func (t *Table) Array() values.Array
- func (t *Table) Bool() bool
- func (t *Table) Bytes() []byte
- func (t *Table) Dict() values.Dictionary
- 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) Range(fn func(name string, v values.Value))
- func (t *Table) Regexp() *regexp.Regexp
- func (t *Table) Release()
- func (t *Table) Retain()
- 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.MonoType
- func (t *Table) UInt() uint64
- func (t *Table) Vector() values.Vector
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SchemaMonoType = semantic.NewObjectType([]semantic.PropertyType{ { Key: []byte("label"), Value: semantic.BasicString, }, { Key: []byte("grouped"), Value: semantic.BasicBool, }, { Key: []byte("type"), Value: semantic.BasicString, }, }) TableMonoType = semantic.NewObjectType([]semantic.PropertyType{{ Key: []byte("schema"), Value: semantic.NewArrayType(SchemaMonoType), }}) )
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.)
func (*Table) Dict ¶ added in v0.96.0
func (t *Table) Dict() values.Dictionary
Click to show internal directories.
Click to hide internal directories.