Versions in this module Expand all Collapse all v0 v0.23.2 Feb 12, 2024 Changes in this version + var ErrIntOverflowSpanExpression = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthSpanExpression = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupSpanExpression = fmt.Errorf("proto: unexpected end of group") + var SetOperator_name = map[int32]string + var SetOperator_value = map[string]int32 + type EncVal []byte + type Expression interface + Copy func() Expression + IsTight func() bool + SetNotTight func() + func And(left, right Expression) Expression + func Or(left, right Expression) Expression + type NonInvertedColExpression struct + func (n NonInvertedColExpression) Copy() Expression + func (n NonInvertedColExpression) IsTight() bool + func (n NonInvertedColExpression) SetNotTight() + type SetOperator int32 + const None + const SetIntersection + const SetUnion + func (SetOperator) EnumDescriptor() ([]byte, []int) + func (x SetOperator) String() string + type Span struct + End EncVal + Start EncVal + func MakeSingleValSpan(val EncVal) Span + func (s Span) ContainsKey(key EncVal) bool + func (s Span) Equals(other Span) bool + func (s Span) IsSingleVal() bool + type SpanExpression struct + FactoredUnionSpans Spans + Left Expression + Operator SetOperator + Right Expression + SpansToRead Spans + Tight bool + Unique bool + func ExprForSpan(span Span, tight bool) *SpanExpression + func (s *SpanExpression) ContainsKeys(keys [][]byte) (bool, error) + func (s *SpanExpression) Copy() Expression + func (s *SpanExpression) Format(tp treeprinter.Node, includeSpansToRead, redactable bool) + func (s *SpanExpression) IsTight() bool + func (s *SpanExpression) SetNotTight() + func (s *SpanExpression) String() string + func (s *SpanExpression) ToProto() *SpanExpressionProto + type SpanExpressionProto struct + Node SpanExpressionProto_Node + SpansToRead []SpanExpressionProto_Span + func (*SpanExpressionProto) Descriptor() ([]byte, []int) + func (*SpanExpressionProto) ProtoMessage() + func (m *SpanExpressionProto) Marshal() (dAtA []byte, err error) + func (m *SpanExpressionProto) MarshalTo(dAtA []byte) (int, error) + func (m *SpanExpressionProto) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *SpanExpressionProto) Reset() + func (m *SpanExpressionProto) Size() (n int) + func (m *SpanExpressionProto) String() string + func (m *SpanExpressionProto) Unmarshal(dAtA []byte) error + func (m *SpanExpressionProto) XXX_DiscardUnknown() + func (m *SpanExpressionProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *SpanExpressionProto) XXX_Merge(src proto.Message) + func (m *SpanExpressionProto) XXX_Size() int + func (m *SpanExpressionProto) XXX_Unmarshal(b []byte) error + type SpanExpressionProtoSpans []SpanExpressionProto_Span + func (s SpanExpressionProtoSpans) End(i int) []byte + func (s SpanExpressionProtoSpans) Len() int + func (s SpanExpressionProtoSpans) Start(i int) []byte + type SpanExpressionProto_Node struct + FactoredUnionSpans []SpanExpressionProto_Span + Left *SpanExpressionProto_Node + Operator SetOperator + Right *SpanExpressionProto_Node + func (*SpanExpressionProto_Node) Descriptor() ([]byte, []int) + func (*SpanExpressionProto_Node) ProtoMessage() + func (m *SpanExpressionProto_Node) Marshal() (dAtA []byte, err error) + func (m *SpanExpressionProto_Node) MarshalTo(dAtA []byte) (int, error) + func (m *SpanExpressionProto_Node) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *SpanExpressionProto_Node) Reset() + func (m *SpanExpressionProto_Node) Size() (n int) + func (m *SpanExpressionProto_Node) String() string + func (m *SpanExpressionProto_Node) Unmarshal(dAtA []byte) error + func (m *SpanExpressionProto_Node) XXX_DiscardUnknown() + func (m *SpanExpressionProto_Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *SpanExpressionProto_Node) XXX_Merge(src proto.Message) + func (m *SpanExpressionProto_Node) XXX_Size() int + func (m *SpanExpressionProto_Node) XXX_Unmarshal(b []byte) error + type SpanExpressionProto_Span struct + End []byte + Start []byte + func (*SpanExpressionProto_Span) Descriptor() ([]byte, []int) + func (*SpanExpressionProto_Span) ProtoMessage() + func (m *SpanExpressionProto_Span) Marshal() (dAtA []byte, err error) + func (m *SpanExpressionProto_Span) MarshalTo(dAtA []byte) (int, error) + func (m *SpanExpressionProto_Span) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *SpanExpressionProto_Span) Reset() + func (m *SpanExpressionProto_Span) Size() (n int) + func (m *SpanExpressionProto_Span) String() string + func (m *SpanExpressionProto_Span) Unmarshal(dAtA []byte) error + func (m *SpanExpressionProto_Span) XXX_DiscardUnknown() + func (m *SpanExpressionProto_Span) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *SpanExpressionProto_Span) XXX_Merge(src proto.Message) + func (m *SpanExpressionProto_Span) XXX_Size() int + func (m *SpanExpressionProto_Span) XXX_Unmarshal(b []byte) error + type Spans []Span + func (is Spans) End(i int) []byte + func (is Spans) Equals(other Spans) bool + func (is Spans) Format(tp treeprinter.Node, label string, redactable bool) + func (is Spans) Len() int + func (is Spans) Less(i, j int) bool + func (is Spans) Start(i int) []byte + func (is Spans) Swap(i, j int)