Package com.zendesk.maxwell.row
Class RowMap
- java.lang.Object
-
- com.zendesk.maxwell.row.RowMap
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DDLMap
,HeartbeatRowMap
public class RowMap extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RowMap.KeyFormat
-
Field Summary
Fields Modifier and Type Field Description protected boolean
suppressed
-
Constructor Summary
Constructors Constructor Description RowMap(String type, String database, String table, Long timestampMillis, List<String> pkColumns, Position nextPosition)
RowMap(String type, String database, String table, Long timestampMillis, List<String> pkColumns, Position position, Position nextPosition, String rowQuery)
RowMap(String type, String database, String table, Long timestampMillis, List<String> pkColumns, Position nextPosition, String rowQuery)
-
Method Summary
-
-
-
Constructor Detail
-
RowMap
public RowMap(String type, String database, String table, Long timestampMillis, List<String> pkColumns, Position position, Position nextPosition, String rowQuery)
-
RowMap
public RowMap(String type, String database, String table, Long timestampMillis, List<String> pkColumns, Position nextPosition, String rowQuery)
-
-
Method Detail
-
getRowIdentity
public RowIdentity getRowIdentity()
-
pkToJson
public String pkToJson(RowMap.KeyFormat format) throws IOException
- Throws:
IOException
-
toJSON
public String toJSON(MaxwellOutputConfig outputConfig) throws Exception
- Throws:
Exception
-
getApproximateSize
public long getApproximateSize()
-
getNextPosition
public Position getNextPosition()
-
getPosition
public Position getPosition()
-
getXid
public Long getXid()
-
setXid
public void setXid(Long xid)
-
getXoffset
public Long getXoffset()
-
setXoffset
public void setXoffset(Long xoffset)
-
setTXCommit
public void setTXCommit()
-
isTXCommit
public boolean isTXCommit()
-
getServerId
public Long getServerId()
-
setServerId
public void setServerId(Long serverId)
-
getThreadId
public Long getThreadId()
-
setThreadId
public void setThreadId(Long threadId)
-
getSchemaId
public Long getSchemaId()
-
setSchemaId
public void setSchemaId(Long schemaId)
-
getDatabase
public String getDatabase()
-
getTable
public String getTable()
-
getTimestamp
public Long getTimestamp()
-
getTimestampMillis
public Long getTimestampMillis()
-
hasData
public boolean hasData(String name)
-
getRowQuery
public String getRowQuery()
-
setRowQuery
public void setRowQuery(String query)
-
getRowType
public String getRowType()
-
shouldOutput
public boolean shouldOutput(MaxwellOutputConfig outputConfig)
-
getData
public LinkedHashMap<String,Object> getData()
-
getExtraAttributes
public LinkedHashMap<String,Object> getExtraAttributes()
-
getOldData
public LinkedHashMap<String,Object> getOldData()
-
suppress
public void suppress()
-
getKafkaTopic
public String getKafkaTopic()
-
setKafkaTopic
public void setKafkaTopic(String topic)
-
getPartitionString
public String getPartitionString()
-
setPartitionString
public void setPartitionString(String partitionString)
-
getComment
public String getComment()
-
setComment
public void setComment(String comment)
-
-