query

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const FieldNum int = 0
View Source
const SizeOfBasicType int = 4

Variables

View Source
var (
	NodeName_FieldName_FieldNum int = base.AtoiNoErr(Atoi("FieldNum"))
	NodeName_FieldName          int = NodeName_FieldName_FieldNum
)
View Source
var DUMMP_NodeNameIsStruct bool = base.SetNameIsStrunct("NodeName", base.ToBool("IsStruct"))
View Source
var DUMMP_UnionNameAliasName bool = base.SetAlias("UnionName", "AliasName")
View Source
var DUMMY_NodeName_FieldName bool = SetNodeNameFields("NodeName", "FieldName", "FieldType", NodeName_FieldName_FieldNum)

(field inedx, field type) -> NodeName_IdxToType

View Source
var NodeName_IdxToName map[int]string = map[int]string{}
View Source
var NodeName_IdxToType map[int]int = map[int]int{}
View Source
var NodeName_IdxToTypeGroup map[int]int = map[int]int{}
View Source
var NodeName_NameToIdx map[string]int = map[string]int{}

Functions

func Atoi

func Atoi(s string) (int, error)

func NewCommonNode added in v0.1.2

func NewCommonNode() *base.CommonNode

func NodeNameGetTypeGroup

func NodeNameGetTypeGroup(s string) (result int)

func NodeNameSetIdxToName

func NodeNameSetIdxToName(i int, s string)

func NodeNameSetIdxToType

func NodeNameSetIdxToType(k, v int) bool

func NodeNameSetTypeGroup

func NodeNameSetTypeGroup(k, v int) bool

func SetNodeNameFields

func SetNodeNameFields(nName, fName, fType string, fNum int) bool

Types

type AliasName

type AliasName struct {
	*b.CommonNode
}

type Bool

type Bool = base.Bool

type Byte

type Byte = base.Byte

type CommonNode

type CommonNode = base.CommonNode

func FromBool

func FromBool(v bool) *CommonNode

func FromByte

func FromByte(v byte) *CommonNode

func FromFloat32

func FromFloat32(v float32) *CommonNode

func FromFloat64

func FromFloat64(v float64) *CommonNode

func FromInt16

func FromInt16(v int16) *CommonNode

func FromInt32

func FromInt32(v int32) *CommonNode

func FromInt64

func FromInt64(v int64) *CommonNode

func FromInt8

func FromInt8(v int8) *CommonNode

func FromUint16

func FromUint16(v uint16) *CommonNode

func FromUint32

func FromUint32(v uint32) *CommonNode

func FromUint64

func FromUint64(v uint64) *CommonNode

func FromUint8

func FromUint8(v uint8) *CommonNode

type CommonNodeList

type CommonNodeList = base.CommonNode

func NewCommonNodeList added in v0.1.2

func NewCommonNodeList() *CommonNodeList

type FieldName

type FieldName generic.Type

type FieldType

type FieldType generic.Type

type Float32

type Float32 = base.Float32

type Float64

type Float64 = base.Float64

type Int16

type Int16 = base.Int16

type Int32

type Int32 = base.Int32

type Int64

type Int64 = base.Int64

type Int8

type Int8 = base.Int8

type List added in v0.1.4

type List = base.List

func NewList added in v0.1.4

func NewList() *List

type ListType

type ListType struct {
	*CommonNode
}

func NewListType

func NewListType() *ListType

NodeName genny

func (ListType) Add added in v0.2.3

func (node ListType) Add(v ListType) error

func (ListType) All

func (node ListType) All() []*NodeName

func (ListType) At

func (node ListType) At(i int) (result *NodeName, e error)

func (ListType) AtWihoutError added in v0.1.8

func (node ListType) AtWihoutError(i int) (result *NodeName)

func (ListType) Count

func (node ListType) Count() int

func (ListType) Find

func (node ListType) Find(fn func(*NodeName) bool) *NodeName

func (ListType) First

func (node ListType) First() (result *NodeName, e error)

func (ListType) Last

func (node ListType) Last() (result *NodeName, e error)

func (ListType) Range added in v0.2.99

func (node ListType) Range(start, last int) *ListType

func (ListType) Search added in v0.1.4

func (node ListType) Search(fn func(*NodeName) bool) *NodeName

Search ... binary search

func (ListType) SearchIndex added in v0.1.5

func (node ListType) SearchIndex(fn func(*NodeName) bool) int

func (ListType) Select

func (node ListType) Select(fn func(*NodeName) bool) (result []*NodeName)

func (ListType) SetAt added in v0.1.1

func (node ListType) SetAt(i int, v *NodeName) error

func (ListType) SortBy added in v0.1.4

func (node ListType) SortBy(less func(i, j int) bool) error

func (ListType) SwapAt added in v0.1.4

func (node ListType) SwapAt(i, j int) error

type NodeName

type NodeName struct {
	*base.CommonNode
}

func NewNodeName

func NewNodeName() *NodeName

func (NodeName) CountOfField

func (node NodeName) CountOfField() int

func (NodeName) Equal added in v0.1.9

func (src NodeName) Equal(dst NodeName) bool

func (NodeName) FieldAt

func (node NodeName) FieldAt(idx int) *base.CommonNode

func (NodeName) FieldGroups

func (node NodeName) FieldGroups() map[int]int

func (NodeName) FieldName

func (node NodeName) FieldName() (result *ResultType)

func (NodeName) Info

func (node NodeName) Info() (info base.Info)

func (NodeName) IsLeafAt

func (node NodeName) IsLeafAt(j int) bool

func (NodeName) Root

func (node NodeName) Root() (RootType, error)

func (NodeName) SearchInfo

func (node NodeName) SearchInfo(pos int, fn base.RecFn, condFn base.CondFn)

func (NodeName) SetFieldName

func (node NodeName) SetFieldName(v *ResultType) error

func (node NodeName) SetFieldName(v *base.CommonNode) error {

func (NodeName) ValueInfo

func (node NodeName) ValueInfo(i int) base.ValueInfo

type NodeNameWithErr

type NodeNameWithErr struct {
	*NodeName
	Err error
}

func NodeNameSingle

func NodeNameSingle(node *NodeName, e error) NodeNameWithErr

type ResultType

type ResultType NodeName

func NewResultType added in v0.1.2

func NewResultType() *ResultType

type RootType

type RootType struct {
	*b.CommonNode
}

func Open

func Open(r io.Reader, cap int, opts ...base.Option) RootType

func OpenByBuf

func OpenByBuf(buf []byte, opts ...base.Option) RootType

func RootFromCommon

func RootFromCommon(c *base.CommonNode) RootType

func (RootType) HasNext

func (node RootType) HasNext() bool

func (RootType) InsertBuf

func (node RootType) InsertBuf(pos, size int)

func (RootType) Next

func (node RootType) Next() RootType

func (RootType) WithHeader

func (node RootType) WithHeader() RootType

type Uint16

type Uint16 = base.Uint16

type Uint32

type Uint32 = base.Uint32

type Uint64

type Uint64 = base.Uint64

type Uint8

type Uint8 = base.Uint8

type UnionName

type UnionName struct {
	*base.CommonNode
}

func NewUnionName added in v0.1.2

func NewUnionName() *UnionName

func UnionNameFromAliasName added in v0.1.1

func UnionNameFromAliasName(v *AliasName) *UnionName

func (UnionName) AliasName

func (node UnionName) AliasName() AliasName

func (UnionName) Member

func (node UnionName) Member(i int) interface{}

Jump to

Keyboard shortcuts

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