Click or drag to resize
IGraphStatement Interface
Represents a graph statement.

Namespace: Dse.Graph
Assembly: Dse (in Dse.dll) Version: 2.2.0
Syntax
C#
public interface IGraphStatement

The IGraphStatement type exposes the following members.

Methods
  NameDescription
Public methodSetConsistencyLevel
Sets the consistency level to use for this statement.

This setting will affect the general consistency when executing the gremlin query. However executing a gremlin query on the server side is going to involve the execution of CQL queries to the persistence engine that is Cassandra. Those queries can be both reads and writes and both will have a settable consistency level. Setting only this property will indicate to the server to use this consistency level for both reads and writes in Cassandra. Read or write consistency level can be set separately with respectively SetGraphReadConsistencyLevel(ConsistencyLevel) and SetGraphWriteConsistencyLevel(ConsistencyLevel) will override the consistency set here.

Public methodSetGraphLanguage
Sets the graph language to use with this statement.

This property is not required; if it is not set, the default Language will be used when executing the statement.

Public methodSetGraphName
Sets the graph name to use in graph queries. If you don't call this method, it is left unset.
Public methodSetGraphReadConsistencyLevel
Sets the consistency level used for the graph read query.

This setting will override the consistency level set with SetConsistencyLevel(ConsistencyLevel) only for the READ part of the graph query.

Public methodSetGraphSource
Sets the graph traversal source name to use in graph queries. If you don't call this method, it defaults to Source.
Public methodSetGraphSourceAnalytics
Sets the graph source to the server-defined analytic traversal source ("a") for this statement.
Public methodSetGraphWriteConsistencyLevel
Sets the consistency level used for the graph write query.

This setting will override the consistency level set with SetConsistencyLevel(ConsistencyLevel) only for the WRITE part of the graph query.

Public methodSetReadTimeoutMillis
Sets the per-host read timeout in milliseconds for this statement.

Use Infinite to disable timeouts for this Statement.

Use zero to use the default value specified in the ReadTimeoutMillis.

Public methodSetSystemQuery
Forces this statement to use no graph name, even if a default graph name was defined with SetName(String).

If a graph name was previously defined on this statement, it will be reset.

Public methodSetTimestamp
Sets the timestamp associated with this query.
Public methodToIStatement
Returns the IStatement representation of the Graph statement.
Top
Properties
  NameDescription
Public propertyConsistencyLevel
Returns the consistency level to use for this statement.
Public propertyGraphLanguage
Gets the graph language to use with this statement.
Public propertyGraphName
Gets the graph name to use with this statement.
Public propertyGraphReadConsistencyLevel
Gets the consistency level used for read graph queries.
Public propertyGraphSource
Gets the graph traversal source name to use with this statement.
Public propertyGraphWriteConsistencyLevel
Gets the consistency level used for write graph queries.
Public propertyIsSystemQuery
Determines whether this statement is marked as a system query.
Public propertyReadTimeoutMillis
Gets the ReadTimeout for the statement that, when is different than 0, overrides ReadTimeoutMillis.

Use Infinite to disable timeouts for this Statement.

Public propertyTimestamp
Gets the default timestamp for this query.
Top
See Also