SparkSqlBatch.php 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?php
  2. /*
  3. * Copyright 2014 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. namespace Google\Service\Dataproc;
  18. class SparkSqlBatch extends \Google\Collection
  19. {
  20. protected $collection_key = 'jarFileUris';
  21. /**
  22. * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
  23. *
  24. * @var string[]
  25. */
  26. public $jarFileUris;
  27. /**
  28. * Required. The HCFS URI of the script that contains Spark SQL queries to
  29. * execute.
  30. *
  31. * @var string
  32. */
  33. public $queryFileUri;
  34. /**
  35. * Optional. Mapping of query variable names to values (equivalent to the
  36. * Spark SQL command: SET name="value";).
  37. *
  38. * @var string[]
  39. */
  40. public $queryVariables;
  41. /**
  42. * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
  43. *
  44. * @param string[] $jarFileUris
  45. */
  46. public function setJarFileUris($jarFileUris)
  47. {
  48. $this->jarFileUris = $jarFileUris;
  49. }
  50. /**
  51. * @return string[]
  52. */
  53. public function getJarFileUris()
  54. {
  55. return $this->jarFileUris;
  56. }
  57. /**
  58. * Required. The HCFS URI of the script that contains Spark SQL queries to
  59. * execute.
  60. *
  61. * @param string $queryFileUri
  62. */
  63. public function setQueryFileUri($queryFileUri)
  64. {
  65. $this->queryFileUri = $queryFileUri;
  66. }
  67. /**
  68. * @return string
  69. */
  70. public function getQueryFileUri()
  71. {
  72. return $this->queryFileUri;
  73. }
  74. /**
  75. * Optional. Mapping of query variable names to values (equivalent to the
  76. * Spark SQL command: SET name="value";).
  77. *
  78. * @param string[] $queryVariables
  79. */
  80. public function setQueryVariables($queryVariables)
  81. {
  82. $this->queryVariables = $queryVariables;
  83. }
  84. /**
  85. * @return string[]
  86. */
  87. public function getQueryVariables()
  88. {
  89. return $this->queryVariables;
  90. }
  91. }
  92. // Adding a class alias for backwards compatibility with the previous class name.
  93. class_alias(SparkSqlBatch::class, 'Google_Service_Dataproc_SparkSqlBatch');