{"modulePath":"github.com/matrixorigin/matrixone","version":"v0.4.0","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package protocol\n\n## Constants\n\n```go\nconst (\n\tAttr = iota\n\tUnary\n\tBinary\n\tMulti\n\tParen\n\tFunc\n\tStar\n\tValue\n)\n```\n\n```go\nconst (\n\tDefaultRing = iota\n\tAvgRing\n\tCountRing\n\tStarCountRing\n\tApproxCountDistinctRing\n\t// Max\n\tMaxInt8Ring\n\tMaxInt32Ring\n\tMaxDateRing\n\tMaxInt16Ring\n\tMaxInt64Ring\n\tMaxDatetimeRing\n\tMaxUInt8Ring\n\tMaxUInt16Ring\n\tMaxUInt32Ring\n\tMaxUInt64Ring\n\tMaxFloat32Ring\n\tMaxFloat64Ring\n\tMaxStrRing\n\t// Min\n\tMinInt8Ring\n\tMinInt32Ring\n\tMinDateRing\n\tMinInt16Ring\n\tMinInt64Ring\n\tMinDatetimeRing\n\tMinUInt8Ring\n\tMinUInt16Ring\n\tMinUInt32Ring\n\tMinUInt64Ring\n\tMinFloat32Ring\n\tMinFloat64Ring\n\tMinStrRing\n\t// Sum\n\tSumIntRing\n\tSumUIntRing\n\tSumFloatRing\n\t// Variance\n\tVarianceRing\n\t// BitAnd\n\tBitAndNumericRing\n\t//Bitor\n\tBitOrRing\n\t// BitXor\n\tBitXorRing\n\t// StdDevPop\n\tStdDevPopRing\n)\n```\n\n## Functions\n\n```go\nfunc DecodeBatch(data []byte) (*batch.Batch, []byte, error)\n```\n\n```go\nfunc DecodeBatchWithProcess(data []byte, proc *process.Process) (*batch.Batch, []byte, error)\n```\n\n```go\nfunc DecodeExtend(data []byte) (extend.Extend, []byte, error)\n```\n\n```go\nfunc DecodeInstruction(data []byte) (vm.Instruction, []byte, error)\n```\n\n```go\nfunc DecodeInstructions(data []byte) (vm.Instructions, []byte, error)\n```\n\n```go\nfunc DecodeRing(data []byte) (ring.Ring, []byte, error)\n```\n\n```go\nfunc DecodeRingWithProcess(data []byte, proc *process.Process) (ring.Ring, []byte, error)\n```\n\n```go\nfunc DecodeVector(data []byte) (*vector.Vector, []byte, error)\n```\n\n```go\nfunc EncodeBatch(bat *batch.Batch, buf *bytes.Buffer) error\n```\n\n```go\nfunc EncodeExtend(e extend.Extend, buf *bytes.Buffer) error\n```\n\n```go\nfunc EncodeInstruction(in vm.Instruction, buf *bytes.Buffer) error\n```\n\n```go\nfunc EncodeInstructions(ins vm.Instructions, buf *bytes.Buffer) error\n```\n\n```go\nfunc EncodeRing(r ring.Ring, buf *bytes.Buffer) error\n```\n\n```go\nfunc EncodeScope(s Scope, buf *bytes.Buffer) error\n```\n\n```go\nfunc EncodeVector(v *vector.Vector, buf *bytes.Buffer) error\n```\n\n```go\nfunc UntransferTransformArg(arg TransformArgument) *transform.Argument\n```\n\n## Types\n\n```go\ntype DedupArgument struct {\n}\n```\n\n```go\ntype Field struct {\n\tAttr string\n\tType int8\n}\n```\n\n```go\ntype JoinArgument struct {\n\tResult []string\n\tVars   [][]string\n}\n```\n\n```go\ntype LimitArgument struct {\n\tSeen  uint64\n\tLimit uint64\n}\n```\n\n```go\ntype MergeArgument struct {\n}\n```\n\n```go\ntype Node struct {\n\tId   string\n\tAddr string\n\tData []byte\n}\n```\n\n```go\ntype OffsetArgument struct {\n\tSeen   uint64\n\tOffset uint64\n}\n```\n\n```go\ntype OplusArgument struct {\n\tTyp int\n}\n```\n\n```go\ntype OrderArgument struct {\n\tFs []Field\n}\n```\n\n```go\ntype OutputArgument struct {\n\tAttrs []string\n}\n```\n\n```go\ntype PlusArgument struct {\n\tTyp int\n}\n```\n\n```go\ntype ProjectionArgument struct {\n\tRs []uint64\n\tAs []string\n}\n```\n\n```go\ntype RestrictArgument struct {\n\tAttrs []string\n}\n```\n\n```go\ntype Scope struct {\n\tMagic      int\n\tDataSource Source\n\tPreScopes  []Scope\n\tNodeInfo   Node\n\tIns        vm.Instructions\n}\n```\n\n```go\nfunc DecodeScope(data []byte) (Scope, []byte, error)\n```\n\n```go\ntype Source struct {\n\tIsMerge      bool\n\tSchemaName   string\n\tRelationName string\n\tRefCounts    []uint64\n\tAttributes   []string\n}\n```\n\n```go\ntype TimesArgument struct {\n\tResult []string\n\tVars   [][]string\n}\n```\n\n```go\ntype TopArgument struct {\n\tLimit int64\n\tFs    []Field\n}\n```\n\n```go\ntype TransformArgument struct {\n\tIsNull      bool\n\tTyp         int\n\tIsMerge     bool\n\tFreeVars    []string\n\tHasRestrict bool\n\tRestrict    RestrictArgument\n\tHasProj     bool\n\tProjection  ProjectionArgument\n\tBoundVars   []Transformer\n}\n```\n\n```go\nfunc TransferTransformArg(arg *transform.Argument) TransformArgument\n```\n\n```go\ntype Transformer struct {\n\tOp    int\n\tRef   int\n\tName  string\n\tAlias string\n}\n```\n\n```go\ntype UntransformArgument struct {\n\tType     int\n\tFreeVars []string\n}\n```\n\n","path":"github.com/matrixorigin/matrixone/pkg/sql/protocol","name":"protocol","synopsis":"","isRedistributable":true}
