Package com.yahoo.schema
Class RankProfile.Constant
java.lang.Object
com.yahoo.schema.RankProfile.Constant
- Enclosing class:
- RankProfile
-
Constructor Summary
ConstructorDescriptionConstant
(com.yahoo.searchlib.rankingexpression.Reference name, com.yahoo.tensor.Tensor value) Constant
(com.yahoo.searchlib.rankingexpression.Reference name, com.yahoo.tensor.TensorType type, String valuePath) Constant
(com.yahoo.searchlib.rankingexpression.Reference name, com.yahoo.tensor.TensorType type, String valuePath, DistributableResource.PathType pathType) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
com.yahoo.searchlib.rankingexpression.Reference
name()
pathType()
Returns the path type, if valuePath is set.toString()
com.yahoo.tensor.TensorType
type()
Optional<com.yahoo.tensor.Tensor>
value()
Returns the value of this, if its path is empty.Returns the path to the value of this, if its value is empty.
-
Constructor Details
-
Constant
public Constant(com.yahoo.searchlib.rankingexpression.Reference name, com.yahoo.tensor.Tensor value) -
Constant
public Constant(com.yahoo.searchlib.rankingexpression.Reference name, com.yahoo.tensor.TensorType type, String valuePath) -
Constant
public Constant(com.yahoo.searchlib.rankingexpression.Reference name, com.yahoo.tensor.TensorType type, String valuePath, DistributableResource.PathType pathType)
-
-
Method Details
-
name
public com.yahoo.searchlib.rankingexpression.Reference name() -
type
public com.yahoo.tensor.TensorType type() -
value
Returns the value of this, if its path is empty. -
valuePath
Returns the path to the value of this, if its value is empty. -
pathType
Returns the path type, if valuePath is set. -
equals
-
hashCode
public int hashCode() -
toString
-