@InterfaceStability.Unstable public class SamzaSqlRelRecord extends java.lang.Object implements java.io.Serializable
Constructor and Description |
---|
SamzaSqlRelRecord(java.util.List<java.lang.String> fieldNames,
java.util.List<java.lang.Object> fieldValues)
Creates a
SamzaSqlRelRecord from the list of relational fields and values. |
Modifier and Type | Method and Description |
---|---|
boolean |
containsField(java.lang.String name) |
boolean |
equals(java.lang.Object obj) |
java.util.Optional<java.lang.Object> |
getField(java.lang.String name)
Get the value of the field corresponding to the field name.
|
java.util.List<java.lang.String> |
getFieldNames()
Get the field names of all the columns in the relational message.
|
java.util.List<java.lang.Object> |
getFieldValues()
Get the field values of all the columns in the relational message.
|
int |
hashCode() |
java.lang.String |
toString() |
public SamzaSqlRelRecord(java.util.List<java.lang.String> fieldNames, java.util.List<java.lang.Object> fieldValues)
SamzaSqlRelRecord
from the list of relational fields and values.fieldNames
- Ordered list of field names in the row.fieldValues
- Ordered list of all the values in the row. Some of the fields can be null. This could be
result of delete change capture event in the stream or because of the result of the outer
join or the fields themselves are null in the original stream.public java.util.List<java.lang.String> getFieldNames()
public java.util.List<java.lang.Object> getFieldValues()
public java.util.Optional<java.lang.Object> getField(java.lang.String name)
name
- Name of the field.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public boolean containsField(java.lang.String name)