bigquery  v2
Public Member Functions | Static Public Member Functions | List of all members
google_bigquery_api::TimePartitioning Class Reference

#include <time_partitioning.h>

Inheritance diagram for google_bigquery_api::TimePartitioning:

Public Member Functions

 TimePartitioning (const Json::Value &storage)
 
 TimePartitioning (Json::Value *storage)
 
virtual ~TimePartitioning ()
 
const StringPiece GetTypeName () const
 
bool has_expiration_ms () const
 
void clear_expiration_ms ()
 
int64 get_expiration_ms () const
 
void set_expiration_ms (int64 value)
 
bool has_field () const
 
void clear_field ()
 
const StringPiece get_field () const
 
void set_field (const StringPiece &value)
 
bool has_require_partition_filter () const
 
void clear_require_partition_filter ()
 
bool get_require_partition_filter () const
 
void set_require_partition_filter (bool value)
 
bool has_type () const
 
void clear_type ()
 
const StringPiece get_type () const
 
void set_type (const StringPiece &value)
 

Static Public Member Functions

static TimePartitioningNew ()
 

Detailed Description

No description provided.

Constructor & Destructor Documentation

◆ TimePartitioning() [1/2]

google_bigquery_api::TimePartitioning::TimePartitioning ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ TimePartitioning() [2/2]

google_bigquery_api::TimePartitioning::TimePartitioning ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ ~TimePartitioning()

google_bigquery_api::TimePartitioning::~TimePartitioning ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_expiration_ms()

void google_bigquery_api::TimePartitioning::clear_expiration_ms ( )
inline

Clears the 'expirationMs' attribute.

◆ clear_field()

void google_bigquery_api::TimePartitioning::clear_field ( )
inline

Clears the 'field' attribute.

◆ clear_require_partition_filter()

void google_bigquery_api::TimePartitioning::clear_require_partition_filter ( )
inline

Clears the 'requirePartitionFilter' attribute.

◆ clear_type()

void google_bigquery_api::TimePartitioning::clear_type ( )
inline

Clears the 'type' attribute.

◆ get_expiration_ms()

int64 google_bigquery_api::TimePartitioning::get_expiration_ms ( ) const
inline

Get the value of the 'expirationMs' attribute.

◆ get_field()

const StringPiece google_bigquery_api::TimePartitioning::get_field ( ) const
inline

Get the value of the 'field' attribute.

◆ get_require_partition_filter()

bool google_bigquery_api::TimePartitioning::get_require_partition_filter ( ) const
inline

Get the value of the 'requirePartitionFilter' attribute.

◆ get_type()

const StringPiece google_bigquery_api::TimePartitioning::get_type ( ) const
inline

Get the value of the 'type' attribute.

◆ GetTypeName()

const StringPiece google_bigquery_api::TimePartitioning::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_bigquery_api::TimePartitioning

◆ has_expiration_ms()

bool google_bigquery_api::TimePartitioning::has_expiration_ms ( ) const
inline

Determine if the 'expirationMs' attribute was set.

Returns
true if the 'expirationMs' attribute was set.

◆ has_field()

bool google_bigquery_api::TimePartitioning::has_field ( ) const
inline

Determine if the 'field' attribute was set.

Returns
true if the 'field' attribute was set.

◆ has_require_partition_filter()

bool google_bigquery_api::TimePartitioning::has_require_partition_filter ( ) const
inline

Determine if the 'requirePartitionFilter' attribute was set.

Returns
true if the 'requirePartitionFilter' attribute was set.

◆ has_type()

bool google_bigquery_api::TimePartitioning::has_type ( ) const
inline

Determine if the 'type' attribute was set.

Returns
true if the 'type' attribute was set.

◆ New()

TimePartitioning * google_bigquery_api::TimePartitioning::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_expiration_ms()

void google_bigquery_api::TimePartitioning::set_expiration_ms ( int64  value)
inline

Change the 'expirationMs' attribute.

[Optional] Number of milliseconds for which to keep the storage for partitions in the table. The storage in a partition will have an expiration time of its partition time plus this value.

Parameters
[in]valueThe new value.

◆ set_field()

void google_bigquery_api::TimePartitioning::set_field ( const StringPiece &  value)
inline

Change the 'field' attribute.

[Beta] [Optional] If not set, the table is partitioned by pseudo column, referenced via either '_PARTITIONTIME' as TIMESTAMP type, or '_PARTITIONDATE' as DATE type. If field is specified, the table is instead partitioned by this field. The field must be a top-level TIMESTAMP or DATE field. Its mode must be NULLABLE or REQUIRED.

Parameters
[in]valueThe new value.

◆ set_require_partition_filter()

void google_bigquery_api::TimePartitioning::set_require_partition_filter ( bool  value)
inline

Change the 'requirePartitionFilter' attribute.

Parameters
[in]valueThe new value.

◆ set_type()

void google_bigquery_api::TimePartitioning::set_type ( const StringPiece &  value)
inline

Change the 'type' attribute.

[Required] The only type supported is DAY, which will generate one partition per day.

Parameters
[in]valueThe new value.

The documentation for this class was generated from the following files: