All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.dataproc.v1beta2.model.HiveJob Maven / Gradle / Ivy

There is a newer version: v1-rev20241025-2.0.0
Show newest version
/*
 * Copyright 2010 Google Inc.
 *
 * 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/google/apis-client-generator/
 * (build: 2018-05-04 17:28:03 UTC)
 * on 2018-09-12 at 16:10:30 UTC 
 * Modify at your own risk.
 */

package com.google.api.services.dataproc.v1beta2.model;

/**
 * A Cloud Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN.
 *
 * 

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 HiveJob extends com.google.api.client.json.GenericJson { /** * 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. HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop * MapReduce (MR) tasks. Can contain Hive SerDes and UDFs. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List jarFileUris; /** * Optional. A mapping of property names and values, used to configure Hive. Properties that * conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties * set in /etc/hadoop/conf-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code. * 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 Hive 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. Mapping of query variable names to values (equivalent to the Hive command: SET * name="value";). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.Map scriptVariables; /** * 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 HiveJob setContinueOnFailure(java.lang.Boolean continueOnFailure) { this.continueOnFailure = continueOnFailure; return this; } /** * Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop * MapReduce (MR) tasks. Can contain Hive SerDes and UDFs. * @return value or {@code null} for none */ public java.util.List getJarFileUris() { return jarFileUris; } /** * Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop * MapReduce (MR) tasks. Can contain Hive SerDes and UDFs. * @param jarFileUris jarFileUris or {@code null} for none */ public HiveJob setJarFileUris(java.util.List jarFileUris) { this.jarFileUris = jarFileUris; return this; } /** * Optional. A mapping of property names and values, used to configure Hive. Properties that * conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties * set in /etc/hadoop/conf-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code. * @return value or {@code null} for none */ public java.util.Map getProperties() { return properties; } /** * Optional. A mapping of property names and values, used to configure Hive. Properties that * conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties * set in /etc/hadoop/conf-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code. * @param properties properties or {@code null} for none */ public HiveJob setProperties(java.util.Map properties) { this.properties = properties; return this; } /** * The HCFS URI of the script that contains Hive queries. * @return value or {@code null} for none */ public java.lang.String getQueryFileUri() { return queryFileUri; } /** * The HCFS URI of the script that contains Hive queries. * @param queryFileUri queryFileUri or {@code null} for none */ public HiveJob 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 HiveJob setQueryList(QueryList queryList) { this.queryList = queryList; return this; } /** * Optional. Mapping of query variable names to values (equivalent to the Hive command: SET * name="value";). * @return value or {@code null} for none */ public java.util.Map getScriptVariables() { return scriptVariables; } /** * Optional. Mapping of query variable names to values (equivalent to the Hive command: SET * name="value";). * @param scriptVariables scriptVariables or {@code null} for none */ public HiveJob setScriptVariables(java.util.Map scriptVariables) { this.scriptVariables = scriptVariables; return this; } @Override public HiveJob set(String fieldName, Object value) { return (HiveJob) super.set(fieldName, value); } @Override public HiveJob clone() { return (HiveJob) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy