Class MapTypeContext

java.lang.Object
com.yahoo.searchlib.rankingexpression.evaluation.MapTypeContext
All Implemented Interfaces:
com.yahoo.tensor.evaluation.TypeContext<Reference>

public class MapTypeContext extends Object implements com.yahoo.tensor.evaluation.TypeContext<Reference>
A context which only contains type information.
Author:
bratseth
  • Constructor Details

    • MapTypeContext

      public MapTypeContext()
  • Method Details

    • setType

      public void setType(Reference reference, com.yahoo.tensor.TensorType type)
    • getType

      public com.yahoo.tensor.TensorType getType(String reference)
      Specified by:
      getType in interface com.yahoo.tensor.evaluation.TypeContext<Reference>
    • getType

      public com.yahoo.tensor.TensorType getType(Reference reference)
      Specified by:
      getType in interface com.yahoo.tensor.evaluation.TypeContext<Reference>
    • bindings

      public Map<Reference,com.yahoo.tensor.TensorType> bindings()
      Returns an unmodifiable map of the bindings in this