Github user ravipesala commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/1984#discussion_r169628343
--- Diff:
core/src/main/java/org/apache/carbondata/core/indexstore/blockletindex/SegmentIndexFileStore.java
---
@@ -79,6 +87,44 @@ public void readAllIIndexOfSegment(String segmentPath)
throws IOException {
}
}
+ /**
+ * Read all index files and keep the cache in it.
+ *
+ * @param segmentFileStore
+ * @throws IOException
+ */
+ public void readAllIIndexOfSegment(SegmentFileStore segmentFileStore,
SegmentStatus status,
+ boolean ignoreStatus) throws IOException {
+ List<CarbonFile> carbonIndexFiles = new ArrayList<>();
+ if (segmentFileStore.getLocationMap() == null) {
+ return;
+ }
+ for (Map.Entry<String, SegmentFileStore.FolderDetails> locations :
segmentFileStore
+ .getLocationMap().entrySet()) {
+ String location = locations.getKey();
+ if (locations.getValue().isRelative()) {
+ location =
--- End diff --
ok
---