public static class QueryState.Builder extends Object
Constructor and Description |
---|
Builder()
Default constructor - use this builder to create a QueryState object.
|
Modifier and Type | Method and Description |
---|---|
QueryState |
build()
Creates the QueryState object.
|
QueryState.Builder |
nonIsolated()
Disable configuration isolation.
|
QueryState.Builder |
withConfOverlay(Map<String,String> confOverlay)
Set this if there are specific configuration values which should be added to the original
config.
|
QueryState.Builder |
withGenerateNewQueryId(boolean generateNewQueryId)
Set this to true if new queryId should be generated, otherwise the original one will be kept.
|
QueryState.Builder |
withHiveConf(HiveConf hiveConf)
The source HiveConf object used to create the QueryState.
|
QueryState.Builder |
withLineageState(LineageState lineageState)
add a LineageState that will be set in the built QueryState
|
public Builder()
public QueryState.Builder withConfOverlay(Map<String,String> confOverlay)
confOverlay
- The query specific parameterspublic QueryState.Builder nonIsolated()
public QueryState.Builder withGenerateNewQueryId(boolean generateNewQueryId)
generateNewQueryId
- If new queryId should be generatedpublic QueryState.Builder withHiveConf(HiveConf hiveConf)
hiveConf
- The source HiveConfpublic QueryState.Builder withLineageState(LineageState lineageState)
lineageState
- the source lineageStatepublic QueryState build()
Copyright © 2022 The Apache Software Foundation. All rights reserved.