Class CompleteDataType.TupleType

java.lang.Object
com.streambase.sb.CompleteDataType
com.streambase.sb.CompleteDataType.TupleType
All Implemented Interfaces:
Serializable
Enclosing class:
CompleteDataType

public static class CompleteDataType.TupleType extends CompleteDataType implements Serializable
Tuple type
See Also:
  • Constructor Details

    • TupleType

      public TupleType(Schema schema)
      Constructor
      Parameters:
      schema - Schema
  • Method Details

    • getSchema

      public Schema getSchema()
      Description copied from class: CompleteDataType
      For tuple types, return the tuple's schema. For other types null is returned.
      Overrides:
      getSchema in class CompleteDataType
      Returns:
      the tuple types's schema
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class CompleteDataType
    • equalTypes

      public boolean equalTypes(CompleteDataType completeType)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class CompleteDataType
    • toHumanString

      public String toHumanString(SchemaUtil.SchemaProvider provider)
      Description copied from class: CompleteDataType
      Return a String describing the type suitable for error messages.
      Specified by:
      toHumanString in class CompleteDataType
      Parameters:
      provider - A schema provider to identify named schemas
      Returns:
      param a suitable string
    • rateCoercion

      public long rateCoercion(CompleteDataType to)
      Description copied from class: CompleteDataType
      calculate the coercion score to get coerce this → type - by default returns SCORE_PASS or SCORE_FAIL based on equals
      Overrides:
      rateCoercion in class CompleteDataType
      Parameters:
      to - the CType to converse to
      Returns:
      the score, use COp.java as a reference for score constants
    • rateCoercion

      public long rateCoercion(CompleteDataType to, boolean capture)
      Rate coercion
      Parameters:
      to - Target type
      capture - true to consider capture fields
      Returns:
      Coercion value