michaelsembwever commented on code in PR #2943:
URL: https://github.com/apache/cassandra/pull/2943#discussion_r1411256563
##########
src/java/org/apache/cassandra/index/sai/disk/v1/WidePrimaryKeyMap.java:
##########
@@ -58,19 +61,24 @@ public static class Factory extends
SkinnyPrimaryKeyMap.Factory
{
private final ClusteringComparator clusteringComparator;
private final KeyLookup clusteringKeyReader;
+ private final LongArray.Factory partitionToSizeReaderFactory;
private final FileHandle clusteringKeyBlockOffsetsFile;
private final FileHandle clustingingKeyBlocksFile;
+ private final FileHandle partitionToSizeFile;
public Factory(IndexDescriptor indexDescriptor, SSTableReader sstable)
{
- super(indexDescriptor, sstable);
+ super(indexDescriptor);
this.clusteringKeyBlockOffsetsFile =
indexDescriptor.createPerSSTableFileHandle(IndexComponent.CLUSTERING_KEY_BLOCK_OFFSETS,
this::close);
this.clustingingKeyBlocksFile =
indexDescriptor.createPerSSTableFileHandle(IndexComponent.CLUSTERING_KEY_BLOCKS,
this::close);
+ this.partitionToSizeFile =
indexDescriptor.createPerSSTableFileHandle(IndexComponent.PARTITION_TO_SIZE,
this::close);
try
{
this.clusteringComparator =
indexDescriptor.clusteringComparator;
+ NumericValuesMeta partitionSizeMeta = new
NumericValuesMeta(metadataSource.get(indexDescriptor.componentName(IndexComponent.PARTITION_TO_SIZE)));
Review Comment:
what about when reading index from 5.0-alphaX and this doesn't exist ?
--
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]