com.ibm.streams.operator

Interface Attribute



  • public interface Attribute
    Meta-data for an attribute within a StreamSchema.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      int getIndex()
      Get the logical index (zero based) of the attribute in the tuple.
      java.lang.String getName()
      Get the name of this attribute.
      Type getType()
      Get the type information for this attribute.
      boolean same(Attribute other)
      Are two attributes the same.
    • Method Detail

      • getName

        java.lang.String getName()
        Get the name of this attribute.
      • getType

        Type getType()
        Get the type information for this attribute.
      • getIndex

        int getIndex()
        Get the logical index (zero based) of the attribute in the tuple.
        Returns:
        Index of attribute.
      • same

        boolean same(Attribute other)
        Are two attributes the same. Two attributes are the same if they have the same type and name. Note that index is irrelevant for this comparison.
        Parameters:
        other - Attribute to compare against.
        Returns:
        True if other is the same as this, false otherwise.