SparkseePython3 6.1.0
sparksee.Attribute Class Reference

Attribute data class. More...

Public Member Functions

 get_size (self)
 Gets the number of different values.
 get_id (self)
 Gets the Sparksee attribute identifier.
 get_type_id (self)
 Gets the Sparksee type identifier.
 is_array_attribute (self)
 Check if it's an array attribute.
 get_count (self)
 Gets the number of non-NULL values.
 is_session_attribute (self)
 Check if it's a session attribute or a persistent one.
 get_data_type (self)
 Gets the data type.
 get_kind (self)
 Gets the attribute kind.
 get_default_value (self)
 Gets the default value for this attribute.
 get_array_size (self)
 Gets the number of elements in the array.
 get_name (self)
 Gets the unique attribute name.

Static Public Attributes

int INVALID_ATTRIBUTE = 0
 Invalid attribute identifier constant.

Detailed Description

Attribute data class.

It contains information about an attribute.

Author
Sparsity Technologies http://www.sparsity-technologies.com

Member Function Documentation

◆ get_array_size()

sparksee.Attribute.get_array_size ( self)

Gets the number of elements in the array.

Returns
The size of the array

◆ get_count()

sparksee.Attribute.get_count ( self)

Gets the number of non-NULL values.

Returns
The number of non-NULL values.

◆ get_data_type()

sparksee.Attribute.get_data_type ( self)

Gets the data type.

Returns
The DataType.

◆ get_default_value()

sparksee.Attribute.get_default_value ( self)

Gets the default value for this attribute.

Returns
A new Value instance with the default value, or NULL if none is set.

◆ get_id()

sparksee.Attribute.get_id ( self)

Gets the Sparksee attribute identifier.

Returns
The Sparksee attribute identifier.

◆ get_kind()

sparksee.Attribute.get_kind ( self)

Gets the attribute kind.

Returns
The AttributeKind.

◆ get_name()

sparksee.Attribute.get_name ( self)

Gets the unique attribute name.

Returns
The unique attribute name.

◆ get_size()

sparksee.Attribute.get_size ( self)

Gets the number of different values.

Returns
The number of different values.

◆ get_type_id()

sparksee.Attribute.get_type_id ( self)

Gets the Sparksee type identifier.

Returns
The Sparksee type identifier.

◆ is_array_attribute()

sparksee.Attribute.is_array_attribute ( self)

Check if it's an array attribute.

Returns
True if it's an array attribute, or false otherwise.

◆ is_session_attribute()

sparksee.Attribute.is_session_attribute ( self)

Check if it's a session attribute or a persistent one.

Returns
True if it's a session attribute, or false otherwise.