bigquery
v2
|
#include <routine.h>
Public Member Functions | |
Routine (const Json::Value &storage) | |
Routine (Json::Value *storage) | |
virtual | ~Routine () |
const StringPiece | GetTypeName () const |
bool | has_arguments () const |
void | clear_arguments () |
const client::JsonCppArray< Argument > | get_arguments () const |
client::JsonCppArray< Argument > | mutable_arguments () |
bool | has_creation_time () const |
void | clear_creation_time () |
int64 | get_creation_time () const |
void | set_creation_time (int64 value) |
bool | has_definition_body () const |
void | clear_definition_body () |
const StringPiece | get_definition_body () const |
void | set_definition_body (const StringPiece &value) |
bool | has_description () const |
void | clear_description () |
const StringPiece | get_description () const |
void | set_description (const StringPiece &value) |
bool | has_etag () const |
void | clear_etag () |
const StringPiece | get_etag () const |
void | set_etag (const StringPiece &value) |
bool | has_imported_libraries () const |
void | clear_imported_libraries () |
const client::JsonCppArray< string > | get_imported_libraries () const |
client::JsonCppArray< string > | mutable_importedLibraries () |
bool | has_language () const |
void | clear_language () |
const StringPiece | get_language () const |
void | set_language (const StringPiece &value) |
bool | has_last_modified_time () const |
void | clear_last_modified_time () |
int64 | get_last_modified_time () const |
void | set_last_modified_time (int64 value) |
bool | has_return_type () const |
void | clear_return_type () |
const StandardSqlDataType | get_return_type () const |
StandardSqlDataType | mutable_returnType () |
bool | has_routine_reference () const |
void | clear_routine_reference () |
const RoutineReference | get_routine_reference () const |
RoutineReference | mutable_routineReference () |
bool | has_routine_type () const |
void | clear_routine_type () |
const StringPiece | get_routine_type () const |
void | set_routine_type (const StringPiece &value) |
Static Public Member Functions | |
static Routine * | New () |
A user-defined function or a stored procedure.
|
explicit |
Standard constructor for an immutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
explicit |
Standard constructor for a mutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
virtual |
Standard destructor.
|
inline |
Clears the 'arguments
' attribute.
|
inline |
Clears the 'creationTime
' attribute.
|
inline |
Clears the 'definitionBody
' attribute.
|
inline |
Clears the 'description
' attribute.
|
inline |
Clears the 'etag
' attribute.
|
inline |
Clears the 'importedLibraries
' attribute.
|
inline |
Clears the 'language
' attribute.
|
inline |
Clears the 'lastModifiedTime
' attribute.
|
inline |
Clears the 'returnType
' attribute.
|
inline |
Clears the 'routineReference
' attribute.
|
inline |
Clears the 'routineType
' attribute.
const client::JsonCppArray<Argument > google_bigquery_api::Routine::get_arguments | ( | ) | const |
Get a reference to the value of the 'arguments
' attribute.
|
inline |
Get the value of the 'creationTime
' attribute.
|
inline |
Get the value of the 'definitionBody
' attribute.
|
inline |
Get the value of the 'description
' attribute.
|
inline |
Get the value of the 'etag
' attribute.
|
inline |
Get a reference to the value of the 'importedLibraries
' attribute.
|
inline |
Get the value of the 'language
' attribute.
|
inline |
Get the value of the 'lastModifiedTime
' attribute.
const StandardSqlDataType google_bigquery_api::Routine::get_return_type | ( | ) | const |
Get a reference to the value of the 'returnType
' attribute.
const RoutineReference google_bigquery_api::Routine::get_routine_reference | ( | ) | const |
Get a reference to the value of the 'routineReference
' attribute.
|
inline |
Get the value of the 'routineType
' attribute.
|
inline |
Returns a string denoting the type of this data object.
google_bigquery_api::Routine
|
inline |
Determine if the 'arguments
' attribute was set.
arguments
' attribute was set.
|
inline |
Determine if the 'creationTime
' attribute was set.
creationTime
' attribute was set.
|
inline |
Determine if the 'definitionBody
' attribute was set.
definitionBody
' attribute was set.
|
inline |
Determine if the 'description
' attribute was set.
description
' attribute was set.
|
inline |
Determine if the 'etag
' attribute was set.
etag
' attribute was set.
|
inline |
Determine if the 'importedLibraries
' attribute was set.
importedLibraries
' attribute was set.
|
inline |
Determine if the 'language
' attribute was set.
language
' attribute was set.
|
inline |
Determine if the 'lastModifiedTime
' attribute was set.
lastModifiedTime
' attribute was set.
|
inline |
Determine if the 'returnType
' attribute was set.
returnType
' attribute was set.
|
inline |
Determine if the 'routineReference
' attribute was set.
routineReference
' attribute was set.
|
inline |
Determine if the 'routineType
' attribute was set.
routineType
' attribute was set. client::JsonCppArray<Argument > google_bigquery_api::Routine::mutable_arguments | ( | ) |
Gets a reference to a mutable value of the 'arguments
' property.
Optional.
|
inline |
Gets a reference to a mutable value of the 'importedLibraries
' property.
Optional. If language = "JAVASCRIPT", this field stores the path of the imported JAVASCRIPT libraries.
StandardSqlDataType google_bigquery_api::Routine::mutable_returnType | ( | ) |
Gets a reference to a mutable value of the 'returnType
' property.
Optional if language = "SQL"; required otherwise.
If absent, the return type is inferred from definition_body at query time in each query that references this routine. If present, then the evaluated result will be cast to the specified returned type at query time.
For example, for the functions created with the following statements:
CREATE FUNCTION Add(x FLOAT64, y FLOAT64) RETURNS FLOAT64 AS (x + y);
CREATE FUNCTION Increment(x FLOAT64) AS (Add(x, 1));
CREATE FUNCTION Decrement(x FLOAT64) RETURNS FLOAT64 AS (Add(x, -1));
The return_type is {type_kind: "FLOAT64"}
for Add
and Decrement
, and is absent for Increment
(inferred as FLOAT64 at query time).
Suppose the function Add
is replaced by CREATE OR REPLACE FUNCTION Add(x INT64, y INT64) AS (x + y);
Then the inferred return type of Increment
is automatically changed to INT64 at query time, while the return type of Decrement
remains FLOAT64.
RoutineReference google_bigquery_api::Routine::mutable_routineReference | ( | ) |
Gets a reference to a mutable value of the 'routineReference
' property.
Required. Reference describing the ID of this routine.
|
static |
Creates a new default instance.
|
inline |
Change the 'creationTime
' attribute.
Output only. The time when this routine was created, in milliseconds since the epoch.
[in] | value | The new value. |
|
inline |
Change the 'definitionBody
' attribute.
Required. The body of the routine.
For functions, this is the expression in the AS clause.
If language=SQL, it is the substring inside (but excluding) the parentheses. For example, for the function created with the following statement:
CREATE FUNCTION JoinLines(x string, y string) as (concat(x, "\n", y))
The definition_body is concat(x, "\n", y)
(
is not replaced with linebreak).
If language=JAVASCRIPT, it is the evaluated string in the AS clause. For example, for the function created with the following statement:
CREATE FUNCTION f() RETURNS STRING LANGUAGE js AS 'return "\n";\n'
The definition_body is
return "\n";\n
Note that both
are replaced with linebreaks.
[in] | value | The new value. |
|
inline |
Change the 'description
' attribute.
Optional. [Experimental] The description of the routine if defined.
[in] | value | The new value. |
|
inline |
Change the 'etag
' attribute.
Output only. A hash of this resource.
[in] | value | The new value. |
|
inline |
Change the 'language
' attribute.
Optional. Defaults to "SQL".
[in] | value | The new value. |
|
inline |
Change the 'lastModifiedTime
' attribute.
Output only. The time when this routine was last modified, in milliseconds since the epoch.
[in] | value | The new value. |
|
inline |
Change the 'routineType
' attribute.
Required. The type of routine.
[in] | value | The new value. |