Documentation ¶
Index ¶
Constants ¶
View Source
const (
// DefaultMaxComponentSize is the default size that the binary representation of a component will be padded or truncated to.
DefaultMaxComponentSize = 256
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
Component represents a component of concatenated keys in index
func NewComponent ¶
NewComponent creates a new component with the given path.
func (Component) IncludeType ¶
IncludeType sets the includeType flag of the component.
type Indexer ¶
type Indexer[T any] struct { // contains filtered or unexported fields }
Indexer is an indexer for a struct type that generates keys base on struct fields for a btree index.
func New ¶
func New[T any]( extractor schema.PathExtractor[T], encoder codec.Encoder[any], comps ...Component, ) (*Indexer[T], error)
New creates a new indexer for the given struct type and components.
Click to show internal directories.
Click to hide internal directories.