Package io.trino.plugin.hive.orc
Class OriginalFilesUtils
- java.lang.Object
-
- io.trino.plugin.hive.orc.OriginalFilesUtils
-
public final class OriginalFilesUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static longgetPrecedingRowCount(Collection<AcidInfo.OriginalFileInfo> originalFileInfos, org.apache.hadoop.fs.Path splitPath, HdfsEnvironment hdfsEnvironment, ConnectorIdentity identity, OrcReaderOptions options, org.apache.hadoop.conf.Configuration configuration, FileFormatDataSourceStats stats)Returns total number of rows present before the given original file in the same bucket.
-
-
-
Method Detail
-
getPrecedingRowCount
public static long getPrecedingRowCount(Collection<AcidInfo.OriginalFileInfo> originalFileInfos, org.apache.hadoop.fs.Path splitPath, HdfsEnvironment hdfsEnvironment, ConnectorIdentity identity, OrcReaderOptions options, org.apache.hadoop.conf.Configuration configuration, 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)
-
-