Click or drag to resize
SimpleGraphStatement Class
Represents a graph query.
Inheritance Hierarchy
SystemObject
  Dse.GraphGraphStatement
    Dse.GraphSimpleGraphStatement

Namespace: Dse.Graph
Assembly: Dse (in Dse.dll) Version: 1.0.0.0
Syntax
C#
public class SimpleGraphStatement : GraphStatement

The SimpleGraphStatement type exposes the following members.

Constructors
  NameDescription
Public methodSimpleGraphStatement(String)
Creates a new instance of SimpleGraphStatement using a query with no parameters.
Public methodCode exampleSimpleGraphStatement(IDictionaryString, Object, String)
Creates a new instance of SimpleGraphStatement using a query with named parameters.
Public methodCode exampleSimpleGraphStatement(String, Object)
Creates a new instance of SimpleGraphStatement using a query with named parameters.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
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.

(Inherited from GraphStatement.)
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.

(Inherited from GraphStatement.)
Public methodSetGraphName
Sets the graph name to use in graph queries. If you don't call this method, it is left unset.
(Inherited from GraphStatement.)
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.

(Inherited from GraphStatement.)
Public methodSetGraphSource
Sets the graph traversal source name to use in graph queries. If you don't call this method, it defaults to Source.
(Inherited from GraphStatement.)
Public methodSetGraphSourceAnalytics
Sets the graph source to the server-defined analytic traversal source ("a") for this statement.
(Inherited from GraphStatement.)
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.

(Inherited from GraphStatement.)
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.

(Inherited from GraphStatement.)
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.

(Inherited from GraphStatement.)
Public methodSetTimestamp
Sets the timestamp associated with this query.
(Inherited from GraphStatement.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyConsistencyLevel
Returns the consistency level to use for this statement.
(Inherited from GraphStatement.)
Public propertyGraphAlias (Inherited from GraphStatement.)
Public propertyGraphLanguage
Gets the graph language to use with this statement.
(Inherited from GraphStatement.)
Public propertyGraphName
Gets the graph name to use with this statement.
(Inherited from GraphStatement.)
Public propertyGraphReadConsistencyLevel
Gets the consistency level used for read graph queries.
(Inherited from GraphStatement.)
Public propertyGraphSource
Gets the graph traversal source name to use with this statement.
(Inherited from GraphStatement.)
Public propertyGraphWriteConsistencyLevel
Gets the consistency level used for write graph queries.
(Inherited from GraphStatement.)
Public propertyIsSystemQuery
Determines whether this statement is marked as a system query.
(Inherited from GraphStatement.)
Public propertyQuery
The underlying query string
Public propertyReadTimeoutMillis
Gets the ReadTimeout for the statement that, when is different than 0, overrides ReadTimeoutMillis.

Use Infinite to disable timeouts for this Statement.

(Inherited from GraphStatement.)
Public propertyTimestamp
Gets the default timestamp for this query.
(Inherited from GraphStatement.)
Public propertyValues
Values object used for parameter substitution in the query string
Public propertyValuesDictionary
Values dictionary used for parameter substitution in the query string
Top
See Also