Class: Google::Apis::BigqueryV2::SparkOptions

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/bigquery_v2/classes.rb,
lib/google/apis/bigquery_v2/representations.rb,
lib/google/apis/bigquery_v2/representations.rb

Overview

Options for a user-defined Spark routine.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SparkOptions

Returns a new instance of SparkOptions.



7300
7301
7302
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7300

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#archive_urisArray<String>

Archive files to be extracted into the working directory of each executor. For more information about Apache Spark, see Apache Spark. Corresponds to the JSON property archiveUris

Returns:

  • (Array<String>)


7237
7238
7239
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7237

def archive_uris
  @archive_uris
end

#connectionString

Fully qualified name of the user-provided Spark connection object. Format: " projects/`project_id`/locations/`location_id`/connections/`connection_id`" Corresponds to the JSON property connection

Returns:

  • (String)


7243
7244
7245
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7243

def connection
  @connection
end

#container_imageString

Custom container image for the runtime environment. Corresponds to the JSON property containerImage

Returns:

  • (String)


7248
7249
7250
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7248

def container_image
  @container_image
end

#file_urisArray<String>

Files to be placed in the working directory of each executor. For more information about Apache Spark, see Apache Spark. Corresponds to the JSON property fileUris

Returns:

  • (Array<String>)


7255
7256
7257
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7255

def file_uris
  @file_uris
end

#jar_urisArray<String>

JARs to include on the driver and executor CLASSPATH. For more information about Apache Spark, see Apache Spark. Corresponds to the JSON property jarUris

Returns:

  • (Array<String>)


7262
7263
7264
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7262

def jar_uris
  @jar_uris
end

#main_classString

The fully qualified name of a class in jar_uris, for example, com.example. wordcount. Exactly one of main_class and main_jar_uri field should be set for Java/Scala language type. Corresponds to the JSON property mainClass

Returns:

  • (String)


7269
7270
7271
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7269

def main_class
  @main_class
end

#main_file_uriString

The main file/jar URI of the Spark application. Exactly one of the definition_body field and the main_file_uri field must be set for Python. Exactly one of main_class and main_file_uri field should be set for Java/Scala language type. Corresponds to the JSON property mainFileUri

Returns:

  • (String)


7277
7278
7279
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7277

def main_file_uri
  @main_file_uri
end

#propertiesHash<String,String>

Configuration properties as a set of key/value pairs, which will be passed on to the Spark application. For more information, see Apache Spark and the procedure option list. Corresponds to the JSON property properties

Returns:

  • (Hash<String,String>)


7286
7287
7288
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7286

def properties
  @properties
end

#py_file_urisArray<String>

Python files to be placed on the PYTHONPATH for PySpark application. Supported file types: .py, .egg, and .zip. For more information about Apache Spark, see Apache Spark. Corresponds to the JSON property pyFileUris

Returns:

  • (Array<String>)


7293
7294
7295
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7293

def py_file_uris
  @py_file_uris
end

#runtime_versionString

Runtime version. If not specified, the default runtime version is used. Corresponds to the JSON property runtimeVersion

Returns:

  • (String)


7298
7299
7300
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7298

def runtime_version
  @runtime_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7305

def update!(**args)
  @archive_uris = args[:archive_uris] if args.key?(:archive_uris)
  @connection = args[:connection] if args.key?(:connection)
  @container_image = args[:container_image] if args.key?(:container_image)
  @file_uris = args[:file_uris] if args.key?(:file_uris)
  @jar_uris = args[:jar_uris] if args.key?(:jar_uris)
  @main_class = args[:main_class] if args.key?(:main_class)
  @main_file_uri = args[:main_file_uri] if args.key?(:main_file_uri)
  @properties = args[:properties] if args.key?(:properties)
  @py_file_uris = args[:py_file_uris] if args.key?(:py_file_uris)
  @runtime_version = args[:runtime_version] if args.key?(:runtime_version)
end