Class RankProfile.Constant

java.lang.Object
com.yahoo.schema.RankProfile.Constant
Enclosing class:
RankProfile

public static final class RankProfile.Constant extends Object
  • 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

      public Optional<com.yahoo.tensor.Tensor> value()
      Returns the value of this, if its path is empty.
    • valuePath

      public Optional<String> valuePath()
      Returns the path to the value of this, if its value is empty.
    • pathType

      Returns the path type, if valuePath is set.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object