public interface BinConstraints
Modifier and Type | Interface and Description |
---|---|
static interface |
BinConstraints.ByteArrayConstraints
Represents more explicit bins than BinConstraints as Objects must be resolved to ByteArrays
|
Modifier and Type | Method and Description |
---|---|
static BinConstraints |
allBins()
Unconstrained, a query will return all of the bins.
|
BinConstraints.ByteArrayConstraints |
constraints(Statistic<?> stat)
Used primarily internally to get the explicit bins for this constraint but can be used if there
is a need to understand the bins being queried.
|
static BinConstraints |
of(ByteArray... exactMatchBins)
Sets the bins of the query explicitly.
|
static BinConstraints |
ofObject(Object binningStrategyConstraint)
Sets the bins of the query using an object type that is supported by the binning strategy.
|
static BinConstraints |
ofPrefix(ByteArray... prefixBins)
Sets the bins of the query by prefix.
|
static BinConstraints |
ofRange(ByteArrayRange... binRanges)
Sets the bins of the query by range.
|
static BinConstraints allBins()
static BinConstraints of(ByteArray... exactMatchBins)
exactMatchBins
- the bins to matchstatic BinConstraints ofPrefix(ByteArray... prefixBins)
prefixBins
- the prefixes used to match the binsstatic BinConstraints ofRange(ByteArrayRange... binRanges)
binRanges
- the ranges used to match the binsstatic BinConstraints ofObject(Object binningStrategyConstraint)
binningStrategyConstraint
- an object of any type supported by the binning strategy. It
will be interpreted as appropriate by the binning strategy and binning strategies that
do not support this object type will not return any results.BinConstraints.ByteArrayConstraints constraints(Statistic<?> stat)
stat
- the statistic being queriedCopyright © 2013–2022. All rights reserved.