public class MergeRewriter extends Object implements Rewriter<MergeStatement>, MergeStatement.DestClausePrefixSetter
| Modifier and Type | Class and Description |
|---|---|
protected static class |
MergeRewriter.MergeWhenClauseSqlGenerator |
| Modifier and Type | Field and Description |
|---|---|
protected HiveConf |
conf |
protected SqlGeneratorFactory |
sqlGeneratorFactory |
| Constructor and Description |
|---|
MergeRewriter(Hive db,
HiveConf conf,
SqlGeneratorFactory sqlGeneratorFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected MergeRewriter.MergeWhenClauseSqlGenerator |
createMergeSqlGenerator(MergeStatement mergeStatement,
MultiInsertSqlGenerator sqlGenerator) |
ParseUtils.ReparseResult |
rewrite(Context ctx,
MergeStatement mergeStatement) |
protected void |
setOperation(Context context) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddDestNamePrefixOfDelete, addDestNamePrefixOfInsert, addDestNamePrefixOfUpdateprotected final HiveConf conf
protected final SqlGeneratorFactory sqlGeneratorFactory
public MergeRewriter(Hive db, HiveConf conf, SqlGeneratorFactory sqlGeneratorFactory)
public ParseUtils.ReparseResult rewrite(Context ctx, MergeStatement mergeStatement) throws SemanticException
rewrite in interface Rewriter<MergeStatement>SemanticExceptionprotected MergeRewriter.MergeWhenClauseSqlGenerator createMergeSqlGenerator(MergeStatement mergeStatement, MultiInsertSqlGenerator sqlGenerator)
protected void setOperation(Context context)
Copyright © 2024 The Apache Software Foundation. All rights reserved.