/// <summary> /// Copies any options set on this Cql instance to the statement provided. /// </summary> internal virtual void CopyOptionsToStatement(IStatement statement) { if (_consistencyLevel.HasValue) { statement.SetConsistencyLevel(_consistencyLevel.Value); } if (_tracingEnabled.HasValue) { statement.EnableTracing(_tracingEnabled.Value); } if (_pageSize.HasValue) { statement.SetPageSize(_pageSize.Value); } if (_retryPolicy != null) { statement.SetRetryPolicy(_retryPolicy); } if (_serialConsistencyLevel.HasValue) { statement.SetSerialConsistencyLevel(_serialConsistencyLevel.Value); } }
internal static void CopyQueryPropertiesTo(this IStatement src, IStatement dst) { dst.EnableTracing(src.IsTracing) .SetConsistencyLevel(src.ConsistencyLevel) .SetPageSize(src.PageSize) .SetPagingState(src.PagingState) .SetRetryPolicy(src.RetryPolicy) .SetAutoPage(src.AutoPage); if (src.SerialConsistencyLevel != ConsistencyLevel.Any) { dst.SetSerialConsistencyLevel(src.SerialConsistencyLevel); } }
/// <summary> /// Copies any options set on this Cql instance to the statement provided. /// </summary> internal virtual void CopyOptionsToStatement(IStatement statement) { if (_consistencyLevel.HasValue) { statement.SetConsistencyLevel(_consistencyLevel.Value); } if (_tracingEnabled.HasValue) { statement.EnableTracing(_tracingEnabled.Value); } if (_pageSize.HasValue) { statement.SetPageSize(_pageSize.Value); } statement.SetPagingState(_pagingState); if (_retryPolicy != null) { statement.SetRetryPolicy(_retryPolicy); } if (_serialConsistencyLevel.HasValue) { statement.SetSerialConsistencyLevel(_serialConsistencyLevel.Value); } }