Uses of Class
org.apache.cassandra.service.ClientState
-
-
Uses of ClientState in org.apache.cassandra.cql3
Fields in org.apache.cassandra.cql3 declared as ClientState Modifier and Type Field Description ClientStateUpdateParameters. clientStateMethods in org.apache.cassandra.cql3 with parameters of type ClientState Modifier and Type Method Description voidCQLStatement. authorize(ClientState state)Perform any access verification necessary for the statement.static UntypedResultSetUntypedResultSet. create(SelectStatement select, ConsistencyLevel cl, ClientState clientState, QueryPager pager, int pageSize)This method is intended for testing purposes, since it executes query on cluster and not on the local node only.static CQLStatementQueryProcessor. getStatement(java.lang.String queryStr, ClientState clientState)static QueryHandler.PreparedQueryProcessor. parseAndPrepare(java.lang.String query, ClientState clientState, boolean isInternal)static QueryHandler.PreparedQueryProcessor. parseAndPrepare(java.lang.String query, ClientState clientState, boolean isInternal, boolean measure)static CQLStatementQueryProcessor. parseStatement(java.lang.String queryStr, ClientState clientState)abstract CQLStatementCQLStatement.Raw. prepare(ClientState state)ResultMessage.PreparedCustomPayloadMirroringQueryHandler. prepare(java.lang.String query, ClientState clientState, java.util.Map<java.lang.String,java.nio.ByteBuffer> customPayload)ResultMessage.PreparedQueryHandler. prepare(java.lang.String query, ClientState clientState, java.util.Map<java.lang.String,java.nio.ByteBuffer> customPayload)ResultMessage.PreparedQueryProcessor. prepare(java.lang.String queryString, ClientState clientState)This method got slightly out of hand, but this is with best intentions: to allow users to be upgraded from any prior version, and help implementers avoid previous mistakes by clearly separating fully qualified and non-fully qualified statement behaviour.ResultMessage.PreparedQueryProcessor. prepare(java.lang.String query, ClientState clientState, java.util.Map<java.lang.String,java.nio.ByteBuffer> customPayload)voidCQLStatement. validate(ClientState state)Perform additional validation required by the statment.Constructors in org.apache.cassandra.cql3 with parameters of type ClientState Constructor Description UpdateParameters(TableMetadata metadata, RegularAndStaticColumns updatedColumns, ClientState clientState, QueryOptions options, long timestamp, int nowInSec, int ttl, java.util.Map<DecoratedKey,Partition> prefetchedRows) -
Uses of ClientState in org.apache.cassandra.cql3.restrictions
Methods in org.apache.cassandra.cql3.restrictions with parameters of type ClientState Modifier and Type Method Description java.util.NavigableSet<Clustering<?>>StatementRestrictions. getClusteringColumns(QueryOptions options, ClientState state)Returns the requested clustering columns.java.util.List<java.nio.ByteBuffer>StatementRestrictions. getPartitionKeys(QueryOptions options, ClientState state)Returns the partition keys for which the data is requested.java.util.List<java.nio.ByteBuffer>TokenRestriction.EQRestriction. values(QueryOptions options, ClientState state)java.util.List<java.nio.ByteBuffer>TokenRestriction.SliceRestriction. values(QueryOptions options, ClientState state) -
Uses of ClientState in org.apache.cassandra.cql3.statements
Methods in org.apache.cassandra.cql3.statements with parameters of type ClientState Modifier and Type Method Description voidAlterRoleStatement. authorize(ClientState state)voidBatchStatement. authorize(ClientState state)voidCreateRoleStatement. authorize(ClientState state)voidDescribeStatement. authorize(ClientState state)voidDropRoleStatement. authorize(ClientState state)voidListPermissionsStatement. authorize(ClientState state)voidListRolesStatement. authorize(ClientState state)voidModificationStatement. authorize(ClientState state)voidPermissionsManagementStatement. authorize(ClientState state)voidRoleManagementStatement. authorize(ClientState state)voidSelectStatement. authorize(ClientState state)voidTruncateStatement. authorize(ClientState state)voidUseStatement. authorize(ClientState state)java.util.List<java.nio.ByteBuffer>ModificationStatement. buildPartitionKeyNames(QueryOptions options, ClientState state)voidAuthenticationStatement. checkPermission(ClientState state, Permission required, RoleResource resource)java.util.NavigableSet<Clustering<?>>ModificationStatement. createClustering(QueryOptions options, ClientState state)protected abstract java.util.stream.Stream<? extends T>DescribeStatement. describe(ClientState state, Keyspaces keyspaces)Returns the schema elements that must be part of the output.protected java.util.stream.Stream<? extends SchemaElement>DescribeStatement.Element. describe(ClientState state, Keyspaces keyspaces)protected java.util.stream.Stream<? extends SchemaElement>DescribeStatement.Listing. describe(ClientState state, Keyspaces keyspaces)ResultMessageAlterRoleStatement. execute(ClientState state)abstract ResultMessageAuthenticationStatement. execute(ClientState state)abstract ResultMessageAuthorizationStatement. execute(ClientState state)ResultMessageCreateRoleStatement. execute(ClientState state)ResultMessageDropRoleStatement. execute(ClientState state)ResultMessageGrantPermissionsStatement. execute(ClientState state)ResultMessageGrantRoleStatement. execute(ClientState state)ResultMessageListPermissionsStatement. execute(ClientState state)ResultMessageListRolesStatement. execute(ClientState state)ResultMessageRevokePermissionsStatement. execute(ClientState state)ResultMessageRevokeRoleStatement. execute(ClientState state)java.util.Map<DecoratedKey,java.util.List<Row>>SelectStatement. executeRawInternal(QueryOptions options, ClientState state, int nowInSec)java.util.List<? extends IMutation>BatchStatement. getMutations(ClientState state, BatchQueryOptions options, boolean local, long batchTimestamp, int nowInSeconds, Dispatcher.RequestTime requestTime)ReadQuerySelectStatement. getQuery(QueryOptions options, ClientState state, ColumnFilter columnFilter, int nowInSec, int userLimit, int perPartitionLimit, int pageSize, AggregationSpecification aggregationSpec)PartitionUpdateCQL3CasRequest. makeUpdates(FilteredPartition current, ClientState clientState, Ballot ballot)static IResourceAuthorizationStatement. maybeCorrectResource(IResource resource, ClientState state)protected java.util.List<ColumnSpecification>DescribeStatement.Element. metadata(ClientState state)protected java.util.List<ColumnSpecification>DescribeStatement.Listing. metadata(ClientState state)protected abstract java.util.List<ColumnSpecification>DescribeStatement. metadata(ClientState state)Returns the columns of theResultMetadataAuthenticationStatementAuthenticationStatement. prepare(ClientState state)AuthorizationStatementAuthorizationStatement. prepare(ClientState state)BatchStatementBatchStatement.Parsed. prepare(ClientState state)CQLStatementDescribeStatement. prepare(ClientState clientState)ModificationStatementModificationStatement.Parsed. prepare(ClientState state)SelectStatementSelectStatement.RawStatement. prepare(ClientState state)TruncateStatementTruncateStatement. prepare(ClientState state)UseStatementUseStatement. prepare(ClientState state)voidBatchStatement.Parsed. setKeyspace(ClientState state)voidQualifiedStatement. setKeyspace(ClientState state)voidAlterRoleStatement. validate(ClientState state)voidBatchStatement. validate(ClientState state)voidCreateRoleStatement. validate(ClientState state)voidDescribeStatement. validate(ClientState state)voidDropRoleStatement. validate(ClientState state)voidGrantPermissionsStatement. validate(ClientState state)voidListPermissionsStatement. validate(ClientState state)voidListRolesStatement. validate(ClientState state)voidModificationStatement. validate(ClientState state)voidPermissionsManagementStatement. validate(ClientState state)voidRoleManagementStatement. validate(ClientState state)voidSelectStatement. validate(ClientState state)voidTruncateStatement. validate(ClientState state)voidUseStatement. validate(ClientState state)voidModificationStatement. validateDiskUsage(QueryOptions options, ClientState state) -
Uses of ClientState in org.apache.cassandra.cql3.statements.schema
Fields in org.apache.cassandra.cql3.statements.schema declared as ClientState Modifier and Type Field Description protected ClientStateAlterSchemaStatement. stateMethods in org.apache.cassandra.cql3.statements.schema with parameters of type ClientState Modifier and Type Method Description voidAlterKeyspaceStatement. authorize(ClientState client)voidAlterTableStatement. authorize(ClientState client)voidAlterTypeStatement. authorize(ClientState client)voidAlterViewStatement. authorize(ClientState client)voidCreateAggregateStatement. authorize(ClientState client)voidCreateFunctionStatement. authorize(ClientState client)voidCreateIndexStatement. authorize(ClientState client)voidCreateKeyspaceStatement. authorize(ClientState client)voidCreateTableStatement. authorize(ClientState client)voidCreateTriggerStatement. authorize(ClientState client)voidCreateTypeStatement. authorize(ClientState client)voidCreateViewStatement. authorize(ClientState client)voidDropAggregateStatement. authorize(ClientState client)voidDropFunctionStatement. authorize(ClientState client)voidDropIndexStatement. authorize(ClientState client)voidDropKeyspaceStatement. authorize(ClientState client)voidDropTableStatement. authorize(ClientState client)voidDropTriggerStatement. authorize(ClientState client)voidDropTypeStatement. authorize(ClientState client)voidDropViewStatement. authorize(ClientState client)AlterKeyspaceStatementAlterKeyspaceStatement.Raw. prepare(ClientState state)AlterTableStatementAlterTableStatement.Raw. prepare(ClientState state)AlterTypeStatementAlterTypeStatement.Raw. prepare(ClientState state)AlterViewStatementAlterViewStatement.Raw. prepare(ClientState state)CreateAggregateStatementCreateAggregateStatement.Raw. prepare(ClientState state)CreateFunctionStatementCreateFunctionStatement.Raw. prepare(ClientState state)CreateIndexStatementCreateIndexStatement.Raw. prepare(ClientState state)CreateKeyspaceStatementCreateKeyspaceStatement.Raw. prepare(ClientState state)CreateTableStatementCreateTableStatement.Raw. prepare(ClientState state)CreateTriggerStatementCreateTriggerStatement.Raw. prepare(ClientState state)CreateTypeStatementCreateTypeStatement.Raw. prepare(ClientState state)CreateViewStatementCreateViewStatement.Raw. prepare(ClientState state)DropAggregateStatementDropAggregateStatement.Raw. prepare(ClientState state)DropFunctionStatementDropFunctionStatement.Raw. prepare(ClientState state)DropIndexStatementDropIndexStatement.Raw. prepare(ClientState state)DropKeyspaceStatementDropKeyspaceStatement.Raw. prepare(ClientState state)DropTableStatementDropTableStatement.Raw. prepare(ClientState state)DropTriggerStatementDropTriggerStatement.Raw. prepare(ClientState state)DropTypeStatementDropTypeStatement.Raw. prepare(ClientState state)DropViewStatementDropViewStatement.Raw. prepare(ClientState state)voidAlterSchemaStatement. validate(ClientState state)voidAlterViewStatement. validate(ClientState state)voidCreateIndexStatement. validate(ClientState state)voidCreateKeyspaceStatement. validate(ClientState state)voidCreateTableStatement. validate(ClientState state)voidCreateTypeStatement. validate(ClientState state)voidCreateViewStatement. validate(ClientState state) -
Uses of ClientState in org.apache.cassandra.db
Methods in org.apache.cassandra.db with parameters of type ClientState Modifier and Type Method Description PartitionIteratorPartitionRangeReadCommand. execute(ConsistencyLevel consistency, ClientState state, Dispatcher.RequestTime requestTime)PartitionIteratorPartitionRangeReadCommand.VirtualTablePartitionRangeReadCommand. execute(ConsistencyLevel consistency, ClientState state, Dispatcher.RequestTime requestTime)PartitionIteratorReadQuery. execute(ConsistencyLevel consistency, ClientState state, Dispatcher.RequestTime requestTime)Executes the query at the provided consistency level.PartitionIteratorSinglePartitionReadCommand. execute(ConsistencyLevel consistency, ClientState state, Dispatcher.RequestTime requestTime)PartitionIteratorSinglePartitionReadCommand.Group. execute(ConsistencyLevel consistency, ClientState state, Dispatcher.RequestTime requestTime)PartitionIteratorSinglePartitionReadCommand.VirtualTableGroup. execute(ConsistencyLevel consistency, ClientState state, Dispatcher.RequestTime requestTime)PartitionIteratorSinglePartitionReadCommand.VirtualTableSinglePartitionReadCommand. execute(ConsistencyLevel consistency, ClientState state, Dispatcher.RequestTime requestTime) -
Uses of ClientState in org.apache.cassandra.db.guardrails
Fields in org.apache.cassandra.db.guardrails with type parameters of type ClientState Modifier and Type Field Description protected java.util.function.ToLongFunction<ClientState>Threshold. failThresholdprotected java.util.function.ToLongFunction<ClientState>Threshold. warnThresholdMethods in org.apache.cassandra.db.guardrails with parameters of type ClientState Modifier and Type Method Description booleanGuardrail. enabled(ClientState state)Checks whether this guardrail is enabled or not.booleanThreshold. enabled(ClientState state)voidDisableFlag. ensureEnabled(java.lang.String what, ClientState state)Aborts the operation if this guardrail is disabled.voidDisableFlag. ensureEnabled(ClientState state)Aborts the operation if this guardrail is disabled.protected voidGuardrail. fail(java.lang.String message, java.lang.String redactedMessage, ClientState state)protected voidGuardrail. fail(java.lang.String message, ClientState state)booleanThreshold. failsOn(long value, ClientState state)protected longMaxThreshold. failValue(ClientState state)protected longMinThreshold. failValue(ClientState state)protected abstract longThreshold. failValue(ClientState state)GuardrailsConfigGuardrailsConfigProvider.Default. getOrCreate(ClientState state)GuardrailsConfigGuardrailsConfigProvider. getOrCreate(ClientState state)Returns theGuardrailsConfigto be used for the specifiedClientState.voidPredicates. guard(T value, ClientState state)Apply the guardrail to the provided value, triggering a warning or failure if appropriate.voidThreshold. guard(long value, java.lang.String what, boolean containsUserData, ClientState state)Apply the guardrail to the provided value, warning or failing if appropriate.voidValues. guard(java.util.Set<T> values, java.util.function.Consumer<T> ignoreAction, ClientState state)Triggers a warning for each of the provided values that is discouraged by this guardrail.voidValues. guard(java.util.Set<T> values, ClientState state)Triggers a warning for each of the provided values that is discouraged by this guardrail.booleanThreshold. triggersOn(long value, ClientState state)Checks whether the provided value would trigger a warning or failure if passed toThreshold.guard(long, java.lang.String, boolean, org.apache.cassandra.service.ClientState).booleanThreshold. warnsOn(long value, ClientState state)protected longMaxThreshold. warnValue(ClientState state)protected longMinThreshold. warnValue(ClientState state)protected abstract longThreshold. warnValue(ClientState state)Constructor parameters in org.apache.cassandra.db.guardrails with type arguments of type ClientState Constructor Description DisableFlag(java.lang.String name, java.util.function.Predicate<ClientState> disabled, java.lang.String what)Creates a newDisableFlagguardrail.MaxThreshold(java.lang.String name, java.util.function.ToLongFunction<ClientState> warnThreshold, java.util.function.ToLongFunction<ClientState> failThreshold, org.apache.cassandra.db.guardrails.Threshold.ErrorMessageProvider messageProvider)Creates a new threshold guardrail.MinThreshold(java.lang.String name, java.util.function.ToLongFunction<ClientState> warnThreshold, java.util.function.ToLongFunction<ClientState> failThreshold, org.apache.cassandra.db.guardrails.Threshold.ErrorMessageProvider messageProvider)Creates a new minimum threshold guardrail.PercentageThreshold(java.lang.String name, java.util.function.ToLongFunction<ClientState> warnThreshold, java.util.function.ToLongFunction<ClientState> failThreshold, org.apache.cassandra.db.guardrails.Threshold.ErrorMessageProvider messageProvider)Creates a new threshold guardrail.Threshold(java.lang.String name, java.util.function.ToLongFunction<ClientState> warnThreshold, java.util.function.ToLongFunction<ClientState> failThreshold, org.apache.cassandra.db.guardrails.Threshold.ErrorMessageProvider messageProvider)Creates a new threshold guardrail.Values(java.lang.String name, java.util.function.Function<ClientState,java.util.Set<T>> warnedValues, java.util.function.Function<ClientState,java.util.Set<T>> ignoredValues, java.util.function.Function<ClientState,java.util.Set<T>> disallowedValues, java.lang.String what)Creates a new values guardrail. -
Uses of ClientState in org.apache.cassandra.locator
Methods in org.apache.cassandra.locator with parameters of type ClientState Modifier and Type Method Description voidAbstractReplicationStrategy. maybeWarnOnOptions(ClientState state)voidNetworkTopologyStrategy. maybeWarnOnOptions(ClientState state)voidSimpleStrategy. maybeWarnOnOptions(ClientState state)static voidAbstractReplicationStrategy. validateReplicationStrategy(java.lang.String keyspaceName, java.lang.Class<? extends AbstractReplicationStrategy> strategyClass, TokenMetadata tokenMetadata, IEndpointSnitch snitch, java.util.Map<java.lang.String,java.lang.String> strategyOptions, ClientState state) -
Uses of ClientState in org.apache.cassandra.schema
Methods in org.apache.cassandra.schema with parameters of type ClientState Modifier and Type Method Description voidKeyspaceParams. validate(java.lang.String name, ClientState state)voidReplicationParams. validate(java.lang.String name, ClientState state) -
Uses of ClientState in org.apache.cassandra.service
Methods in org.apache.cassandra.service that return ClientState Modifier and Type Method Description ClientStateClientState. cloneWithKeyspaceIfSet(java.lang.String keyspace)Clone this ClientState object, but use the provided keyspace instead of the keyspace in this ClientState object.static ClientStateClientState. forExternalCalls(java.net.SocketAddress remoteAddress)static ClientStateClientState. forInternalCalls()static ClientStateClientState. forInternalCalls(java.lang.String keyspace)ClientStateQueryState. getClientState()Methods in org.apache.cassandra.service with parameters of type ClientState Modifier and Type Method Description static RowIteratorStorageProxy. cas(java.lang.String keyspaceName, java.lang.String cfName, DecoratedKey key, CASRequest request, ConsistencyLevel consistencyForPaxos, ConsistencyLevel consistencyForCommit, ClientState clientState, int nowInSeconds, Dispatcher.RequestTime requestTime)Apply @param updates if and only if the current values in the row for @param key match the provided @param conditions.static RowIteratorStorageProxy. legacyCas(java.lang.String keyspaceName, java.lang.String cfName, DecoratedKey key, CASRequest request, ConsistencyLevel consistencyForPaxos, ConsistencyLevel consistencyForCommit, ClientState clientState, int nowInSeconds, Dispatcher.RequestTime requestTime)PartitionUpdateCASRequest. makeUpdates(FilteredPartition current, ClientState clientState, Ballot ballot)The updates to perform of a CAS success.Constructors in org.apache.cassandra.service with parameters of type ClientState Constructor Description ClientState(ClientState source)QueryState(ClientState clientState)QueryState(ClientState clientState, long timestamp, int nowInSeconds) -
Uses of ClientState in org.apache.cassandra.service.pager
Methods in org.apache.cassandra.service.pager with parameters of type ClientState Modifier and Type Method Description PartitionIteratorAggregationQueryPager. fetchPage(int pageSize, ConsistencyLevel consistency, ClientState clientState, Dispatcher.RequestTime requestTime)PartitionIteratorMultiPartitionPager. fetchPage(int pageSize, ConsistencyLevel consistency, ClientState clientState, Dispatcher.RequestTime requestTime)PartitionIteratorQueryPager. fetchPage(int pageSize, ConsistencyLevel consistency, ClientState clientState, Dispatcher.RequestTime requestTime)Fetches the next page.Constructors in org.apache.cassandra.service.pager with parameters of type ClientState Constructor Description AggregationPartitionIterator(int pageSize, ConsistencyLevel consistency, ClientState clientState, Dispatcher.RequestTime requestTime)GroupByPartitionIterator(int pageSize, ConsistencyLevel consistency, ClientState clientState, Dispatcher.RequestTime requestTime) -
Uses of ClientState in org.apache.cassandra.service.paxos
Methods in org.apache.cassandra.service.paxos with parameters of type ClientState Modifier and Type Method Description static RowIteratorPaxos. cas(DecoratedKey key, CASRequest request, ConsistencyLevel consistencyForConsensus, ConsistencyLevel consistencyForCommit, ClientState clientState)Apply @param updates if and only if the current values in the row for @param key match the provided @param conditions.static RowIteratorPaxos. cas(DecoratedKey key, CASRequest request, ConsistencyLevel consistencyForConsensus, ConsistencyLevel consistencyForCommit, ClientState clientState, long proposeDeadline, long commitDeadline) -
Uses of ClientState in org.apache.cassandra.transport
Methods in org.apache.cassandra.transport that return ClientState Modifier and Type Method Description ClientStateServerConnection. getClientState()
-