Scylla Documentation Logo Documentation
  • Server
    • Scylla Open Source
    • Scylla Enterprise
    • Scylla Alternator
  • Cloud
    • Scylla Cloud
    • Scylla Cloud Docs
  • Tools
    • Scylla Manager
    • Scylla Monitoring Stack
    • Scylla Operator
  • Drivers
    • CQL Drivers
    • DynamoDB Drivers
Download
Menu
Scylla C/C++ Driver Documentation API Documentation CassFunctionMeta

CassFunctionMeta¶

struct CassFunctionMeta¶

Requires Apache Cassandra: 2.2+

Public Functions

void cass_function_meta_name(const CassFunctionMeta *function_meta, const char **name, size_t *name_length)¶

Gets the name of the function.

Requires Apache Cassandra: 2.2+

Parameters
  • function_meta – [in]

  • name – [out]

  • name_length – [out]

void cass_function_meta_full_name(const CassFunctionMeta *function_meta, const char **full_name, size_t *full_name_length)¶

Gets the full name of the function. The full name includes the function’s name and the function’s signature: “name(type1 type2.. typeN)”.

Requires Apache Cassandra: 2.2+

Parameters
  • function_meta – [in]

  • full_name – [out]

  • full_name_length – [out]

void cass_function_meta_body(const CassFunctionMeta *function_meta, const char **body, size_t *body_length)¶

Gets the body of the function.

Requires Apache Cassandra: 2.2+

Parameters
  • function_meta – [in]

  • body – [out]

  • body_length – [out]

void cass_function_meta_language(const CassFunctionMeta *function_meta, const char **language, size_t *language_length)¶

Gets the language of the function.

Requires Apache Cassandra: 2.2+

Parameters
  • function_meta – [in]

  • language – [out]

  • language_length – [out]

cass_bool_t cass_function_meta_called_on_null_input(const CassFunctionMeta *function_meta)¶

Gets whether a function is called on “null”.

Requires Apache Cassandra: 2.2+

Parameters

function_meta – [in]

Returns

cass_true if a function is called on null, otherwise cass_false.

size_t cass_function_meta_argument_count(const CassFunctionMeta *function_meta)¶

Gets the number of arguments this function takes.

Requires Apache Cassandra: 2.2+

Parameters

function_meta – [in]

Returns

The number of arguments.

CassError cass_function_meta_argument(const CassFunctionMeta *function_meta, size_t index, const char **name, size_t *name_length, const CassDataType **type)¶

Gets the function’s argument name and type for the provided index.

Requires Apache Cassandra: 2.2+

Parameters
  • function_meta – [in]

  • index – [in]

  • name – [out]

  • name_length – [out]

  • type – [out]

Returns

CASS_OK if successful, otherwise an error occurred

const CassDataType *cass_function_meta_argument_type_by_name(const CassFunctionMeta *function_meta, const char *name)¶

Gets the function’s argument and type for the provided name.

Requires Apache Cassandra: 2.2+

Parameters
  • function_meta – [in]

  • name – [in]

Returns

A data type. NULL if the argument does not exist.

const CassDataType *cass_function_meta_argument_type_by_name_n(const CassFunctionMeta *function_meta, const char *name, size_t name_length)¶

Same as cass_function_meta_argument_type_by_name(), but with lengths for string parameters.

Requires Apache Cassandra: 2.2+

See also

cass_function_meta_argument_type_by_name()

Parameters
  • function_meta – [in]

  • name – [in]

  • name_length – [in]

Returns

same as cass_function_meta_argument_type_by_name()

const CassDataType *cass_function_meta_return_type(const CassFunctionMeta *function_meta)¶

Gets the return type of the function.

Requires Apache Cassandra: 2.2+

Parameters

function_meta – [in]

Returns

The data type returned by the function.

const CassValue *cass_function_meta_field_by_name(const CassFunctionMeta *function_meta, const char *name)¶

Gets a metadata field for the provided name. Metadata fields allow direct access to the column data found in the underlying “functions” metadata table.

Requires Apache Cassandra: 2.2+

Parameters
  • function_meta – [in]

  • name – [in]

Returns

A metadata field value. NULL if the field does not exist.

const CassValue *cass_function_meta_field_by_name_n(const CassFunctionMeta *function_meta, const char *name, size_t name_length)¶

Same as cass_function_meta_field_by_name(), but with lengths for string parameters.

Requires Apache Cassandra: 2.2+

See also

cass_function_meta_field_by_name()

Parameters
  • function_meta – [in]

  • name – [in]

  • name_length – [in]

Returns

same as cass_function_meta_field_by_name()

CassIterator *cass_iterator_fields_from_function_meta(const CassFunctionMeta *function_meta)¶

Creates a new fields iterator for the specified function metadata. Metadata fields allow direct access to the column data found in the underlying “functions” metadata table. This can be used to iterate those metadata field entries.

Requires Apache Cassandra: 2.2+

See also

cass_iterator_get_meta_field()

See also

cass_iterator_free()

Parameters

function_meta – [in]

Returns

A new iterator that must be freed.

PREVIOUS
CassExecProfile
NEXT
CassFuture
  • master
    • master
  • C/C++ Driver for ScyllaDB
  • API Documentation
    • CassAggregateMeta
    • CassAuthenticator
    • CassBatch
    • CassCluster
    • CassCollection
    • CassColumnMeta
    • CassCustomPayload
    • CassDataType
    • CassErrorResult
    • CassExecProfile
    • CassFunctionMeta
    • CassFuture
    • CassIndexMeta
    • CassInet
    • CassIterator
    • CassKeyspaceMeta
    • CassMaterializedViewMeta
    • CassMetrics
    • CassNode
    • CassPrepared
    • CassResult
    • CassRetryPolicy
    • CassRow
    • CassSchemaMeta
    • CassSession
    • CassSsl
    • CassStatement
    • CassTableMeta
    • CassTimestampGen
    • CassTuple
    • CassUserType
    • CassUuid
    • CassUuidGen
    • CassValue
    • CassVersion
    • DseDateRange
    • DseDateRangeBound
    • DseLineString
    • DseLineStringIterator
    • DsePolygon
    • DsePolygonIterator
  • Features
    • Basics
      • Batches
      • Binding Parameters
      • Client-side timestamps
      • Consistency
      • Data Types
      • The date and time Types
      • Futures
      • Handling Results
      • Keyspaces
      • Prepared Statements
      • Schema Metadata
      • Tuples
      • User-Defined Types (UDTs)
      • UUIDs
    • Building
    • Client Configuration
    • Cloud
    • Configuration
      • Retry policies
    • Execution Profiles
    • FAQ
    • Installation
    • Logging
    • Metrics
    • Scylla Specific Features
    • Security
      • SSL
    • Testing
      • Cassandra Cluster Manager (CCM)
    • Tracing
  • DSE Features
    • Authentication
    • Geospatial types
  • Create an issue
  • Edit this page
Logo
Docs Contact Us About Us
Mail List Icon Slack Icon
© 2022, ScyllaDB. All rights reserved.
Last updated on 18 October 2022.
Powered by Sphinx 4.3.2 & ScyllaDB Theme 1.3.1