Class Binding
java.lang.Object
com.yahoo.search.query.profile.compiled.Binding
- All Implemented Interfaces:
Comparable<Binding>
An immutable binding of a set of dimensions to values.
This binding is minimal in that it only includes dimensions which actually have values.
- Author:
- bratseth
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Implements a partial ordering where more specific bindings come before less specific ones, taking both the number of bindings and their positions into account (earlier dimensions take precedence over later ones).static Binding
createFrom
(DimensionBinding dimensionBinding) boolean
Returns whether the given binding has exactly the same values as thisboolean
generalizes
(Binding other) Returns whether this binding is a proper generalization of the given binding: Meaning it contains a proper subset of the given bindings.int
hashCode()
boolean
isNull()
Returns true only if this binding is null (contains no values for its dimensions (if any)boolean
Returns true if all the dimension values in this have the same values in the given context.toString()
-
Field Details
-
nullBinding
-
-
Method Details
-
createFrom
-
generalizes
Returns whether this binding is a proper generalization of the given binding: Meaning it contains a proper subset of the given bindings. -
isNull
public boolean isNull()Returns true only if this binding is null (contains no values for its dimensions (if any) -
toString
-
equals
Returns whether the given binding has exactly the same values as this -
hashCode
public int hashCode() -
matches
Returns true if all the dimension values in this have the same values in the given context. -
compareTo
Implements a partial ordering where more specific bindings come before less specific ones, taking both the number of bindings and their positions into account (earlier dimensions take precedence over later ones).The order is not well defined for bindings in different dimensional spaces.
- Specified by:
compareTo
in interfaceComparable<Binding>
-