target.apidocs.com.google.api.services.dataproc.model.TrinoJob.html Maven / Gradle / Ivy
TrinoJob (Cloud Dataproc API v1-rev20240605-2.0.0)
com.google.api.services.dataproc.model
Class TrinoJob
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.dataproc.model.TrinoJob
-
public final class TrinoJob
extends com.google.api.client.json.GenericJson
A Dataproc job for running Trino (https://trino.io/) queries. IMPORTANT: The Dataproc Trino
Optional Component (https://cloud.google.com/dataproc/docs/concepts/components/trino) must be
enabled when the cluster is created to submit a Trino job to the cluster.
This is the Java data model class that specifies how to parse/serialize into the JSON that is
transmitted over HTTP when working with the Cloud Dataproc API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
TrinoJob()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
TrinoJob
clone()
List<String>
getClientTags()
Optional.
Boolean
getContinueOnFailure()
Optional.
LoggingConfig
getLoggingConfig()
Optional.
String
getOutputFormat()
Optional.
Map<String,String>
getProperties()
Optional.
String
getQueryFileUri()
The HCFS URI of the script that contains SQL queries.
QueryList
getQueryList()
A list of queries.
TrinoJob
set(String fieldName,
Object value)
TrinoJob
setClientTags(List<String> clientTags)
Optional.
TrinoJob
setContinueOnFailure(Boolean continueOnFailure)
Optional.
TrinoJob
setLoggingConfig(LoggingConfig loggingConfig)
Optional.
TrinoJob
setOutputFormat(String outputFormat)
Optional.
TrinoJob
setProperties(Map<String,String> properties)
Optional.
TrinoJob
setQueryFileUri(String queryFileUri)
The HCFS URI of the script that contains SQL queries.
TrinoJob
setQueryList(QueryList queryList)
A list of queries.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getClientTags
public List<String> getClientTags()
Optional. Trino client tags to attach to this query
- Returns:
- value or
null
for none
-
setClientTags
public TrinoJob setClientTags(List<String> clientTags)
Optional. Trino client tags to attach to this query
- Parameters:
clientTags
- clientTags or null
for none
-
getContinueOnFailure
public Boolean getContinueOnFailure()
Optional. Whether to continue executing queries if a query fails. The default value is false.
Setting to true can be useful when executing independent parallel queries.
- Returns:
- value or
null
for none
-
setContinueOnFailure
public TrinoJob setContinueOnFailure(Boolean continueOnFailure)
Optional. Whether to continue executing queries if a query fails. The default value is false.
Setting to true can be useful when executing independent parallel queries.
- Parameters:
continueOnFailure
- continueOnFailure or null
for none
-
getLoggingConfig
public LoggingConfig getLoggingConfig()
Optional. The runtime log config for job execution.
- Returns:
- value or
null
for none
-
setLoggingConfig
public TrinoJob setLoggingConfig(LoggingConfig loggingConfig)
Optional. The runtime log config for job execution.
- Parameters:
loggingConfig
- loggingConfig or null
for none
-
getOutputFormat
public String getOutputFormat()
Optional. The format in which query output will be displayed. See the Trino documentation for
supported output formats
- Returns:
- value or
null
for none
-
setOutputFormat
public TrinoJob setOutputFormat(String outputFormat)
Optional. The format in which query output will be displayed. See the Trino documentation for
supported output formats
- Parameters:
outputFormat
- outputFormat or null
for none
-
getProperties
public Map<String,String> getProperties()
Optional. A mapping of property names to values. Used to set Trino session properties
(https://trino.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in
the Trino CLI
- Returns:
- value or
null
for none
-
setProperties
public TrinoJob setProperties(Map<String,String> properties)
Optional. A mapping of property names to values. Used to set Trino session properties
(https://trino.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in
the Trino CLI
- Parameters:
properties
- properties or null
for none
-
getQueryFileUri
public String getQueryFileUri()
The HCFS URI of the script that contains SQL queries.
- Returns:
- value or
null
for none
-
setQueryFileUri
public TrinoJob setQueryFileUri(String queryFileUri)
The HCFS URI of the script that contains SQL queries.
- Parameters:
queryFileUri
- queryFileUri or null
for none
-
getQueryList
public QueryList getQueryList()
A list of queries.
- Returns:
- value or
null
for none
-
setQueryList
public TrinoJob setQueryList(QueryList queryList)
A list of queries.
- Parameters:
queryList
- queryList or null
for none
-
set
public TrinoJob set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public TrinoJob clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy