Click or drag to resize

GraphOptions Class

The default graph options to use for a DSE cluster.

These options will be used for all graph statements sent to the cluster, unless they have been explicitly overridden at the statement level.

Inheritance Hierarchy
SystemObject
  Dse.GraphGraphOptions

Namespace:  Dse.Graph
Assembly:  Dse (in Dse.dll) Version: 2.9.0
Syntax
C#
public class GraphOptions

The GraphOptions type exposes the following members.

Constructors
  NameDescription
Public methodGraphOptions
Creates a new instance of GraphOptions.
Top
Properties
  NameDescription
Public propertyLanguage
Gets the graph language to use in graph queries.
Public propertyName
Gets the graph name to use in graph queries.
Public propertyReadConsistencyLevel
Gets the consistency level used for read queries
Public propertyReadTimeoutMillis
Gets the value that overrides the default per-host read timeout in milliseconds for all graph queries.

Default: Timeout.Infinite (-1).

Public propertySource
Gets the graph traversal source name in graph queries.
Public propertyWriteConsistencyLevel
Gets the consistency level used for read queries
Top
Methods
  NameDescription
Public methodSetLanguage
Sets the graph language to use in graph queries. If you don't call this method, it defaults to DefaultLanguage.
Public methodSetName
Sets the graph name to use in graph queries.
Public methodSetReadConsistencyLevel
Sets the consistency level for the read graph queries.
Public methodSetReadTimeoutMillis
Sets the default per-host read timeout in milliseconds for all graph queries.

When setting a value of less than or equals to zero (Infinite), it will use an infinite timeout.

Public methodSetSource
Sets the graph traversal source name to use in graph queries. If you don't call this method, it defaults to DefaultSource.
Public methodSetSourceAnalytics
Sets the graph source to the server-defined analytic traversal source ('a')
Public methodSetWriteConsistencyLevel
Sets the consistency level for the write graph queries.
Top
Fields
  NameDescription
Public fieldStatic memberDefaultLanguage
Default value for graph language.
Public fieldStatic memberDefaultReadTimeout
Default value for read timeout.
Public fieldStatic memberDefaultSource
Default value for graph source.
Top
See Also