/** * for explain command * get number of block by counting distinct file path of blocklets */ private int getBlockCount(List<ExtendedBlocklet> blocklets) { Set<String> filepaths = new HashSet<>(); for (ExtendedBlocklet blocklet: blocklets) { filepaths.add(blocklet.getPath()); } return filepaths.size(); }
.getTaskIdFromTaskNo(CarbonTablePath.DataFileUtil.getTaskNo(blocklet.getPath()));
private CarbonInputSplit convertToCarbonInputSplit(ExtendedBlocklet blocklet) throws IOException { CarbonInputSplit split = CarbonInputSplit .from(blocklet.getSegmentId(), blocklet.getBlockletId(), new FileSplit(new Path(blocklet.getPath()), 0, blocklet.getLength(), blocklet.getLocations()), ColumnarFormatVersion.valueOf((short) blocklet.getDetailInfo().getVersionNumber()), blocklet.getDataMapWriterPath()); split.setDetailInfo(blocklet.getDetailInfo()); return split; }
blockletMap.prune(filteredSegment, (FilterResolverIntf) null, partitions); for (ExtendedBlocklet blocklet : blocklets) { String blockName = blocklet.getPath(); blockName = CarbonTablePath.getCarbonDataFileName(blockName); blockName = blockName + CarbonTablePath.getCarbonDataExtension();