• DataStax Enterprise C# Driver API Documentation

    Show / Hide Table of Contents
    • Dse
      • 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
      • DefaultRetryPolicy
      • Diagnostics
      • DowngradingConsistencyRetryPolicy
      • DriverException
      • DriverInternalError
      • DseCluster
      • DseClusterBuilder
      • DseConfiguration
      • DseLoadBalancingPolicy
      • Duration
      • DynamicCompositeTypeAdapter
      • EC2MultiRegionTranslator
      • ExecutionException
      • ExecutionInfo
      • ExponentialReconnectionPolicy
      • Extensions
      • FallthroughRetryPolicy
      • FixedReconnectionPolicy
      • FunctionFailureException
      • FunctionMetadata
      • Host
      • HostDistance
      • HostsEventArgs
      • HostsEventArgs.Kind
      • HostsEventHandler
      • IAddressTranslator
      • IAuthenticator
      • IAuthProvider
      • IAuthProviderNamed
      • ICluster
      • IColumnInfo
      • IdempotenceAwareRetryPolicy
      • IDseCluster
      • IDseSession
      • IExecutionProfile
      • IExecutionProfileBuilder
      • IExecutionProfileOptions
      • IExtendedRetryPolicy
      • IFrameCompressor
      • IInitializer
      • ILoadBalancingPolicy
      • IndexMetadata
      • IndexMetadata.IndexKind
      • 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
    • Dse.AppMetrics
      • DriverAppMetricsOptions
    • Dse.AppMetrics.MetricTypes
      • IAppMetricsCounter
      • IAppMetricsGauge
      • IAppMetricsMeter
      • IAppMetricsMetric
      • IAppMetricsTimer
    • Dse.AppMetrics.MetricValues
      • IAppMetricsHistogramValue
      • IAppMetricsMeterValue
      • IAppMetricsMetricWithValue<T>
      • IAppMetricsTimerValue
    • Dse.Auth
      • DseGssapiAuthProvider
      • DsePlainTextAuthProvider
    • Dse.Auth.Sspi
      • SspiException
    • Dse.Data
      • CqlBatchTransaction
      • CqlCommand
      • CqlConnection
      • CqlDataAdapter
      • CqlParameter
      • CqlParameterCollection
      • CqlProviderFactory
      • CqlReader
    • Dse.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
    • Dse.Geometry
      • GeometryBase
      • LineString
      • Point
      • Polygon
    • Dse.Graph
      • Edge
      • Element
      • GraphNode
      • GraphOptions
      • GraphResultSet
      • GraphStatement
      • IEdge
      • IElement
      • IGraphNode
      • IGraphStatement
      • IPath
      • IProperty
      • IVertex
      • IVertexProperty
      • Path
      • SimpleGraphStatement
      • Vertex
    • Dse.Mapping
      • AppliedInfo<T>
      • ColumnMap
      • Cql
      • CqlQueryOptions
      • IColumnDefinition
      • ICqlBatch
      • ICqlQueryAsyncClient
      • ICqlQueryClient
      • ICqlWriteAsyncClient
      • ICqlWriteClient
      • IMapper
      • IPage<T>
      • ITypeDefinition
      • Map<TPoco>
      • Mapper
      • MappingConfiguration
      • Mappings
      • SortOrder
    • Dse.Mapping.Attributes
      • ClusteringKeyAttribute
      • ColumnAttribute
      • CounterAttribute
      • FrozenAttribute
      • FrozenKeyAttribute
      • FrozenValueAttribute
      • IgnoreAttribute
      • PartitionKeyAttribute
      • SecondaryIndexAttribute
      • StaticColumnAttribute
      • TableAttribute
    • Dse.Mapping.TypeConversion
      • DefaultTypeConverter
      • EnumStringMapper<T>
      • NullableEnumStringMapper<T>
      • TypeConverter
    • Dse.Mapping.Utils
      • MemberInfoExtensions
    • Dse.Metrics
      • DriverMetricsOptions
      • IDriverMetrics
      • IMetric
      • IMetricsRegistry<TMetric>
      • NodeMetric
      • NodeMetric.Counters
      • NodeMetric.Gauges
      • NodeMetric.Meters
      • NodeMetric.Timers
      • SessionMetric
      • SessionMetric.Counters
      • SessionMetric.Gauges
      • SessionMetric.Meters
      • SessionMetric.Timers
    • Dse.Metrics.Abstractions
      • IDriverCounter
      • IDriverGauge
      • IDriverMeter
      • IDriverMetric
      • IDriverMetricsProvider
      • IDriverTimer
    • Dse.Search
      • DateRange
      • DateRangeBound
      • DateRangePrecision
    • Dse.Serialization
      • CustomTypeSerializer<T>
      • TypeSerializer
      • TypeSerializer<T>
      • TypeSerializerDefinitions
      • UdtSerializer

    Interface IGraphStatement

    Represents a graph statement.

    Namespace: Dse.Graph
    Assembly: Dse.dll
    Syntax
    public interface IGraphStatement

    Properties

    ConsistencyLevel

    Returns the consistency level to use for this statement.

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

    GraphLanguage

    Gets the graph language to use with this statement.

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

    GraphName

    Gets the graph name to use with this statement.

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

    GraphReadConsistencyLevel

    Gets the consistency level used for read graph queries.

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

    GraphSource

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

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

    GraphWriteConsistencyLevel

    Gets the consistency level used for write graph queries.

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

    IsSystemQuery

    Determines whether this statement is marked as a system query.

    Declaration
    bool IsSystemQuery { get; }
    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
    int ReadTimeoutMillis { get; }
    Property Value
    Type Description
    System.Int32

    Timestamp

    Gets the default timestamp for this query.

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

    Methods

    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
    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
    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
    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
    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
    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
    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
    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
    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
    IGraphStatement SetSystemQuery()
    Returns
    Type Description
    IGraphStatement

    SetTimestamp(DateTimeOffset)

    Sets the timestamp associated with this query.

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

    ToIStatement(GraphOptions)

    Returns the IStatement representation of the Graph statement.

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

    Used by the DSE driver to translate between this statement and Core driver statement instances

    Back to top © DataStax, All rights reserved.