fcolumn

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Doc

func Doc() string

func GenerateDoc

func GenerateDoc() (*bytes.Buffer, error)

func GenerateFilters

func GenerateFilters() (*bytes.Buffer, error)

Types

type Column

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

func New

func New(d []float64) Column

func NewConst

func NewConst(val float64, count int) Column

func (Column) Aggregate

func (c Column) Aggregate(indices []index.Int, fn interface{}) (column.Column, error)

func (Column) Append added in v0.3.6

func (c Column) Append(cols ...column.Column) (column.Column, error)

func (Column) AppendByteStringAt

func (c Column) AppendByteStringAt(buf []byte, i uint32) []byte

func (Column) Apply1

func (c Column) Apply1(fn interface{}, ix index.Int) (interface{}, error)

Apply single argument function. The result may be a column of a different type than the current column.

func (Column) Apply2

func (c Column) Apply2(fn interface{}, s2 column.Column, ix index.Int) (column.Column, error)

Apply double argument function to two columns. Both columns must have the same type. The resulting column will have the same type as this column.

func (Column) ByteSize

func (c Column) ByteSize() int

func (Column) Comparable

func (c Column) Comparable(reverse, equalNull, nullLast bool) column.Comparable

func (Column) DataType

func (c Column) DataType() types.DataType

func (Column) Equals

func (c Column) Equals(index index.Int, other column.Column, otherIndex index.Int) bool

func (Column) Filter

func (c Column) Filter(index index.Int, comparator interface{}, comparatee interface{}, bIndex index.Bool) error

func (Column) FunctionType

func (c Column) FunctionType() types.FunctionType

func (Column) Len

func (c Column) Len() int

func (Column) Rolling added in v0.3.2

func (c Column) Rolling(fn interface{}, ix index.Int, config rolling.Config) (column.Column, error)

func (Column) String

func (c Column) String() string

func (Column) StringAt

func (c Column) StringAt(i uint32, naRep string) string

func (Column) Subset

func (c Column) Subset(index index.Int) column.Column

func (Column) View

func (c Column) View(ix index.Int) View

type Comparable

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

func (Comparable) Compare

func (c Comparable) Compare(i, j uint32) column.CompareResult

func (Comparable) Hash added in v0.3.2

func (c Comparable) Hash(i uint32, seed uint64) uint64

type View

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

View is a view into a column that allows access to individual elements by index.

func (View) ItemAt

func (v View) ItemAt(i int) float64

ItemAt returns the value at position i.

func (View) Len

func (v View) Len() int

Len returns the column length.

func (View) Slice

func (v View) Slice() []float64

Slice returns a slice containing a copy of the column data.

Jump to

Keyboard shortcuts

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