Package io.trino.plugin.hive
Class AbstractHiveAcidWriters
- java.lang.Object
-
- io.trino.plugin.hive.AbstractHiveAcidWriters
-
- Direct Known Subclasses:
HiveUpdatablePageSource
public abstract class AbstractHiveAcidWriters extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static PatternBASE_PATH_MATCHERstatic PatternBUCKET_PATH_MATCHERprotected OptionalIntbucketNumberstatic BlockDELETE_OPERATION_BLOCKprotected org.apache.hadoop.fs.PathdeleteDeltaDirectoryprotected Optional<FileWriter>deleteFileWriterprotected Optional<org.apache.hadoop.fs.Path>deltaDirectoryprotected HiveTypehiveRowTypestatic BlockINSERT_OPERATION_BLOCKprotected Optional<FileWriter>insertFileWriterstatic PatternORIGINAL_FILE_PATH_MATCHERprotected ConnectorSessionsessionprotected intstatementIdprotected AcidTransactiontransaction
-
Constructor Summary
Constructors Constructor Description AbstractHiveAcidWriters(AcidTransaction transaction, int statementId, OptionalInt bucketNumber, org.apache.hadoop.fs.Path bucketPath, boolean originalFile, OrcFileWriterFactory orcFileWriterFactory, org.apache.hadoop.conf.Configuration configuration, ConnectorSession session, HiveType hiveRowType, AcidOperation updateKind)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidlazyInitializeDeleteFileWriter()protected voidlazyInitializeInsertFileWriter()
-
-
-
Field Detail
-
DELETE_OPERATION_BLOCK
public static final Block DELETE_OPERATION_BLOCK
-
INSERT_OPERATION_BLOCK
public static final Block INSERT_OPERATION_BLOCK
-
BUCKET_PATH_MATCHER
public static final Pattern BUCKET_PATH_MATCHER
-
ORIGINAL_FILE_PATH_MATCHER
public static final Pattern ORIGINAL_FILE_PATH_MATCHER
-
BASE_PATH_MATCHER
public static final Pattern BASE_PATH_MATCHER
-
transaction
protected final AcidTransaction transaction
-
bucketNumber
protected final OptionalInt bucketNumber
-
statementId
protected final int statementId
-
session
protected final ConnectorSession session
-
hiveRowType
protected final HiveType hiveRowType
-
deleteDeltaDirectory
protected final org.apache.hadoop.fs.Path deleteDeltaDirectory
-
deltaDirectory
protected Optional<org.apache.hadoop.fs.Path> deltaDirectory
-
deleteFileWriter
protected Optional<FileWriter> deleteFileWriter
-
insertFileWriter
protected Optional<FileWriter> insertFileWriter
-
-
Constructor Detail
-
AbstractHiveAcidWriters
public AbstractHiveAcidWriters(AcidTransaction transaction, int statementId, OptionalInt bucketNumber, org.apache.hadoop.fs.Path bucketPath, boolean originalFile, OrcFileWriterFactory orcFileWriterFactory, org.apache.hadoop.conf.Configuration configuration, ConnectorSession session, HiveType hiveRowType, AcidOperation updateKind)
-
-