Graph array builder for constructing an array of elements.

Functions

DseGraphArray *

dse_graph_array_new

( )

Creates a new instance of graph array.

void

dse_graph_array_free

( DseGraphArray * array )

Frees a graph array instance.

Parameters:
Name Type Details
in array DseGraphArray *
void

dse_graph_array_reset

( DseGraphArray * array )

Reset a graph array. This function must be called after previously finishing an array (DseGraphArray::dse_graph_array_finish). This can be used to resuse an instance of DseGraphArray to create multiple arrays.

Parameters:
Name Type Details
in array DseGraphArray *
void

dse_graph_array_finish

( DseGraphArray * array )

Finish a graph array. This function must be called before adding an array to another object, array or binding to a statement.

Parameters:
Name Type Details
in array DseGraphArray *
CassError

dse_graph_array_add_null

( DseGraphArray * array )

Add null to an array.

Parameters:
Name Type Details
in array DseGraphArray *
Returns:
Type Details
CassError

CASS_OK if successful, otherwise an error occurred.

CassError

dse_graph_array_add_bool

( DseGraphArray * array, cass_bool_t value )

Add boolean to an array.

Parameters:
Name Type Details
in array DseGraphArray *
in value cass_bool_t
Returns:
Type Details
CassError

CASS_OK if successful, otherwise an error occurred.

CassError

dse_graph_array_add_int32

( DseGraphArray * array, cass_int32_t value )

Add integer (32-bit) to an array.

Parameters:
Name Type Details
in array DseGraphArray *
in value cass_int32_t
Returns:
Type Details
CassError

CASS_OK if successful, otherwise an error occurred.

CassError

dse_graph_array_add_int64

( DseGraphArray * array, cass_int64_t value )

Add integer (64-bit) to an array.

Parameters:
Name Type Details
in array DseGraphArray *
in value cass_int64_t
Returns:
Type Details
CassError

CASS_OK if successful, otherwise an error occurred.

CassError

dse_graph_array_add_double

( DseGraphArray * array, cass_double_t value )

Add double to an array.

Parameters:
Name Type Details
in array DseGraphArray *
in value cass_double_t
Returns:
Type Details
CassError

CASS_OK if successful, otherwise an error occurred.

CassError

dse_graph_array_add_string

( DseGraphArray * array, const char * value )

Add string to an array.

Parameters:
Name Type Details
in array DseGraphArray *
in value const char *
Returns:
Type Details
CassError

CASS_OK if successful, otherwise an error occurred.

CassError

dse_graph_array_add_string_n

( DseGraphArray * array, const char * value, size_t value_length )

Same as DseGraphArray::dse_graph_array_add_string, but with lengths for string parameters.

Parameters:
Name Type Details
in array DseGraphArray *
in value const char *
in value_length size_t
Returns:
Type Details
CassError

same as DseGraphArray::dse_graph_array_add_string

CassError

dse_graph_array_add_object

( DseGraphArray * array, const DseGraphObject * value )

Add object to an array.

Parameters:
Name Type Details
in array DseGraphArray *
in value const DseGraphObject *
Returns:
Type Details
CassError

CASS_OK if successful, otherwise an error occurred.

CassError

dse_graph_array_add_array

( DseGraphArray * array, const DseGraphArray * value )

Add array to an array.

Parameters:
Name Type Details
in array DseGraphArray *
in value const DseGraphArray *
Returns:
Type Details
CassError

CASS_OK if successful, otherwise an error occurred.

CassError

dse_graph_array_add_point

( DseGraphArray * array, cass_double_t x, cass_double_t y )

Add point geometric type to an array.

Parameters:
Name Type Details
in array DseGraphArray *
in x cass_double_t
in y cass_double_t
Returns:
Type Details
CassError

CASS_OK if successful, otherwise an error occurred.

CassError

dse_graph_array_add_line_string

( DseGraphArray * array, const DseLineString * value )

Add line string geometric type to an array.

Parameters:
Name Type Details
in array DseGraphArray *
in value const DseLineString *
Returns:
Type Details
CassError

CASS_OK if successful, otherwise an error occurred.

CassError

dse_graph_array_add_polygon

( DseGraphArray * array, const DsePolygon * value )

Add polygon geometric type to an array.

Parameters:
Name Type Details
in array DseGraphArray *
in value const DsePolygon *
Returns:
Type Details
CassError

CASS_OK if successful, otherwise an error occurred.