Documentation
¶
Index ¶
- Variables
- func CountHLL(client Operator, namespace, set string, by []string, union bool) (int64, error)
- func CountHLLBin(client Operator, namespace, set, by string) (int64, error)
- func CountHLLByBinName(client Operator, namespace, set, by, hllBinName string) (int64, error)
- func CountIntersection(client Operator, namespace, set string, by []string) (int64, error)
- func CountUnion(client Operator, namespace, set string, by []string) (int64, error)
- type CountMode
- type CountOptions
- type CountResult
- type Counter
- type Operator
- type OperatorCounter
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCounterNotSet = errors.New("hll counter is not set")
ErrCounterNotSet reports a nil HLL counter dependency.
Functions ¶
func CountHLLByBinName ¶
func CountIntersection ¶
Types ¶
type CountOptions ¶ added in v1.1.0
CountOptions is the core-owned input for HLL count helpers.
type CountResult ¶ added in v1.1.0
type CountResult struct {
Count int64
}
CountResult is the core-owned result for HLL count helpers.
type Counter ¶ added in v1.1.0
type Counter interface {
Count(ctx context.Context, options CountOptions) (CountResult, error)
}
Counter is the core-owned HLL counting contract for new consumers.
type OperatorCounter ¶ added in v1.1.0
type OperatorCounter struct {
// contains filtered or unexported fields
}
OperatorCounter adapts legacy Aerospike HLL operations to the Counter contract.
func NewCounter ¶ added in v1.1.0
func NewCounter(operator Operator) *OperatorCounter
NewCounter wraps an Aerospike HLL operator with the core-owned Counter contract.
func (*OperatorCounter) Count ¶ added in v1.1.0
func (c *OperatorCounter) Count(ctx context.Context, options CountOptions) (CountResult, error)
Count calculates HLL cardinality through core-owned options.
Click to show internal directories.
Click to hide internal directories.