com.google.api.services.dataproc.model.PrestoJob Maven / Gradle / Ivy
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/
package com.google.api.services.dataproc.model;
/**
* A Dataproc job for running Presto (https://prestosql.io/) queries. IMPORTANT: The Dataproc Presto
* Optional Component (https://cloud.google.com/dataproc/docs/concepts/components/presto) must be
* enabled when the cluster is created to submit a Presto 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.
*/
@SuppressWarnings("javadoc")
public final class PrestoJob extends com.google.api.client.json.GenericJson {
/**
* Optional. Presto client tags to attach to this query
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List clientTags;
/**
* 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.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean continueOnFailure;
/**
* Optional. The runtime log config for job execution.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private LoggingConfig loggingConfig;
/**
* Optional. The format in which query output will be displayed. See the Presto documentation for
* supported output formats
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String outputFormat;
/**
* Optional. A mapping of property names to values. Used to set Presto session properties
* (https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag
* in the Presto CLI
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.Map properties;
/**
* The HCFS URI of the script that contains SQL queries.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String queryFileUri;
/**
* A list of queries.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private QueryList queryList;
/**
* Optional. Presto client tags to attach to this query
* @return value or {@code null} for none
*/
public java.util.List getClientTags() {
return clientTags;
}
/**
* Optional. Presto client tags to attach to this query
* @param clientTags clientTags or {@code null} for none
*/
public PrestoJob setClientTags(java.util.List clientTags) {
this.clientTags = clientTags;
return this;
}
/**
* 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.
* @return value or {@code null} for none
*/
public java.lang.Boolean getContinueOnFailure() {
return 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.
* @param continueOnFailure continueOnFailure or {@code null} for none
*/
public PrestoJob setContinueOnFailure(java.lang.Boolean continueOnFailure) {
this.continueOnFailure = continueOnFailure;
return this;
}
/**
* Optional. The runtime log config for job execution.
* @return value or {@code null} for none
*/
public LoggingConfig getLoggingConfig() {
return loggingConfig;
}
/**
* Optional. The runtime log config for job execution.
* @param loggingConfig loggingConfig or {@code null} for none
*/
public PrestoJob setLoggingConfig(LoggingConfig loggingConfig) {
this.loggingConfig = loggingConfig;
return this;
}
/**
* Optional. The format in which query output will be displayed. See the Presto documentation for
* supported output formats
* @return value or {@code null} for none
*/
public java.lang.String getOutputFormat() {
return outputFormat;
}
/**
* Optional. The format in which query output will be displayed. See the Presto documentation for
* supported output formats
* @param outputFormat outputFormat or {@code null} for none
*/
public PrestoJob setOutputFormat(java.lang.String outputFormat) {
this.outputFormat = outputFormat;
return this;
}
/**
* Optional. A mapping of property names to values. Used to set Presto session properties
* (https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag
* in the Presto CLI
* @return value or {@code null} for none
*/
public java.util.Map getProperties() {
return properties;
}
/**
* Optional. A mapping of property names to values. Used to set Presto session properties
* (https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag
* in the Presto CLI
* @param properties properties or {@code null} for none
*/
public PrestoJob setProperties(java.util.Map properties) {
this.properties = properties;
return this;
}
/**
* The HCFS URI of the script that contains SQL queries.
* @return value or {@code null} for none
*/
public java.lang.String getQueryFileUri() {
return queryFileUri;
}
/**
* The HCFS URI of the script that contains SQL queries.
* @param queryFileUri queryFileUri or {@code null} for none
*/
public PrestoJob setQueryFileUri(java.lang.String queryFileUri) {
this.queryFileUri = queryFileUri;
return this;
}
/**
* A list of queries.
* @return value or {@code null} for none
*/
public QueryList getQueryList() {
return queryList;
}
/**
* A list of queries.
* @param queryList queryList or {@code null} for none
*/
public PrestoJob setQueryList(QueryList queryList) {
this.queryList = queryList;
return this;
}
@Override
public PrestoJob set(String fieldName, Object value) {
return (PrestoJob) super.set(fieldName, value);
}
@Override
public PrestoJob clone() {
return (PrestoJob) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy