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 DseLineStringIterator

DseLineStringIterator¶

struct DseLineStringIterator¶

Public Functions

DseLineStringIterator *dse_line_string_iterator_new()¶

Creates a new line string iterator.

See also

dse_line_string_iterator_free()

Returns

Returns an iterator that must be freed.

void dse_line_string_iterator_free(DseLineStringIterator *iterator)¶

Frees a line string iterator instance.

Parameters

iterator – [in]

CassError dse_line_string_iterator_reset(DseLineStringIterator *iterator, const CassValue *value)¶

Resets a line string iterator so that it can be reused to process a binary representation.

Parameters
  • iterator – [in] the iterator to reset

  • value – [in] binary representation of the line string

Returns

CASS_OK if successful, otherwise an error occurred.

CassError dse_line_string_iterator_reset_with_wkt(DseLineStringIterator *iterator, const char *wkt)¶

Resets a line string iterator so that it can be reused to parse WKT.

Note

The wkt string must remain allocated throughout the lifetime of the iterator since the iterator traverses the string without copying it.

Parameters
  • iterator – [in] the iterator to reset

  • wkt – [in] WKT representation of the line string

Returns

CASS_OK if successful, otherwise an error occurred.

CassError dse_line_string_iterator_reset_with_wkt_n(DseLineStringIterator *iterator, const char *wkt, size_t wkt_length)¶

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

Note

The wkt string must remain allocated throughout the lifetime of the iterator since the iterator traverses the string without copying it.

Parameters
  • iterator – [in] the iterator to reset

  • wkt – [in] WKT representation (string) of the line string

  • wkt_length – [in] length of wkt string

Returns

CASS_OK if successful, otherwise an error occurred.

cass_uint32_t dse_line_string_iterator_num_points(const DseLineStringIterator *iterator)¶

Gets the number of points in the line string.

Parameters

iterator – [in]

Returns

The number of points in the line string.

CassError dse_line_string_iterator_next_point(DseLineStringIterator *iterator, cass_double_t *x, cass_double_t *y)¶

Gets the next point in the line string.

Parameters
  • iterator – [in]

  • x – [out]

  • y – [out]

Returns

CASS_OK if successful, otherwise an error occurred.

PREVIOUS
DseLineString
NEXT
DsePolygon
  • 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