Class Row
- java.lang.Object
-
- io.github.punchplatform.api.punchline.java.Row
-
public class Row extends Object
The basic class to hold column values.
-
-
Method Summary
-
-
-
Constructor Detail
-
Row
public Row(Out out, List<Object> values)
Test method. Columns are expected from the out.- Parameters:
out- the associated outvalues- the column values
-
Row
public Row(Out out, List<Object> values, List<Column> columns, String originatorRuntimeId, long uuid)
Runtime constructor.- Parameters:
out- the associated outvalues- the list of valuescolumns- the associated columnsoriginatorRuntimeId- the runtime identifieruuid- the unique row id. Used for ack and fail processing.
-
-
Method Detail
-
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)
-
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.
-
validate
public void validate() throws RuntimeException- Throws:
RuntimeException
-
dump
public void dump()
-
-