Class OriginalFilesUtils
java.lang.Object
io.trino.plugin.hive.orc.OriginalFilesUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic longgetPrecedingRowCount(Collection<AcidInfo.OriginalFileInfo> originalFileInfos, Location splitPath, TrinoFileSystemFactory fileSystemFactory, ConnectorIdentity identity, OrcReaderOptions options, FileFormatDataSourceStats stats) Returns total number of rows present before the given original file in the same bucket.
-
Method Details
-
getPrecedingRowCount
public static long getPrecedingRowCount(Collection<AcidInfo.OriginalFileInfo> originalFileInfos, Location splitPath, TrinoFileSystemFactory fileSystemFactory, ConnectorIdentity identity, OrcReaderOptions options, FileFormatDataSourceStats stats) Returns total number of rows present before the given original file in the same bucket. example: if bucket-1 has original files 000000_0 -> X0 rows 000000_0_copy1 -> X1 rows 000000_0_copy2 -> X2 rowsfor 000000_0_copy2, it returns (X0+X1)
-