yifan-c commented on code in PR #173:
URL:
https://github.com/apache/cassandra-analytics/pull/173#discussion_r2855413816
##########
cassandra-five-zero-bridge/src/main/java/org/apache/cassandra/io/sstable/format/bti/BtiReaderUtils.java:
##########
@@ -109,6 +121,53 @@ public static boolean primaryIndexContainsAnyKey(@NotNull
SSTable ssTable,
return exists.get();
}
+ @Nullable
+ public static Long startOffsetInDataFile(@NotNull SSTable ssTable,
+ @NotNull TableMetadata metadata,
+ @NotNull Descriptor descriptor,
+ @NotNull TokenRange tokenRange)
+ {
+ final AtomicReference<Long> offset = new AtomicReference<>(null);
+ try
+ {
+ // Loading data file is required by BtiTableReader.
+ // Migrate to
org.apache.cassandra.io.sstable.format.SSTableReader#getApproximatePositionsForRanges
Review Comment:
haha, the ticket ID (123) almost looks like fake.
--
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]