Was this page helpful?
ScyllaDB Python Driver is available under the Apache v2 License. ScyllaDB Python Driver is a fork of DataStax Python Driver. See Copyright here.
Caution
You're viewing documentation for a deprecated version of Scylla Python Driver. Switch to the latest stable version.
cassandra.datastax.graph
- Graph Statements, Options, and Row Factories
cassandra.datastax.graph
- Graph Statements, Options, and Row Factories¶returns the JSON string value of graph results
Returns a Result
object that can load graph results and produce specific types.
The Result JSON is deserialized and unpacked from the top-level ‘result’ dict.
Like graph_result_row_factory()
, except known element types (Vertex
, Edge
) are
converted to their simplified objects. Some low-level metadata is shed in this conversion. Unknown result types are
still returned as Result
.
Row factory to deserialize GraphSON2 results.
Row factory to deserialize GraphSON3 results.
Wraps a value to be explicitly serialized as a graphson Int.
Wraps a value to be explicitly serialized as a graphson Bigint.
Wraps a value to be explicitly serialized as a graphson Smallint.
Wraps a value to be explicitly serialized as a graphson Float.
Wraps a value to be explicitly serialized as a graphson Double.
GraphSON1
GraphSON2
GraphSON3
Options for DSE Graph Query handler.
name of the targeted graph.
choose the graph traversal source, configured on the server side.
the language used in the queries (default “gremlin-groovy”)
read cassandra.ConsistencyLevel for graph queries (if distinct from session default). Setting this overrides the native Statement.consistency_level for read operations from Cassandra persistence
write cassandra.ConsistencyLevel for graph queries (if distinct from session default). Setting this overrides the native Statement.consistency_level for write operations to Cassandra persistence.
True if graph_source
is set to the server-defined analytics traversal source (‘a’)
True if graph_source
is set to the server-defined graph traversal source (‘g’)
Sets graph_source
to the server-defined default traversal source (‘default’)
Sets graph_source
to the server-defined analytic traversal source (‘a’)
Sets graph_source
to the server-defined graph traversal source (‘g’)
Simple graph statement for Session.execute_graph()
.
Takes the same parameters as SimpleStatement
.
query_string should be a literal CQL statement with the exception
of parameter placeholders that will be filled through the
parameters argument of Session.execute()
.
See Statement
attributes for a description of the other parameters.
Represents deserialized graph results. Property and item getters are provided for convenience.
Deserialized value from the result
Return a Vertex
parsed from this result
Raises TypeError if parsing fails (i.e. the result structure is not valid).
Return a Edge
parsed from this result
Raises TypeError if parsing fails (i.e. the result structure is not valid).
Return a Path
parsed from this result
Raises TypeError if parsing fails (i.e. the result structure is not valid).
Represents a Vertex element from a graph query.
Vertex properties
are extracted into a dict
of property names to list of VertexProperty
(list
because they are always encoded that way, and sometimes have multiple cardinality; VertexProperty because sometimes
the properties themselves have property maps).
Vertex properties have a top-level value and an optional dict
of properties.
label of the property
Value of the property
dict of properties attached to the property
Represents an Edge element from a graph query.
Attributes match initializer parameters.
Represents a graph path.
Labels list is taken verbatim from the results.
Objects are either Result
or Vertex
/Edge
for recognized types
List of labels in the path
List of objects in the path
Represents a collection of tokens for more concise Traversal definitions.
Serialize python objects to graphson types.
Deserialize graphson1 types to python objects.
GraphSON2 Reader that parse json and deserialize to python objects.
extra_deserializer_map – map from GraphSON type tag to deserializer instance implementing deserialize
Read and deserialize json_data
.
Deserialize GraphSON type-tagged dict values into objects mapped in self.deserializers
Was this page helpful?
ScyllaDB Python Driver is available under the Apache v2 License. ScyllaDB Python Driver is a fork of DataStax Python Driver. See Copyright here.
cassandra
- Exceptions and Enumscassandra.cluster
- Clusters and Sessionscassandra.policies
- Load balancing and Failure Handling Policiescassandra.auth
- Authenticationcassandra.graph
- Graph Statements, Options, and Row Factoriescassandra.metadata
- Schema and Ring Topologycassandra.metrics
- Performance Metricscassandra.query
- Prepared Statements, Batch Statements, Tracing, and Row Factoriescassandra.pool
- Hosts and Connection Poolscassandra.protocol
- Protocol Featurescassandra.encoder
- Encoders for non-prepared Statementscassandra.decoder
- Data Return Formatscassandra.concurrent
- Utilities for Concurrent Statement Executioncassandra.connection
- Low Level Connection Infocassandra.util
- Utilitiescassandra.timestamps
- Timestamp Generationcassandra.io.asyncioreactor
- asyncio
Event Loopcassandra.io.asyncorereactor
- asyncore
Event Loopcassandra.io.eventletreactor
- eventlet
-compatible Connectioncassandra.io.libevreactor
- libev
Event Loopcassandra.io.geventreactor
- gevent
-compatible Event Loopcassandra.io.twistedreactor
- Twisted Event Loopcassandra.cqlengine.models
- Table models for object mappingcassandra.cqlengine.columns
- Column types for object mapping modelscassandra.cqlengine.query
- Query and filter model objectscassandra.cqlengine.connection
- Connection management for cqlenginecassandra.cqlengine.management
- Schema management for cqlenginecassandra.cqlengine.usertype
- Model classes for User Defined Typescassandra.datastax.graph
- Graph Statements, Options, and Row Factoriescassandra.datastax.graph.fluent
cassandra.datastax.graph.fluent.query
cassandra.datastax.graph.fluent.predicates
On this page
cassandra.datastax.graph
- Graph Statements, Options, and Row Factoriessingle_object_row_factory()
graph_result_row_factory()
graph_object_row_factory()
graph_graphson2_row_factory()
graph_graphson3_row_factory()
to_int()
to_bigint()
to_smallint()
to_float()
to_double()
GraphOptions.graph_name
GraphOptions.graph_source
GraphOptions.graph_language
GraphOptions.graph_read_consistency_level
GraphOptions.graph_write_consistency_level
GraphOptions.is_default_source
GraphOptions.is_analytics_source
GraphOptions.is_graph_source
GraphOptions.set_source_default()
GraphOptions.set_source_analytics()
GraphOptions.set_source_graph()
GraphSON1Deserializer.deserialize_date()
GraphSON1Deserializer.deserialize_timestamp()
GraphSON1Deserializer.deserialize_time()
GraphSON1Deserializer.deserialize_duration()
GraphSON1Deserializer.deserialize_int()
GraphSON1Deserializer.deserialize_bigint()
GraphSON1Deserializer.deserialize_double()
GraphSON1Deserializer.deserialize_float()
GraphSON1Deserializer.deserialize_uuid()
GraphSON1Deserializer.deserialize_blob()
GraphSON1Deserializer.deserialize_decimal()
GraphSON1Deserializer.deserialize_point()
GraphSON1Deserializer.deserialize_linestring()
GraphSON1Deserializer.deserialize_polygon()