• DataStax C# Driver for Apache Cassandra API Documentation

    Show / Hide Table of Contents
    • Cassandra
      • AggregateMetadata
      • AlreadyExistsException
      • AtomicMonotonicTimestampGenerator
      • AtomicMonotonicWinApiTimestampGenerator
      • AuthenticationException
      • BatchStatement
      • BatchType
      • BigIntegerTypeAdapter
      • BoundStatement
      • Builder
      • BusyPoolException
      • CassandraConnectionStringBuilder
      • ClientOptions
      • Cluster
      • ColumnDesc
      • ColumnTypeCode
      • CompressionType
      • Configuration
      • ConsistencyLevel
      • ConstantReconnectionPolicy
      • ConstantSpeculativeExecutionPolicy
      • CqlColumn
      • CustomColumnInfo
      • DataCollectionMetadata
      • DataCollectionMetadata.SortOrder
      • DCAwareRoundRobinPolicy
      • DecimalTypeAdapter
      • DefaultLoadBalancingPolicy
      • DefaultRetryPolicy
      • Diagnostics
      • DowngradingConsistencyRetryPolicy
      • DriverException
      • DriverInternalError
      • Duration
      • DynamicCompositeTypeAdapter
      • EC2MultiRegionTranslator
      • ExecutionException
      • ExecutionInfo
      • ExponentialReconnectionPolicy
      • Extensions
      • FallthroughRetryPolicy
      • FixedReconnectionPolicy
      • FunctionFailureException
      • FunctionMetadata
      • Host
      • HostDistance
      • HostsEventArgs
      • HostsEventArgs.Kind
      • HostsEventHandler
      • IAddressTranslator
      • IAuthenticator
      • IAuthProvider
      • IAuthProviderNamed
      • ICluster
      • IColumnInfo
      • IdempotenceAwareRetryPolicy
      • IExecutionProfile
      • IExecutionProfileBuilder
      • IExecutionProfileOptions
      • IExtendedRetryPolicy
      • IFrameCompressor
      • IInitializer
      • ILoadBalancingPolicy
      • IndexMetadata
      • IndexMetadata.IndexKind
      • InitFatalErrorException
      • InvalidConfigurationInQueryException
      • InvalidQueryException
      • InvalidTypeException
      • IReconnectionPolicy
      • IReconnectionSchedule
      • IRetryPolicy
      • IsBootstrappingException
      • ISession
      • ISessionState
      • ISpeculativeExecutionPlan
      • ISpeculativeExecutionPolicy
      • IStatement
      • ITimestampGenerator
      • ITypeAdapter
      • KeyspaceMetadata
      • KeyType
      • ListColumnInfo
      • LocalDate
      • LocalTime
      • Logger
      • LoggingRetryPolicy
      • MapColumnInfo
      • MaterializedViewMetadata
      • Metadata
      • MetadataSyncOptions
      • MetricsExtensions
      • MonitorReportingOptions
      • NoHostAvailableException
      • NoneAuthProvider
      • NoSpeculativeExecutionPolicy
      • NullTypeAdapter
      • OperationTimedOutException
      • OverloadedException
      • PlainTextAuthProvider
      • Policies
      • PoolingOptions
      • 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
      • SchemaChangedEventArgs
      • SchemaChangedEventArgs.Kind
      • SchemaChangedEventHandler
      • ServerErrorException
      • Session
      • SetColumnInfo
      • SimpleStatement
      • SocketOptions
      • SSLOptions
      • Statement
      • SyntaxError
      • TableColumn
      • TableMetadata
      • TableOptions
      • TimeUuid
      • TokenAwarePolicy
      • ToManyConnectionsPerHost
      • TraceRetrievalException
      • TruncateException
      • TupleColumnInfo
      • TypeAdapters
      • UdtColumnInfo
      • UdtMap
      • UdtMap<T>
      • UdtMappingDefinitions
      • UnauthorizedException
      • UnavailableException
      • Unset
      • 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
      • CqlQuery<TEntity>
      • CqlQueryBase<TEntity>
      • CqlQueryExtensions
      • CqlQuerySingleElement<TEntity>
      • CqlScalar<TEntity>
      • CqlToken
      • CqlUpdate
      • IgnoreAttribute
      • ITable
      • PartitionKeyAttribute
      • SecondaryIndexAttribute
      • SessionExtensions
      • StaticColumnAttribute
      • Table<TEntity>
      • TableAttribute
      • TableType
    • Cassandra.DataStax.Auth
      • DseGssapiAuthProvider
      • DsePlainTextAuthProvider
    • Cassandra.DataStax.Auth.Sspi
      • SspiException
    • Cassandra.DataStax.Graph
      • Edge
      • Element
      • GraphNode
      • GraphOptions
      • GraphResultSet
      • GraphStatement
      • IEdge
      • IElement
      • IGraphNode
      • IGraphStatement
      • IPath
      • IProperty
      • IVertex
      • IVertexProperty
      • Path
      • SimpleGraphStatement
      • Vertex
    • 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.Serialization
      • CustomTypeSerializer<T>
      • TypeSerializer
      • TypeSerializer<T>
      • TypeSerializerDefinitions
      • UdtSerializer
    • Cassandra.Serialization.Primitive
      • DecimalSerializer

    Class GraphStatement

    Base class for graph statements.

    Inheritance
    System.Object
    GraphStatement
    SimpleGraphStatement
    Implements
    IGraphStatement
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.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
    System.Nullable<ConsistencyLevel>

    GraphAlias

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

    GraphLanguage

    Gets the graph language to use with this statement.

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

    GraphName

    Gets the graph name to use with this statement.

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

    GraphReadConsistencyLevel

    Gets the consistency level used for read graph queries.

    Declaration
    public ConsistencyLevel? GraphReadConsistencyLevel { get; protected set; }
    Property Value
    Type Description
    System.Nullable<ConsistencyLevel>

    GraphSource

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

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

    GraphWriteConsistencyLevel

    Gets the consistency level used for write graph queries.

    Declaration
    public ConsistencyLevel? GraphWriteConsistencyLevel { get; protected set; }
    Property Value
    Type Description
    System.Nullable<ConsistencyLevel>

    IsSystemQuery

    Determines whether this statement is marked as a system query.

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

    ReadTimeoutMillis

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

    Use System.Threading.Timeout.Infinite to disable timeouts for this Statement.

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

    Timestamp

    Gets the default timestamp for this query.

    Declaration
    public DateTimeOffset? Timestamp { get; protected set; }
    Property Value
    Type Description
    System.Nullable<System.DateTimeOffset>

    Methods

    IsAnonymous(Object)

    Determines whether the object is anonymous.

    Declaration
    protected bool IsAnonymous(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Exceptions
    Type Condition
    System.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
    System.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
    System.String name
    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
    System.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(Int32)

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

    Use System.Threading.Timeout.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
    System.Int32 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
    System.DateTimeOffset timestamp
    Returns
    Type Description
    IGraphStatement

    Explicit Interface Implementations

    IGraphStatement.ToIStatement(GraphOptions)

    Declaration
    IStatement IGraphStatement.ToIStatement(GraphOptions options)
    Parameters
    Type Name Description
    GraphOptions options
    Returns
    Type Description
    IStatement

    Implements

    IGraphStatement
    Back to top © DataStax, All rights reserved.