lukasz-antoniak commented on code in PR #175:
URL:
https://github.com/apache/cassandra-analytics/pull/175#discussion_r2924022121
##########
cassandra-four-zero-bridge/src/main/java/org/apache/cassandra/bridge/AbstractCdcBridgeImplementation.java:
##########
@@ -79,6 +82,28 @@ public void log(CqlTable cqlTable, CommitLogInstance log,
Row row, long timestam
log(TimeProvider.DEFAULT, cqlTable, log, row, timestamp);
}
+ public CommitLogInstance createCommitLogInstance(Path path)
+ {
+ return new FourZeroCommitLog(path);
+ }
+
+ public TableIdLookup internalTableIdLookup()
+ {
+ return new TableIdLookup()
+ {
+ @Nullable
+ public UUID lookup(String keyspace, String table) throws
NoSuchElementException
+ {
+ TableMetadata tm = Schema.instance.getTableMetadata(keyspace,
table);
+ if (tm == null)
+ {
+ throw new NoSuchElementException();
+ }
+ return tm.id.asUUID();
+ }
+ };
Review Comment:
Good catch.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]