public final class PrestoJob extends GeneratedMessageV3 implements PrestoJobOrBuilder
A Dataproc job for running Presto queries.
IMPORTANT: The Dataproc Presto Optional
Component
must be enabled when the cluster is created to submit a Presto job to the
cluster.
Protobuf type google.cloud.dataproc.v1.PrestoJob
Inherited Members
Static Fields
public static final int CLIENT_TAGS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
CONTINUE_ON_FAILURE_FIELD_NUMBER
public static final int CONTINUE_ON_FAILURE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
LOGGING_CONFIG_FIELD_NUMBER
public static final int LOGGING_CONFIG_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int OUTPUT_FORMAT_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
PROPERTIES_FIELD_NUMBER
public static final int PROPERTIES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
QUERY_FILE_URI_FIELD_NUMBER
public static final int QUERY_FILE_URI_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
QUERY_LIST_FIELD_NUMBER
public static final int QUERY_LIST_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static PrestoJob getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static PrestoJob.Builder newBuilder()
newBuilder(PrestoJob prototype)
public static PrestoJob.Builder newBuilder(PrestoJob prototype)
public static PrestoJob parseDelimitedFrom(InputStream input)
public static PrestoJob parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static PrestoJob parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PrestoJob parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static PrestoJob parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PrestoJob parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PrestoJob parseFrom(CodedInputStream input)
public static PrestoJob parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static PrestoJob parseFrom(InputStream input)
public static PrestoJob parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static PrestoJob parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static PrestoJob parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<PrestoJob> parser()
Methods
containsProperties(String key)
public boolean containsProperties(String key)
Optional. A mapping of property names to values. Used to set Presto
session properties
Equivalent to using the --session flag in the Presto CLI
map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
---|
Name | Description |
key | String
|
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
public String getClientTags(int index)
Optional. Presto client tags to attach to this query
repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
---|
Name | Description |
index | int
The index of the element to return.
|
Returns |
---|
Type | Description |
String | The clientTags at the given index.
|
public ByteString getClientTagsBytes(int index)
Optional. Presto client tags to attach to this query
repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
---|
Name | Description |
index | int
The index of the value to return.
|
Returns |
---|
Type | Description |
ByteString | The bytes of the clientTags at the given index.
|
public int getClientTagsCount()
Optional. Presto client tags to attach to this query
repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns |
---|
Type | Description |
int | The count of clientTags.
|
public ProtocolStringList getClientTagsList()
Optional. Presto client tags to attach to this query
repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL];
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.
bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns |
---|
Type | Description |
boolean | The continueOnFailure.
|
getDefaultInstanceForType()
public PrestoJob getDefaultInstanceForType()
getLoggingConfig()
public LoggingConfig getLoggingConfig()
Optional. The runtime log config for job execution.
.google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL];
getLoggingConfigOrBuilder()
public LoggingConfigOrBuilder getLoggingConfigOrBuilder()
Optional. The runtime log config for job execution.
.google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL];
public String getOutputFormat()
Optional. The format in which query output will be displayed. See the
Presto documentation for supported output formats
string output_format = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns |
---|
Type | Description |
String | The outputFormat.
|
public ByteString getOutputFormatBytes()
Optional. The format in which query output will be displayed. See the
Presto documentation for supported output formats
string output_format = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns |
---|
Type | Description |
ByteString | The bytes for outputFormat.
|
getParserForType()
public Parser<PrestoJob> getParserForType()
Overrides
getProperties()
public Map<String,String> getProperties()
getPropertiesCount()
public int getPropertiesCount()
Optional. A mapping of property names to values. Used to set Presto
session properties
Equivalent to using the --session flag in the Presto CLI
map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns |
---|
Type | Description |
int | |
getPropertiesMap()
public Map<String,String> getPropertiesMap()
Optional. A mapping of property names to values. Used to set Presto
session properties
Equivalent to using the --session flag in the Presto CLI
map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL];
getPropertiesOrDefault(String key, String defaultValue)
public String getPropertiesOrDefault(String key, String defaultValue)
Optional. A mapping of property names to values. Used to set Presto
session properties
Equivalent to using the --session flag in the Presto CLI
map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL];
getPropertiesOrThrow(String key)
public String getPropertiesOrThrow(String key)
Optional. A mapping of property names to values. Used to set Presto
session properties
Equivalent to using the --session flag in the Presto CLI
map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
---|
Name | Description |
key | String
|
getQueriesCase()
public PrestoJob.QueriesCase getQueriesCase()
getQueryFileUri()
public String getQueryFileUri()
The HCFS URI of the script that contains SQL queries.
string query_file_uri = 1;
Returns |
---|
Type | Description |
String | The queryFileUri.
|
getQueryFileUriBytes()
public ByteString getQueryFileUriBytes()
The HCFS URI of the script that contains SQL queries.
string query_file_uri = 1;
Returns |
---|
Type | Description |
ByteString | The bytes for queryFileUri.
|
getQueryList()
public QueryList getQueryList()
A list of queries.
.google.cloud.dataproc.v1.QueryList query_list = 2;
Returns |
---|
Type | Description |
QueryList | The queryList.
|
getQueryListOrBuilder()
public QueryListOrBuilder getQueryListOrBuilder()
A list of queries.
.google.cloud.dataproc.v1.QueryList query_list = 2;
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
hasLoggingConfig()
public boolean hasLoggingConfig()
Optional. The runtime log config for job execution.
.google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns |
---|
Type | Description |
boolean | Whether the loggingConfig field is set.
|
hasQueryFileUri()
public boolean hasQueryFileUri()
The HCFS URI of the script that contains SQL queries.
string query_file_uri = 1;
Returns |
---|
Type | Description |
boolean | Whether the queryFileUri field is set.
|
hasQueryList()
public boolean hasQueryList()
A list of queries.
.google.cloud.dataproc.v1.QueryList query_list = 2;
Returns |
---|
Type | Description |
boolean | Whether the queryList field is set.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public PrestoJob.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected PrestoJob.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public PrestoJob.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides