fcolumn

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2018 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Doc added in v0.2.0

func Doc() string

func GenerateDoc added in v0.2.0

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

func GenerateFilters added in v0.2.0

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) 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 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) 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) HashBytes

func (c Comparable) HashBytes(i uint32, buf *hash.Murm32)

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