template

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: 11 Imported by: 0

Documentation

Index

Constants

View Source
const BasicColColComparison = `` /* 223-byte string literal not displayed */
View Source
const BasicColConstComparison = `` /* 196-byte string literal not displayed */
View Source
const DocTemplate = `` /* 211-byte string literal not displayed */
View Source
const HeaderTemplate = `` /* 160-byte string literal not displayed */

Variables

This section is empty.

Functions

func Generate

func Generate(pkgName string, specs []Spec, imports []string) (*bytes.Buffer, error)

func GenerateDocs added in v0.2.0

func GenerateDocs(pkgName string, filters, aggregations []string) (*bytes.Buffer, error)

func GenerateFilters

func GenerateFilters(pkgName string, specs []Spec) (*bytes.Buffer, error)

Types

type Column

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

func New

func New(d []genericDataType) Column

func NewConst

func NewConst(val genericDataType, 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

Functions not generated but needed to fulfill interface

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

func (c Column) Marshaler(index index.Int) json.Marshaler

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 Spec

type Spec struct {
	Name     string
	Template string
	Values   map[string]interface{}
}

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

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() []genericDataType

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