Class Row


  • public class Row
    extends Object
    The basic class to hold column values.
    • Field Detail

      • uuid

        protected final long uuid
      • values

        protected final List<Object> values
        The column values
      • originatorRuntimeId

        protected final String originatorRuntimeId
        The runtime identifier of the source originator. This is only informational.
    • Constructor Detail

      • Row

        public Row​(Out out,
                   List<Object> values)
        Test method. Columns are expected from the out.
        Parameters:
        out - the associated out
        values - the column values
      • Row

        public Row​(Out out,
                   List<Object> values,
                   List<Column> columns,
                   String originatorRuntimeId,
                   long uuid)
        Runtime constructor.
        Parameters:
        out - the associated out
        values - the list of values
        columns - the associated columns
        originatorRuntimeId - the runtime identifier
        uuid - the unique row id. Used for ack and fail processing.
    • Method Detail

      • hashCode

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

        public Out getTableId()
      • getUuid

        public long getUuid()
        Returns:
        the unique identifier of this row
      • size

        public int size()
      • columnIndex

        public int columnIndex​(String column)
      • contains

        public boolean contains​(String column)
      • getValue

        public Object getValue​(int i)
      • getString

        public String getString​(int i)
      • getInteger

        public Integer getInteger​(int i)
      • getLong

        public Long getLong​(int i)
      • getBoolean

        public Boolean getBoolean​(int i)
      • getShort

        public Short getShort​(int i)
      • getByte

        public Byte getByte​(int i)
      • getDouble

        public Double getDouble​(int i)
      • getFloat

        public Float getFloat​(int i)
      • getBinary

        public byte[] getBinary​(int i)
      • getValueByColumn

        public Object getValueByColumn​(Column column)
      • getValueByColumn

        public Object getValueByColumn​(String column)
      • getStringByColumnName

        public String getStringByColumnName​(String column)
      • getIntegerByColumn

        public Integer getIntegerByColumn​(String column)
      • getLongByColumn

        public Long getLongByColumn​(String column)
      • getBooleanByColumn

        public Boolean getBooleanByColumn​(String column)
      • getShortByColumn

        public Short getShortByColumn​(String column)
      • getByteByColumn

        public Byte getByteByColumn​(String column)
      • getDoubleByColumn

        public Double getDoubleByColumn​(String column)
      • getFloatByColumn

        public Float getFloatByColumn​(String column)
      • getBinaryByColumn

        public byte[] getBinaryByColumn​(String column)
      • isTickRow

        public boolean isTickRow()
        Returns:
        true if this row is used for periodic timer. It basically is a fake row.
      • dump

        public void dump()
      • toMap

        public Map<String,​Object> toMap()
        Returns:
        a map representation of this row
      • removeColumn

        public Row removeColumn​(String topicColumn)
        Remove a column from row.
        Parameters:
        topicColumn -
        Returns: