Package io.trino.plugin.hive.orc
Class OrcDeletedRows
- java.lang.Object
-
- io.trino.plugin.hive.orc.OrcDeletedRows
-
@NotThreadSafe public class OrcDeletedRows extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceOrcDeletedRows.MaskDeletedRowsFunction
-
Constructor Summary
Constructors Constructor Description OrcDeletedRows(String sourceFileName, OrcDeleteDeltaPageSourceFactory pageSourceFactory, ConnectorIdentity identity, org.apache.hadoop.conf.Configuration configuration, HdfsEnvironment hdfsEnvironment, AcidInfo acidInfo, OptionalInt bucketNumber, AggregatedMemoryContext memoryContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()OrcDeletedRows.MaskDeletedRowsFunctiongetMaskDeletedRowsFunction(Page sourcePage, OptionalLong startRowId)booleanloadOrYield()Triggers loading of deleted rows ids.
-
-
-
Constructor Detail
-
OrcDeletedRows
public OrcDeletedRows(String sourceFileName, OrcDeleteDeltaPageSourceFactory pageSourceFactory, ConnectorIdentity identity, org.apache.hadoop.conf.Configuration configuration, HdfsEnvironment hdfsEnvironment, AcidInfo acidInfo, OptionalInt bucketNumber, AggregatedMemoryContext memoryContext)
-
-
Method Detail
-
getMaskDeletedRowsFunction
public OrcDeletedRows.MaskDeletedRowsFunction getMaskDeletedRowsFunction(Page sourcePage, OptionalLong startRowId)
-
loadOrYield
public boolean loadOrYield()
Triggers loading of deleted rows ids. Single call to the method may load just part of ids. If more ids to be loaded remain, method returns false and should be called once again. Final call will return true and the loaded ids can be consumed viagetMaskDeletedRowsFunction(Page, OptionalLong)- Returns:
- true when fully loaded, and false if this method should be called again
-
close
public void close() throws IOException- Throws:
IOException
-
-