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

#include <categorical_value.h>

Inheritance diagram for google_bigquery_api::CategoricalValue:

Public Member Functions

 CategoricalValue (const Json::Value &storage)
 
 CategoricalValue (Json::Value *storage)
 
virtual ~CategoricalValue ()
 
const StringPiece GetTypeName () const
 
bool has_category_counts () const
 
void clear_category_counts ()
 
const client::JsonCppArray< CategoryCountget_category_counts () const
 
client::JsonCppArray< CategoryCountmutable_categoryCounts ()
 

Static Public Member Functions

static CategoricalValueNew ()
 

Detailed Description

Representative value of a categorical feature.

Constructor & Destructor Documentation

◆ CategoricalValue() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ CategoricalValue() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~CategoricalValue()

google_bigquery_api::CategoricalValue::~CategoricalValue ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_category_counts()

void google_bigquery_api::CategoricalValue::clear_category_counts ( )
inline

Clears the 'categoryCounts' attribute.

◆ get_category_counts()

const client::JsonCppArray<CategoryCount > google_bigquery_api::CategoricalValue::get_category_counts ( ) const

Get a reference to the value of the 'categoryCounts' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_bigquery_api::CategoricalValue

◆ has_category_counts()

bool google_bigquery_api::CategoricalValue::has_category_counts ( ) const
inline

Determine if the 'categoryCounts' attribute was set.

Returns
true if the 'categoryCounts' attribute was set.

◆ mutable_categoryCounts()

client::JsonCppArray<CategoryCount > google_bigquery_api::CategoricalValue::mutable_categoryCounts ( )

Gets a reference to a mutable value of the 'categoryCounts' property.

Counts of all categories for the categorical feature. If there are more than ten categories, we return top ten (by count) and return one more CategoryCount with category "_OTHER_" and count as aggregate counts of remaining categories.

Returns
The result can be modified to change the attribute value.

◆ New()

CategoricalValue * google_bigquery_api::CategoricalValue::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

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