• DataStax C# Driver for Apache Cassandra API Documentation
Search Results for

    Show / Hide Table of Contents
    • Cassandra
      • AesColumnEncryptionPolicy
      • AesColumnEncryptionPolicy.AesKeyAndIV
      • AggregateMetadata
      • AlreadyExistsException
      • AtomicMonotonicTimestampGenerator
      • AtomicMonotonicWinApiTimestampGenerator
      • AuthenticationException
      • BaseColumnEncryptionPolicy<TKey>
      • BaseColumnEncryptionPolicy<TKey>.ColMetadataKey
      • BatchStatement
      • BatchType
      • BigIntegerTypeAdapter
      • BoundStatement
      • Builder
      • BusyPoolException
      • CassandraConnectionStringBuilder
      • ClientOptions
      • Cluster
      • ColumnDesc
      • ColumnEncryptionInvalidTypeError
      • ColumnEncryptionMetadata
      • ColumnTypeCode
      • CompressionType
      • Configuration
      • ConsistencyLevel
      • ConstantReconnectionPolicy
      • ConstantSpeculativeExecutionPolicy
      • CqlColumn
      • CqlVector<T>
      • CustomColumnInfo
      • DCAwareRoundRobinPolicy
      • DataCollectionMetadata
      • DataCollectionMetadata.SortOrder
      • DecimalTypeAdapter
      • DefaultLoadBalancingPolicy
      • DefaultRetryPolicy
      • Diagnostics
      • DowngradingConsistencyRetryPolicy
      • DriverException
      • DriverInternalError
      • Duration
      • DynamicCompositeTypeAdapter
      • EC2MultiRegionTranslator
      • EncryptedValue
      • ExecutionException
      • ExecutionInfo
      • ExponentialReconnectionPolicy
      • Extensions
      • FallthroughRetryPolicy
      • FixedReconnectionPolicy
      • FunctionFailureException
      • FunctionMetadata
      • GraphProtocol
      • Host
      • HostDistance
      • HostsEventArgs
      • HostsEventArgs.Kind
      • HostsEventHandler
      • IAddressTranslator
      • IAuthProvider
      • IAuthenticator
      • ICluster
      • IColumnEncryptionPolicy
      • IColumnInfo
      • IExecutionProfile
      • IExecutionProfileBuilder
      • IExecutionProfileOptions
      • IExtendedRetryPolicy
      • IFrameCompressor
      • IInitializer
      • ILoadBalancingPolicy
      • IReconnectionPolicy
      • IReconnectionSchedule
      • IRequestTracker
      • IRetryPolicy
      • ISession
      • ISessionState
      • ISpeculativeExecutionPlan
      • ISpeculativeExecutionPolicy
      • IStatement
      • ITimestampGenerator
      • ITypeAdapter
      • IdempotenceAwareRetryPolicy
      • IndexMetadata
      • IndexMetadata.IndexKind
      • InitFatalErrorException
      • InvalidConfigurationInQueryException
      • InvalidQueryException
      • InvalidTypeException
      • IsBootstrappingException
      • KeyType
      • KeyspaceMetadata
      • ListColumnInfo
      • LocalDate
      • LocalTime
      • Logger
      • LoggingRetryPolicy
      • MapColumnInfo
      • MaterializedViewMetadata
      • Metadata
      • MetadataSyncOptions
      • MetricsExtensions
      • MonitorReportingOptions
      • NoHostAvailableException
      • NoSpeculativeExecutionPolicy
      • NodeRequestInfo
      • NoneAuthProvider
      • NullTypeAdapter
      • OperationTimedOutException
      • OverloadedException
      • PlainTextAuthProvider
      • Policies
      • PoolingOptions
      • PrepareRequest
      • PreparedQueryNotFoundException
      • PreparedStatement
      • PreparedStatementIdMismatchException
      • ProtocolErrorException
      • ProtocolOptions
      • ProtocolVersion
      • QueryExecutionException
      • QueryOptions
      • QueryProtocolOptions
      • QueryProtocolOptions.QueryFlags
      • QueryTimeoutException
      • QueryTrace
      • QueryTrace.Event
      • QueryValidationException
      • ReadFailureException
      • ReadTimeoutException
      • RegularStatement
      • ReplicationStrategies
      • RequestInvalidException
      • RetryDecision
      • RetryDecision.RetryDecisionType
      • RetryLoadBalancingPolicy
      • RetryLoadBalancingPolicyEventArgs
      • RoundRobinPolicy
      • RoutingKey
      • Row
      • RowSet
      • RowSetMetadata
      • SSLOptions
      • SchemaChangedEventArgs
      • SchemaChangedEventArgs.Kind
      • SchemaChangedEventHandler
      • ServerErrorException
      • Session
      • SessionRequestInfo
      • SetColumnInfo
      • SimpleStatement
      • SocketOptions
      • Statement
      • SyntaxError
      • TableColumn
      • TableMetadata
      • TableOptions
      • TimeUuid
      • ToManyConnectionsPerHost
      • TokenAwarePolicy
      • TraceRetrievalException
      • TruncateException
      • TupleColumnInfo
      • TypeAdapters
      • UdtColumnInfo
      • UdtMap
      • UdtMap<T>
      • UdtMappingDefinitions
      • UnauthorizedException
      • UnavailableException
      • Unset
      • VectorColumnInfo
      • WriteFailureException
      • WriteTimeoutException
    • Cassandra.AppMetrics
      • DriverAppMetricsOptions
    • Cassandra.AppMetrics.MetricTypes
      • IAppMetricsCounter
      • IAppMetricsGauge
      • IAppMetricsMeter
      • IAppMetricsMetric
      • IAppMetricsTimer
    • Cassandra.AppMetrics.MetricValues
      • IAppMetricsHistogramValue
      • IAppMetricsMeterValue
      • IAppMetricsMetricWithValue<T>
      • IAppMetricsTimerValue
    • Cassandra.Data
      • CqlBatchTransaction
      • CqlCommand
      • CqlConnection
      • CqlDataAdapter
      • CqlParameter
      • CqlParameterCollection
      • CqlProviderFactory
      • CqlReader
    • Cassandra.Data.Linq
      • AllowFilteringAttribute
      • Batch
      • ClusteringKeyAttribute
      • ColumnAttribute
      • CompactStorageAttribute
      • CounterAttribute
      • CqlArgumentException
      • CqlCommand
      • CqlConditionalCommand<TEntity>
      • CqlDelete
      • CqlFunction
      • CqlInsert<TEntity>
      • CqlLinqNotSupportedException
      • CqlOperator
      • CqlQueryBase<TEntity>
      • CqlQueryExtensions
      • CqlQuerySingleElement<TEntity>
      • CqlQuery<TEntity>
      • CqlScalar<TEntity>
      • CqlToken
      • CqlUpdate
      • ITable
      • IgnoreAttribute
      • PartitionKeyAttribute
      • SecondaryIndexAttribute
      • SessionExtensions
      • StaticColumnAttribute
      • TableAttribute
      • TableType
      • Table<TEntity>
    • Cassandra.DataStax.Auth
      • DseGssapiAuthProvider
      • DsePlainTextAuthProvider
    • Cassandra.DataStax.Auth.Sspi
      • SspiException
    • Cassandra.DataStax.Graph
      • Direction
      • Edge
      • Element
      • ElementMap
      • EnumWrapper
      • FluentGraphStatement
      • GraphNode
      • GraphOptions
      • GraphResultSet
      • GraphStatement
      • IEdge
      • IElement
      • IGraphNode
      • IGraphStatement
      • IPath
      • IProperty
      • IPropertyWithElement
      • IVertex
      • IVertexProperty
      • Path
      • SimpleGraphStatement
      • TEnum
      • Traverser
      • Vertex
    • Cassandra.DataStax.Graph.Internal
      • IGraphSONDeserializer
      • IGraphSONReader
      • IGraphSONSerializer
      • IGraphSONWriter
    • Cassandra.DataStax.Search
      • DateRange
      • DateRangeBound
      • DateRangePrecision
    • Cassandra.Geometry
      • GeometryBase
      • LineString
      • Point
      • Polygon
    • Cassandra.Mapping
      • AppliedInfo<T>
      • ColumnMap
      • Cql
      • CqlQueryOptions
      • IColumnDefinition
      • ICqlBatch
      • ICqlQueryAsyncClient
      • ICqlQueryClient
      • ICqlWriteAsyncClient
      • ICqlWriteClient
      • IMapper
      • IPage<T>
      • ITypeDefinition
      • Map<TPoco>
      • Mapper
      • MappingConfiguration
      • Mappings
      • PrimaryKeyAttribute
      • SortOrder
      • TableNameAttribute
    • Cassandra.Mapping.Attributes
      • ClusteringKeyAttribute
      • ColumnAttribute
      • CounterAttribute
      • FrozenAttribute
      • FrozenKeyAttribute
      • FrozenValueAttribute
      • IgnoreAttribute
      • PartitionKeyAttribute
      • SecondaryIndexAttribute
      • StaticColumnAttribute
      • TableAttribute
    • Cassandra.Mapping.TypeConversion
      • DefaultTypeConverter
      • EnumStringMapper<T>
      • NullableEnumStringMapper<T>
      • TypeConverter
    • Cassandra.Mapping.Utils
      • MemberInfoExtensions
    • Cassandra.Metrics
      • DriverMetricsOptions
      • IDriverMetrics
      • IMetric
      • IMetricsRegistry<TMetric>
      • NodeMetric
      • NodeMetric.Counters
      • NodeMetric.Gauges
      • NodeMetric.Meters
      • NodeMetric.Timers
      • SessionMetric
      • SessionMetric.Counters
      • SessionMetric.Gauges
      • SessionMetric.Meters
      • SessionMetric.Timers
    • Cassandra.Metrics.Abstractions
      • IDriverCounter
      • IDriverGauge
      • IDriverMeter
      • IDriverMetric
      • IDriverMetricsProvider
      • IDriverTimer
    • Cassandra.OpenTelemetry
      • BuilderExtensions
      • CassandraActivitySourceHelper
      • CassandraInstrumentationOptions
      • OpenTelemetryRequestTracker
    • Cassandra.Serialization
      • CustomTypeSerializer<T>
      • TypeSerializer
      • TypeSerializerDefinitions
      • TypeSerializer<T>
      • UdtSerializer
    • Cassandra.Serialization.Primitive
      • DecimalSerializer

    Class GraphOptions

    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
    object
    GraphOptions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Cassandra.DataStax.Graph
    Assembly: Cassandra.dll
    Syntax
    public class GraphOptions

    Constructors

    GraphOptions()

    Creates a new instance of GraphOptions.

    Declaration
    public GraphOptions()

    Fields

    DefaultLanguage

    Default value for graph language.

    Declaration
    public const string DefaultLanguage = "gremlin-groovy"
    Field Value
    Type Description
    string

    DefaultReadTimeout

    Default value for read timeout.

    Declaration
    public const int DefaultReadTimeout = -1
    Field Value
    Type Description
    int

    DefaultSource

    Default value for graph source.

    Declaration
    public const string DefaultSource = "g"
    Field Value
    Type Description
    string

    Properties

    GraphProtocolVersion

    If not explicitly specified, the following rules apply:

    • If Name is specified and is a Core graph, set GraphSON3.
    • If Language is gremlin-groovy, set GraphSON1.
    • Otherwise set GraphSON2.
    Declaration
    public GraphProtocol? GraphProtocolVersion { get; }
    Property Value
    Type Description
    GraphProtocol?

    Language

    Gets the graph language to use in graph queries. The default is DefaultLanguage.

    Declaration
    public string Language { get; }
    Property Value
    Type Description
    string

    Name

    Gets the graph name to use in graph queries.

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    string

    ReadConsistencyLevel

    Gets the consistency level used for read queries

    Declaration
    public ConsistencyLevel? ReadConsistencyLevel { get; }
    Property Value
    Type Description
    ConsistencyLevel?

    ReadTimeoutMillis

    Gets the value that overrides the default per-host read timeout in milliseconds for all graph queries.

    Default: Timeout.Infinite (-1).

    Declaration
    public int ReadTimeoutMillis { get; }
    Property Value
    Type Description
    int
    See Also
    SetReadTimeoutMillis(int)

    Source

    Gets the graph traversal source name in graph queries.

    Declaration
    public string Source { get; }
    Property Value
    Type Description
    string

    WriteConsistencyLevel

    Gets the consistency level used for read queries

    Declaration
    public ConsistencyLevel? WriteConsistencyLevel { get; }
    Property Value
    Type Description
    ConsistencyLevel?

    Methods

    SetGraphProtocolVersion(GraphProtocol)

    Sets the graph protocol version to use in graph queries. See GraphProtocolVersion.

    Declaration
    public GraphOptions SetGraphProtocolVersion(GraphProtocol version)
    Parameters
    Type Name Description
    GraphProtocol version
    Returns
    Type Description
    GraphOptions

    SetLanguage(string)

    Sets the graph language to use in graph queries. If you don't call this method, it defaults to DefaultLanguage.

    Declaration
    public GraphOptions SetLanguage(string language)
    Parameters
    Type Name Description
    string language
    Returns
    Type Description
    GraphOptions

    SetName(string)

    Sets the graph name to use in graph queries.

    Declaration
    public GraphOptions SetName(string name)
    Parameters
    Type Name Description
    string name
    Returns
    Type Description
    GraphOptions

    SetReadConsistencyLevel(ConsistencyLevel)

    Sets the consistency level for the read graph queries.

    Declaration
    public GraphOptions SetReadConsistencyLevel(ConsistencyLevel consistency)
    Parameters
    Type Name Description
    ConsistencyLevel consistency

    The consistency level to use in read graph queries.

    Returns
    Type Description
    GraphOptions

    SetReadTimeoutMillis(int)

    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.

    Declaration
    public GraphOptions SetReadTimeoutMillis(int timeout)
    Parameters
    Type Name Description
    int timeout
    Returns
    Type Description
    GraphOptions

    SetSource(string)

    Sets the graph traversal source name to use in graph queries. If you don't call this method, it defaults to DefaultSource.

    Declaration
    public GraphOptions SetSource(string source)
    Parameters
    Type Name Description
    string source
    Returns
    Type Description
    GraphOptions

    SetSourceAnalytics()

    Sets the graph source to the server-defined analytic traversal source ('a')

    Declaration
    public GraphOptions SetSourceAnalytics()
    Returns
    Type Description
    GraphOptions

    SetWriteConsistencyLevel(ConsistencyLevel)

    Sets the consistency level for the write graph queries.

    Declaration
    public GraphOptions SetWriteConsistencyLevel(ConsistencyLevel consistency)
    Parameters
    Type Name Description
    ConsistencyLevel consistency

    The consistency level to use in write graph queries.

    Returns
    Type Description
    GraphOptions
    Back to top © DataStax, All rights reserved.