• 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 GraphStatement

    Base class for graph statements.

    Inheritance
    object
    GraphStatement
    FluentGraphStatement
    SimpleGraphStatement
    Implements
    IGraphStatement
    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 abstract class GraphStatement : IGraphStatement

    Properties

    ConsistencyLevel

    Returns the consistency level to use for this statement.

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

    GraphAlias

    Declaration
    public string GraphAlias { get; protected set; }
    Property Value
    Type Description
    string

    GraphLanguage

    Gets the graph language to use with this statement.

    Declaration
    public string GraphLanguage { get; protected set; }
    Property Value
    Type Description
    string

    GraphName

    Gets the graph name to use with this statement.

    Declaration
    public string GraphName { get; protected set; }
    Property Value
    Type Description
    string

    GraphProtocolVersion

    Gets the graph protocol version to use with this statement. See GraphProtocolVersion.

    Declaration
    public GraphProtocol? GraphProtocolVersion { get; protected set; }
    Property Value
    Type Description
    GraphProtocol?

    GraphReadConsistencyLevel

    Gets the consistency level used for read graph queries.

    Declaration
    public ConsistencyLevel? GraphReadConsistencyLevel { get; protected set; }
    Property Value
    Type Description
    ConsistencyLevel?

    GraphSource

    Gets the graph traversal source name to use with this statement.

    Declaration
    public string GraphSource { get; protected set; }
    Property Value
    Type Description
    string

    GraphWriteConsistencyLevel

    Gets the consistency level used for write graph queries.

    Declaration
    public ConsistencyLevel? GraphWriteConsistencyLevel { get; protected set; }
    Property Value
    Type Description
    ConsistencyLevel?

    IsSystemQuery

    Determines whether this statement is marked as a system query.

    Declaration
    public bool IsSystemQuery { get; protected set; }
    Property Value
    Type Description
    bool

    ReadTimeoutMillis

    Gets the ReadTimeout for the statement that, when is different than 0, overrides ReadTimeoutMillis.

    Use Infinite to disable timeouts for this Statement.

    Declaration
    public int ReadTimeoutMillis { get; protected set; }
    Property Value
    Type Description
    int

    Timestamp

    Gets the default timestamp for this query.

    Declaration
    public DateTimeOffset? Timestamp { get; protected set; }
    Property Value
    Type Description
    DateTimeOffset?

    Methods

    IsAnonymous(object)

    Determines whether the object is anonymous.

    Declaration
    protected bool IsAnonymous(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Exceptions
    Type Condition
    ArgumentNullException

    SetConsistencyLevel(ConsistencyLevel)

    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.

    Declaration
    public IGraphStatement SetConsistencyLevel(ConsistencyLevel consistency)
    Parameters
    Type Name Description
    ConsistencyLevel consistency
    Returns
    Type Description
    IGraphStatement

    SetGraphLanguage(string)

    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.

    Declaration
    public IGraphStatement SetGraphLanguage(string language)
    Parameters
    Type Name Description
    string language
    Returns
    Type Description
    IGraphStatement

    SetGraphName(string)

    Sets the graph name to use in graph queries. If you don't call this method, it is left unset.

    Declaration
    public IGraphStatement SetGraphName(string name)
    Parameters
    Type Name Description
    string name
    Returns
    Type Description
    IGraphStatement

    SetGraphProtocolVersion(GraphProtocol)

    Sets the graph protocol version to use in graph queries. If you don't call this method, the default will be used (check GraphProtocolVersion).

    Declaration
    public IGraphStatement SetGraphProtocolVersion(GraphProtocol graphProtocol)
    Parameters
    Type Name Description
    GraphProtocol graphProtocol
    Returns
    Type Description
    IGraphStatement

    SetGraphReadConsistencyLevel(ConsistencyLevel)

    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.

    Declaration
    public IGraphStatement SetGraphReadConsistencyLevel(ConsistencyLevel consistency)
    Parameters
    Type Name Description
    ConsistencyLevel consistency
    Returns
    Type Description
    IGraphStatement

    SetGraphSource(string)

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

    Declaration
    public IGraphStatement SetGraphSource(string source)
    Parameters
    Type Name Description
    string source
    Returns
    Type Description
    IGraphStatement

    SetGraphSourceAnalytics()

    Sets the graph source to the server-defined analytic traversal source ("a") for this statement.

    Declaration
    public IGraphStatement SetGraphSourceAnalytics()
    Returns
    Type Description
    IGraphStatement

    SetGraphWriteConsistencyLevel(ConsistencyLevel)

    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.

    Declaration
    public IGraphStatement SetGraphWriteConsistencyLevel(ConsistencyLevel consistency)
    Parameters
    Type Name Description
    ConsistencyLevel consistency
    Returns
    Type Description
    IGraphStatement

    SetReadTimeoutMillis(int)

    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.

    Declaration
    public IGraphStatement SetReadTimeoutMillis(int timeout)
    Parameters
    Type Name Description
    int timeout

    Timeout in milliseconds.

    Returns
    Type Description
    IGraphStatement

    This instance

    SetSystemQuery()

    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.

    Declaration
    public IGraphStatement SetSystemQuery()
    Returns
    Type Description
    IGraphStatement

    SetTimestamp(DateTimeOffset)

    Sets the timestamp associated with this query.

    Declaration
    public IGraphStatement SetTimestamp(DateTimeOffset timestamp)
    Parameters
    Type Name Description
    DateTimeOffset timestamp
    Returns
    Type Description
    IGraphStatement

    Implements

    IGraphStatement
    Back to top © DataStax, All rights reserved.