scylladb / scylla-cdc-java

Apache License 2.0
24 stars 15 forks source link

Further work on ChangeSchema #4

Closed avelanarius closed 3 years ago

avelanarius commented 3 years ago

Sorry for grouping all those changes into single commit. (If it's important, I can split them).

Renamed columnType to dataType and introduced new columnType, which describes if a given column is part of primary key (partition or clustering column) or a regular column.

Added equals() and hashCode() to ChangeSchema and ColumnDefinition.

Moved building Schema from Driver3Change to Driver3SchemaBuilder. The ChangeSchema is now built only once at a start of a query.

Changed getInt() to return Integer (to support null in columns). Introduced getByte() method.