Package

com.youtube.vitess.proto

vtgate

Permalink

package vtgate

Visibility
  1. Public
  2. All

Type Members

  1. final case class BeginRequest(callerId: Option[CallerID] = None, singleDb: Boolean = false) extends GeneratedMessage with Message[BeginRequest] with Updatable[BeginRequest] with Product with Serializable

    Permalink

    BeginRequest is the payload to Begin.

    BeginRequest is the payload to Begin.

    callerId

    caller_id identifies the caller. This is the effective caller ID, set by the application to further identify the caller.

    singleDb

    single_db specifies if the transaction should be restricted to a single database.

    Annotations
    @SerialVersionUID()
  2. final case class BeginResponse(session: Option[Session] = None) extends GeneratedMessage with Message[BeginResponse] with Updatable[BeginResponse] with Product with Serializable

    Permalink

    BeginResponse is the returned value from Begin.

    BeginResponse is the returned value from Begin.

    session

    session is the initial session information to use for subsequent queries.

    Annotations
    @SerialVersionUID()
  3. final case class BoundKeyspaceIdQuery(query: Option[BoundQuery] = None, keyspace: String = "", keyspaceIds: Seq[ByteString] = _root_.scala.collection.Seq.empty) extends GeneratedMessage with Message[BoundKeyspaceIdQuery] with Updatable[BoundKeyspaceIdQuery] with Product with Serializable

    Permalink

    BoundKeyspaceIdQuery represents a single query request for the specified list of keyspace ids.

    BoundKeyspaceIdQuery represents a single query request for the specified list of keyspace ids. This is used in a list for ExecuteBatchKeyspaceIdsRequest.

    query

    query is the query and bind variables to execute.

    keyspace

    keyspace to target the query to.

    keyspaceIds

    keyspace_ids contains the list of keyspace_ids affected by this query. Will be used to find the shards to send the query to.

    Annotations
    @SerialVersionUID()
  4. final case class BoundShardQuery(query: Option[BoundQuery] = None, keyspace: String = "", shards: Seq[String] = _root_.scala.collection.Seq.empty) extends GeneratedMessage with Message[BoundShardQuery] with Updatable[BoundShardQuery] with Product with Serializable

    Permalink

    BoundShardQuery represents a single query request for the specified list of shards.

    BoundShardQuery represents a single query request for the specified list of shards. This is used in a list for ExecuteBatchShardsRequest.

    query

    query is the query and bind variables to execute.

    keyspace

    keyspace to target the query to.

    shards

    shards to target the query to. A DML can only target one shard.

    Annotations
    @SerialVersionUID()
  5. final case class CommitRequest(callerId: Option[CallerID] = None, session: Option[Session] = None, atomic: Boolean = false) extends GeneratedMessage with Message[CommitRequest] with Updatable[CommitRequest] with Product with Serializable

    Permalink

    CommitRequest is the payload to Commit.

    CommitRequest is the payload to Commit.

    callerId

    caller_id identifies the caller. This is the effective caller ID, set by the application to further identify the caller.

    session

    session carries the current transaction data to commit.

    atomic

    atomic specifies if the commit should go through the 2PC workflow to ensure atomicity.

    Annotations
    @SerialVersionUID()
  6. final case class CommitResponse() extends GeneratedMessage with Message[CommitResponse] with Updatable[CommitResponse] with Product with Serializable

    Permalink

    CommitResponse is the returned value from Commit.

    CommitResponse is the returned value from Commit.

    Annotations
    @SerialVersionUID()
  7. final case class ExecuteBatchKeyspaceIdsRequest(callerId: Option[CallerID] = None, session: Option[Session] = None, queries: Seq[BoundKeyspaceIdQuery] = _root_.scala.collection.Seq.empty, tabletType: TabletType = ..., asTransaction: Boolean = false, options: Option[ExecuteOptions] = None) extends GeneratedMessage with Message[ExecuteBatchKeyspaceIdsRequest] with Updatable[ExecuteBatchKeyspaceIdsRequest] with Product with Serializable

    Permalink

    ExecuteBatchKeyspaceIdsRequest is the payload to ExecuteBatchKeyspaceId.

    ExecuteBatchKeyspaceIdsRequest is the payload to ExecuteBatchKeyspaceId.

    callerId

    caller_id identifies the caller. This is the effective caller ID, set by the application to further identify the caller.

    session

    session carries the current transaction data. It is returned by Begin. Do not fill it in if outside of a transaction.

    tabletType

    tablet_type is the type of tablets that this query is targeted to.

    asTransaction

    as_transaction will execute the queries in this batch in a single transaction per shard, created for this purpose. (this can be seen as adding a 'begin' before and 'commit' after the queries). Only makes sense if tablet_type is master. If set, the Session is ignored.

    options

    options

    Annotations
    @SerialVersionUID()
  8. final case class ExecuteBatchKeyspaceIdsResponse(error: Option[RPCError] = None, session: Option[Session] = None, results: Seq[QueryResult] = _root_.scala.collection.Seq.empty) extends GeneratedMessage with Message[ExecuteBatchKeyspaceIdsResponse] with Updatable[ExecuteBatchKeyspaceIdsResponse] with Product with Serializable

    Permalink

    ExecuteBatchKeyspaceIdsResponse is the returned value from ExecuteBatchKeyspaceId.

    ExecuteBatchKeyspaceIdsResponse is the returned value from ExecuteBatchKeyspaceId.

    error

    error contains an application level error if necessary. Note the session may have changed, even when an error is returned (for instance if a database integrity error happened).

    session

    session is the updated session information (only returned inside a transaction).

    results

    result contains the query result, only set if error is unset.

    Annotations
    @SerialVersionUID()
  9. final case class ExecuteBatchRequest(callerId: Option[CallerID] = None, session: Option[Session] = None, queries: Seq[BoundQuery] = _root_.scala.collection.Seq.empty, tabletType: TabletType = ..., asTransaction: Boolean = false, keyspace: String = "", options: Option[ExecuteOptions] = None) extends GeneratedMessage with Message[ExecuteBatchRequest] with Updatable[ExecuteBatchRequest] with Product with Serializable

    Permalink

    ExecuteBatchRequest is the payload to ExecuteBatch.

    ExecuteBatchRequest is the payload to ExecuteBatch.

    callerId

    caller_id identifies the caller. This is the effective caller ID, set by the application to further identify the caller.

    session

    session carries the current transaction data. It is returned by Begin. Do not fill it in if outside of a transaction.

    queries

    queries is a list of query and bind variables to execute.

    tabletType

    tablet_type is the type of tablets that these queries is targeted to.

    asTransaction

    as_transaction will execute the queries in this batch in a single transaction per shard, created for this purpose. (this can be seen as adding a 'begin' before and 'commit' after the queries). Only makes sense if tablet_type is master. If set, the Session is ignored.

    keyspace

    keyspace to target the queries to.

    options

    options

    Annotations
    @SerialVersionUID()
  10. final case class ExecuteBatchResponse(error: Option[RPCError] = None, session: Option[Session] = None, results: Seq[ResultWithError] = _root_.scala.collection.Seq.empty) extends GeneratedMessage with Message[ExecuteBatchResponse] with Updatable[ExecuteBatchResponse] with Product with Serializable

    Permalink

    ExecuteBatchResponse is the returned value from ExecuteBatch.

    ExecuteBatchResponse is the returned value from ExecuteBatch.

    error

    error contains an application level error if necessary. Note the session may have changed, even when an error is returned (for instance if a database integrity error happened).

    session

    session is the updated session information (only returned inside a transaction).

    results

    results contains the query results, only set if application level error is unset.

    Annotations
    @SerialVersionUID()
  11. final case class ExecuteBatchShardsRequest(callerId: Option[CallerID] = None, session: Option[Session] = None, queries: Seq[BoundShardQuery] = _root_.scala.collection.Seq.empty, tabletType: TabletType = ..., asTransaction: Boolean = false, options: Option[ExecuteOptions] = None) extends GeneratedMessage with Message[ExecuteBatchShardsRequest] with Updatable[ExecuteBatchShardsRequest] with Product with Serializable

    Permalink

    ExecuteBatchShardsRequest is the payload to ExecuteBatchShards

    ExecuteBatchShardsRequest is the payload to ExecuteBatchShards

    callerId

    caller_id identifies the caller. This is the effective caller ID, set by the application to further identify the caller.

    session

    session carries the current transaction data. It is returned by Begin. Do not fill it in if outside of a transaction.

    queries

    queries carries all the queries to execute.

    tabletType

    tablet_type is the type of tablets that this query is targeted to.

    asTransaction

    as_transaction will execute the queries in this batch in a single transaction per shard, created for this purpose. (this can be seen as adding a 'begin' before and 'commit' after the queries). Only makes sense if tablet_type is master. If set, the Session is ignored.

    options

    options

    Annotations
    @SerialVersionUID()
  12. final case class ExecuteBatchShardsResponse(error: Option[RPCError] = None, session: Option[Session] = None, results: Seq[QueryResult] = _root_.scala.collection.Seq.empty) extends GeneratedMessage with Message[ExecuteBatchShardsResponse] with Updatable[ExecuteBatchShardsResponse] with Product with Serializable

    Permalink

    ExecuteBatchShardsResponse is the returned value from ExecuteBatchShards.

    ExecuteBatchShardsResponse is the returned value from ExecuteBatchShards.

    error

    error contains an application level error if necessary. Note the session may have changed, even when an error is returned (for instance if a database integrity error happened).

    session

    session is the updated session information (only returned inside a transaction).

    results

    result contains the query result, only set if error is unset.

    Annotations
    @SerialVersionUID()
  13. final case class ExecuteEntityIdsRequest(callerId: Option[CallerID] = None, session: Option[Session] = None, query: Option[BoundQuery] = None, keyspace: String = "", entityColumnName: String = "", entityKeyspaceIds: Seq[EntityId] = _root_.scala.collection.Seq.empty, tabletType: TabletType = ..., notInTransaction: Boolean = false, options: Option[ExecuteOptions] = None) extends GeneratedMessage with Message[ExecuteEntityIdsRequest] with Updatable[ExecuteEntityIdsRequest] with Product with Serializable

    Permalink

    ExecuteEntityIdsRequest is the payload to ExecuteEntityIds.

    ExecuteEntityIdsRequest is the payload to ExecuteEntityIds.

    callerId

    caller_id identifies the caller. This is the effective caller ID, set by the application to further identify the caller.

    session

    session carries the current transaction data. It is returned by Begin. Do not fill it in if outside of a transaction.

    query

    query is the query and bind variables to execute.

    keyspace

    keyspace to target the query to.

    entityColumnName

    entity_column_name is the column name to use.

    entityKeyspaceIds

    entity_keyspace_ids are pairs of entity_column_name values associated with its corresponding keyspace_id.

    tabletType

    tablet_type is the type of tablets that this query is targeted to.

    notInTransaction

    not_in_transaction is deprecated and should not be used.

    options

    options

    Annotations
    @SerialVersionUID()
  14. final case class ExecuteEntityIdsResponse(error: Option[RPCError] = None, session: Option[Session] = None, result: Option[QueryResult] = None) extends GeneratedMessage with Message[ExecuteEntityIdsResponse] with Updatable[ExecuteEntityIdsResponse] with Product with Serializable

    Permalink

    ExecuteEntityIdsResponse is the returned value from ExecuteEntityIds.

    ExecuteEntityIdsResponse is the returned value from ExecuteEntityIds.

    error

    error contains an application level error if necessary. Note the session may have changed, even when an error is returned (for instance if a database integrity error happened).

    session

    session is the updated session information (only returned inside a transaction).

    result

    result contains the query result, only set if error is unset.

    Annotations
    @SerialVersionUID()
  15. final case class ExecuteKeyRangesRequest(callerId: Option[CallerID] = None, session: Option[Session] = None, query: Option[BoundQuery] = None, keyspace: String = "", keyRanges: Seq[KeyRange] = _root_.scala.collection.Seq.empty, tabletType: TabletType = ..., notInTransaction: Boolean = false, options: Option[ExecuteOptions] = None) extends GeneratedMessage with Message[ExecuteKeyRangesRequest] with Updatable[ExecuteKeyRangesRequest] with Product with Serializable

    Permalink

    ExecuteKeyRangesRequest is the payload to ExecuteKeyRanges.

    ExecuteKeyRangesRequest is the payload to ExecuteKeyRanges.

    callerId

    caller_id identifies the caller. This is the effective caller ID, set by the application to further identify the caller.

    session

    session carries the current transaction data. It is returned by Begin. Do not fill it in if outside of a transaction.

    query

    query is the query and bind variables to execute.

    keyspace

    keyspace to target the query to

    keyRanges

    key_ranges contains the list of key ranges affected by this query. Will be used to find the shards to send the query to.

    tabletType

    tablet_type is the type of tablets that this query is targeted to.

    notInTransaction

    not_in_transaction is deprecated and should not be used.

    options

    options

    Annotations
    @SerialVersionUID()
  16. final case class ExecuteKeyRangesResponse(error: Option[RPCError] = None, session: Option[Session] = None, result: Option[QueryResult] = None) extends GeneratedMessage with Message[ExecuteKeyRangesResponse] with Updatable[ExecuteKeyRangesResponse] with Product with Serializable

    Permalink

    ExecuteKeyRangesResponse is the returned value from ExecuteKeyRanges.

    ExecuteKeyRangesResponse is the returned value from ExecuteKeyRanges.

    error

    error contains an application level error if necessary. Note the session may have changed, even when an error is returned (for instance if a database integrity error happened).

    session

    session is the updated session information (only returned inside a transaction).

    result

    result contains the query result, only set if error is unset.

    Annotations
    @SerialVersionUID()
  17. final case class ExecuteKeyspaceIdsRequest(callerId: Option[CallerID] = None, session: Option[Session] = None, query: Option[BoundQuery] = None, keyspace: String = "", keyspaceIds: Seq[ByteString] = _root_.scala.collection.Seq.empty, tabletType: TabletType = ..., notInTransaction: Boolean = false, options: Option[ExecuteOptions] = None) extends GeneratedMessage with Message[ExecuteKeyspaceIdsRequest] with Updatable[ExecuteKeyspaceIdsRequest] with Product with Serializable

    Permalink

    ExecuteKeyspaceIdsRequest is the payload to ExecuteKeyspaceIds.

    ExecuteKeyspaceIdsRequest is the payload to ExecuteKeyspaceIds.

    callerId

    caller_id identifies the caller. This is the effective caller ID, set by the application to further identify the caller.

    session

    session carries the current transaction data. It is returned by Begin. Do not fill it in if outside of a transaction.

    query

    query is the query and bind variables to execute.

    keyspace

    keyspace to target the query to.

    keyspaceIds

    keyspace_ids contains the list of keyspace_ids affected by this query. Will be used to find the shards to send the query to.

    tabletType

    tablet_type is the type of tablets that this query is targeted to.

    notInTransaction

    not_in_transaction is deprecated and should not be used.

    options

    options

    Annotations
    @SerialVersionUID()
  18. final case class ExecuteKeyspaceIdsResponse(error: Option[RPCError] = None, session: Option[Session] = None, result: Option[QueryResult] = None) extends GeneratedMessage with Message[ExecuteKeyspaceIdsResponse] with Updatable[ExecuteKeyspaceIdsResponse] with Product with Serializable

    Permalink

    ExecuteKeyspaceIdsResponse is the returned value from ExecuteKeyspaceIds.

    ExecuteKeyspaceIdsResponse is the returned value from ExecuteKeyspaceIds.

    error

    error contains an application level error if necessary. Note the session may have changed, even when an error is returned (for instance if a database integrity error happened).

    session

    session is the updated session information (only returned inside a transaction).

    result

    result contains the query result, only set if error is unset.

    Annotations
    @SerialVersionUID()
  19. final case class ExecuteRequest(callerId: Option[CallerID] = None, session: Option[Session] = None, query: Option[BoundQuery] = None, tabletType: TabletType = ..., notInTransaction: Boolean = false, keyspace: String = "", options: Option[ExecuteOptions] = None) extends GeneratedMessage with Message[ExecuteRequest] with Updatable[ExecuteRequest] with Product with Serializable

    Permalink

    ExecuteRequest is the payload to Execute.

    ExecuteRequest is the payload to Execute.

    callerId

    caller_id identifies the caller. This is the effective caller ID, set by the application to further identify the caller.

    session

    session carries the current transaction data. It is returned by Begin. Do not fill it in if outside of a transaction.

    query

    query is the query and bind variables to execute.

    tabletType

    tablet_type is the type of tablets that this query is targeted to.

    notInTransaction

    not_in_transaction is deprecated and should not be used.

    keyspace

    keyspace to target the query to.

    options

    options

    Annotations
    @SerialVersionUID()
  20. final case class ExecuteResponse(error: Option[RPCError] = None, session: Option[Session] = None, result: Option[QueryResult] = None) extends GeneratedMessage with Message[ExecuteResponse] with Updatable[ExecuteResponse] with Product with Serializable

    Permalink

    ExecuteResponse is the returned value from Execute.

    ExecuteResponse is the returned value from Execute.

    error

    error contains an application level error if necessary. Note the session may have changed, even when an error is returned (for instance if a database integrity error happened).

    session

    session is the updated session information (only returned inside a transaction).

    result

    result contains the query result, only set if error is unset.

    Annotations
    @SerialVersionUID()
  21. final case class ExecuteShardsRequest(callerId: Option[CallerID] = None, session: Option[Session] = None, query: Option[BoundQuery] = None, keyspace: String = "", shards: Seq[String] = _root_.scala.collection.Seq.empty, tabletType: TabletType = ..., notInTransaction: Boolean = false, options: Option[ExecuteOptions] = None) extends GeneratedMessage with Message[ExecuteShardsRequest] with Updatable[ExecuteShardsRequest] with Product with Serializable

    Permalink

    ExecuteShardsRequest is the payload to ExecuteShards.

    ExecuteShardsRequest is the payload to ExecuteShards.

    callerId

    caller_id identifies the caller. This is the effective caller ID, set by the application to further identify the caller.

    session

    session carries the current transaction data. It is returned by Begin. Do not fill it in if outside of a transaction.

    query

    query is the query and bind variables to execute.

    keyspace

    keyspace to target the query to.

    shards

    shards to target the query to. A DML can only target one shard.

    tabletType

    tablet_type is the type of tablets that this query is targeted to.

    notInTransaction

    not_in_transaction is deprecated and should not be used.

    options

    options

    Annotations
    @SerialVersionUID()
  22. final case class ExecuteShardsResponse(error: Option[RPCError] = None, session: Option[Session] = None, result: Option[QueryResult] = None) extends GeneratedMessage with Message[ExecuteShardsResponse] with Updatable[ExecuteShardsResponse] with Product with Serializable

    Permalink

    ExecuteShardsResponse is the returned value from ExecuteShards.

    ExecuteShardsResponse is the returned value from ExecuteShards.

    error

    error contains an application level error if necessary. Note the session may have changed, even when an error is returned (for instance if a database integrity error happened).

    session

    session is the updated session information (only returned inside a transaction).

    result

    result contains the query result, only set if error is unset.

    Annotations
    @SerialVersionUID()
  23. final case class GetSrvKeyspaceRequest(keyspace: String = "") extends GeneratedMessage with Message[GetSrvKeyspaceRequest] with Updatable[GetSrvKeyspaceRequest] with Product with Serializable

    Permalink

    GetSrvKeyspaceRequest is the payload to GetSrvKeyspace.

    GetSrvKeyspaceRequest is the payload to GetSrvKeyspace.

    keyspace

    keyspace name to fetch.

    Annotations
    @SerialVersionUID()
  24. final case class GetSrvKeyspaceResponse(srvKeyspace: Option[SrvKeyspace] = None) extends GeneratedMessage with Message[GetSrvKeyspaceResponse] with Updatable[GetSrvKeyspaceResponse] with Product with Serializable

    Permalink

    GetSrvKeyspaceResponse is the returned value from GetSrvKeyspace.

    GetSrvKeyspaceResponse is the returned value from GetSrvKeyspace.

    srvKeyspace

    srv_keyspace is the topology object for the SrvKeyspace.

    Annotations
    @SerialVersionUID()
  25. final case class MessageAckRequest(callerId: Option[CallerID] = None, keyspace: String = "", name: String = "", ids: Seq[Value] = _root_.scala.collection.Seq.empty) extends GeneratedMessage with Message[MessageAckRequest] with Updatable[MessageAckRequest] with Product with Serializable

    Permalink

    MessageAckRequest is the request payload for MessageAck.

    MessageAckRequest is the request payload for MessageAck.

    callerId

    caller_id identifies the caller. This is the effective caller ID, set by the application to further identify the caller.

    keyspace

    Optional keyspace for message table.

    name

    name is the message table name.

    ids

    ids is the list of ids to ack.

    Annotations
    @SerialVersionUID()
  26. final case class MessageStreamRequest(callerId: Option[CallerID] = None, keyspace: String = "", shard: String = "", keyRange: Option[KeyRange] = None, name: String = "") extends GeneratedMessage with Message[MessageStreamRequest] with Updatable[MessageStreamRequest] with Product with Serializable

    Permalink

    MessageStreamRequest is the request payload for MessageStream.

    MessageStreamRequest is the request payload for MessageStream.

    callerId

    caller_id identifies the caller. This is the effective caller ID, set by the application to further identify the caller.

    keyspace

    keyspace to target the query to.

    shard

    shard to target the query to, for unsharded keyspaces.

    keyRange

    KeyRange to target the query to, for sharded keyspaces.

    name

    name is the message table name.

    Annotations
    @SerialVersionUID()
  27. final case class ResolveTransactionRequest(callerId: Option[CallerID] = None, dtid: String = "") extends GeneratedMessage with Message[ResolveTransactionRequest] with Updatable[ResolveTransactionRequest] with Product with Serializable

    Permalink

    ResolveTransactionRequest is the payload to ResolveTransaction.

    ResolveTransactionRequest is the payload to ResolveTransaction.

    callerId

    caller_id identifies the caller. This is the effective caller ID, set by the application to further identify the caller.

    dtid

    dtid is the dtid of the transaction to be resolved.

    Annotations
    @SerialVersionUID()
  28. final case class ResolveTransactionResponse() extends GeneratedMessage with Message[ResolveTransactionResponse] with Updatable[ResolveTransactionResponse] with Product with Serializable

    Permalink

    ResolveTransactionResponse is the returned value from Rollback.

    ResolveTransactionResponse is the returned value from Rollback.

    Annotations
    @SerialVersionUID()
  29. final case class RollbackRequest(callerId: Option[CallerID] = None, session: Option[Session] = None) extends GeneratedMessage with Message[RollbackRequest] with Updatable[RollbackRequest] with Product with Serializable

    Permalink

    RollbackRequest is the payload to Rollback.

    RollbackRequest is the payload to Rollback.

    callerId

    caller_id identifies the caller. This is the effective caller ID, set by the application to further identify the caller.

    session

    session carries the current transaction data to rollback.

    Annotations
    @SerialVersionUID()
  30. final case class RollbackResponse() extends GeneratedMessage with Message[RollbackResponse] with Updatable[RollbackResponse] with Product with Serializable

    Permalink

    RollbackResponse is the returned value from Rollback.

    RollbackResponse is the returned value from Rollback.

    Annotations
    @SerialVersionUID()
  31. final case class Session(inTransaction: Boolean = false, shardSessions: Seq[ShardSession] = _root_.scala.collection.Seq.empty, singleDb: Boolean = false) extends GeneratedMessage with Message[Session] with Updatable[Session] with Product with Serializable

    Permalink

    Session objects are session cookies and are invalidated on use.

    Session objects are session cookies and are invalidated on use. Query results will contain updated session values. Their content should be opaque to the user.

    singleDb

    single_db specifies if the transaction should be restricted to a single database.

    Annotations
    @SerialVersionUID()
  32. final case class SplitQueryRequest(callerId: Option[CallerID] = None, keyspace: String = "", query: Option[BoundQuery] = None, splitColumn: Seq[String] = _root_.scala.collection.Seq.empty, splitCount: Long = 0L, numRowsPerQueryPart: Long = 0L, algorithm: Algorithm = ..., useSplitQueryV2: Boolean = false) extends GeneratedMessage with Message[SplitQueryRequest] with Updatable[SplitQueryRequest] with Product with Serializable

    Permalink

    SplitQueryRequest is the payload to SplitQuery.

    SplitQueryRequest is the payload to SplitQuery.

    SplitQuery takes a "SELECT" query and generates a list of queries called "query-parts". Each query-part consists of the original query with an added WHERE clause that restricts the query-part to operate only on rows whose values in the the columns listed in the "split_column" field of the request (see below) are in a particular range.

    It is guaranteed that the set of rows obtained from executing each query-part on a database snapshot and merging (without deduping) the results is equal to the set of rows obtained from executing the original query on the same snapshot with the rows containing NULL values in any of the split_column's excluded.

    This is typically called by the MapReduce master when reading from Vitess. There it's desirable that the sets of rows returned by the query-parts have roughly the same size.

    callerId

    caller_id identifies the caller. This is the effective caller ID, set by the application to further identify the caller.

    keyspace

    keyspace to target the query to.

    query

    The query and bind variables to produce splits for. The given query must be a simple query of the form SELECT <cols> FROM <table> WHERE <filter>. It must not contain subqueries nor any of the keywords JOIN, GROUP BY, ORDER BY, LIMIT, DISTINCT. Furthermore, <table> must be a single “concrete” table. It cannot be a view.

    splitColumn

    Each generated query-part will be restricted to rows whose values in the columns listed in this field are in a particular range. The list of columns named here must be a prefix of the list of columns defining some index or primary key of the table referenced in 'query'. For many tables using the primary key columns (in order) is sufficient and this is the default if this field is omitted. See the comment on the 'algorithm' field for more restrictions and information.

    splitCount

    You can specify either an estimate of the number of query-parts to generate or an estimate of the number of rows each query-part should return. Thus, exactly one of split_count or num_rows_per_query_part should be nonzero. The non-given parameter is calculated from the given parameter using the formula: split_count * num_rows_per_query_pary = table_size, where table_size is an approximation of the number of rows in the table. Note that if "split_count" is given it is regarded as an estimate. The number of query-parts returned may differ slightly (in particular, if it's not a whole multiple of the number of vitess shards).

    algorithm

    The algorithm to use to split the query. The split algorithm is performed on each database shard in parallel. The lists of query-parts generated by the shards are merged and returned to the caller. Two algorithms are supported: EQUAL_SPLITS If this algorithm is selected then only the first 'split_column' given is used (or the first primary key column if the 'split_column' field is empty). In the rest of this algorithm's description, we refer to this column as "the split column". The split column must have numeric type (integral or floating point). The algorithm works by taking the interval [min, max], where min and max are the minimum and maximum values of the split column in the table-shard, respectively, and partitioning it into 'split_count' sub-intervals of equal size. The added WHERE clause of each query-part restricts that part to rows whose value in the split column belongs to a particular sub-interval. This is fast, but requires that the distribution of values of the split column be uniform in [min, max] for the number of rows returned by each query part to be roughly the same. FULL_SCAN If this algorithm is used then the split_column must be the primary key columns (in order). This algorithm performs a full-scan of the table-shard referenced in 'query' to get "boundary" rows that are num_rows_per_query_part apart when the table is ordered by the columns listed in 'split_column'. It then restricts each query-part to the rows located between two successive boundary rows. This algorithm supports multiple split_column's of any type, but is slower than EQUAL_SPLITS.

    useSplitQueryV2

    TODO(erez): This field is no longer used by the server code. Remove this field after this new server code is released to prod. We must keep it for now, so that clients can still send it to the old server code currently in production.

    Annotations
    @SerialVersionUID()
  33. final case class SplitQueryResponse(splits: Seq[Part] = _root_.scala.collection.Seq.empty) extends GeneratedMessage with Message[SplitQueryResponse] with Updatable[SplitQueryResponse] with Product with Serializable

    Permalink

    SplitQueryResponse is the returned value from SplitQuery.

    SplitQueryResponse is the returned value from SplitQuery.

    splits

    splits contains the queries to run to fetch the entire data set.

    Annotations
    @SerialVersionUID()
  34. final case class StreamExecuteKeyRangesRequest(callerId: Option[CallerID] = None, query: Option[BoundQuery] = None, keyspace: String = "", keyRanges: Seq[KeyRange] = _root_.scala.collection.Seq.empty, tabletType: TabletType = ..., options: Option[ExecuteOptions] = None) extends GeneratedMessage with Message[StreamExecuteKeyRangesRequest] with Updatable[StreamExecuteKeyRangesRequest] with Product with Serializable

    Permalink

    StreamExecuteKeyRangesRequest is the payload to StreamExecuteKeyRanges.

    StreamExecuteKeyRangesRequest is the payload to StreamExecuteKeyRanges.

    callerId

    caller_id identifies the caller. This is the effective caller ID, set by the application to further identify the caller.

    query

    query is the query and bind variables to execute.

    keyspace

    keyspace to target the query to.

    keyRanges

    key_ranges contains the list of key ranges affected by this query. Will be used to find the shards to send the query to.

    tabletType

    tablet_type is the type of tablets that this query is targeted to.

    options

    options

    Annotations
    @SerialVersionUID()
  35. final case class StreamExecuteKeyRangesResponse(result: Option[QueryResult] = None) extends GeneratedMessage with Message[StreamExecuteKeyRangesResponse] with Updatable[StreamExecuteKeyRangesResponse] with Product with Serializable

    Permalink

    StreamExecuteKeyRangesResponse is the returned value from StreamExecuteKeyRanges.

    StreamExecuteKeyRangesResponse is the returned value from StreamExecuteKeyRanges.

    result

    result contains the result data. The first value contains only Fields information. The next values contain the actual rows, a few values per result.

    Annotations
    @SerialVersionUID()
  36. final case class StreamExecuteKeyspaceIdsRequest(callerId: Option[CallerID] = None, query: Option[BoundQuery] = None, keyspace: String = "", keyspaceIds: Seq[ByteString] = _root_.scala.collection.Seq.empty, tabletType: TabletType = ..., options: Option[ExecuteOptions] = None) extends GeneratedMessage with Message[StreamExecuteKeyspaceIdsRequest] with Updatable[StreamExecuteKeyspaceIdsRequest] with Product with Serializable

    Permalink

    StreamExecuteKeyspaceIdsRequest is the payload to StreamExecuteKeyspaceIds.

    StreamExecuteKeyspaceIdsRequest is the payload to StreamExecuteKeyspaceIds.

    callerId

    caller_id identifies the caller. This is the effective caller ID, set by the application to further identify the caller.

    query

    query is the query and bind variables to execute.

    keyspace

    keyspace to target the query to.

    keyspaceIds

    keyspace_ids contains the list of keyspace_ids affected by this query. Will be used to find the shards to send the query to.

    tabletType

    tablet_type is the type of tablets that this query is targeted to.

    options

    options

    Annotations
    @SerialVersionUID()
  37. final case class StreamExecuteKeyspaceIdsResponse(result: Option[QueryResult] = None) extends GeneratedMessage with Message[StreamExecuteKeyspaceIdsResponse] with Updatable[StreamExecuteKeyspaceIdsResponse] with Product with Serializable

    Permalink

    StreamExecuteKeyspaceIdsResponse is the returned value from StreamExecuteKeyspaceIds.

    StreamExecuteKeyspaceIdsResponse is the returned value from StreamExecuteKeyspaceIds.

    result

    result contains the result data. The first value contains only Fields information. The next values contain the actual rows, a few values per result.

    Annotations
    @SerialVersionUID()
  38. final case class StreamExecuteRequest(callerId: Option[CallerID] = None, query: Option[BoundQuery] = None, tabletType: TabletType = ..., keyspace: String = "", options: Option[ExecuteOptions] = None) extends GeneratedMessage with Message[StreamExecuteRequest] with Updatable[StreamExecuteRequest] with Product with Serializable

    Permalink

    StreamExecuteRequest is the payload to StreamExecute.

    StreamExecuteRequest is the payload to StreamExecute.

    callerId

    caller_id identifies the caller. This is the effective caller ID, set by the application to further identify the caller.

    query

    query is the query and bind variables to execute.

    tabletType

    tablet_type is the type of tablets that this query is targeted to.

    keyspace

    keyspace to target the query to.

    options

    options

    Annotations
    @SerialVersionUID()
  39. final case class StreamExecuteResponse(result: Option[QueryResult] = None) extends GeneratedMessage with Message[StreamExecuteResponse] with Updatable[StreamExecuteResponse] with Product with Serializable

    Permalink

    StreamExecuteResponse is the returned value from StreamExecute.

    StreamExecuteResponse is the returned value from StreamExecute.

    result

    result contains the result data. The first value contains only Fields information. The next values contain the actual rows, a few values per result.

    Annotations
    @SerialVersionUID()
  40. final case class StreamExecuteShardsRequest(callerId: Option[CallerID] = None, query: Option[BoundQuery] = None, keyspace: String = "", shards: Seq[String] = _root_.scala.collection.Seq.empty, tabletType: TabletType = ..., options: Option[ExecuteOptions] = None) extends GeneratedMessage with Message[StreamExecuteShardsRequest] with Updatable[StreamExecuteShardsRequest] with Product with Serializable

    Permalink

    StreamExecuteShardsRequest is the payload to StreamExecuteShards.

    StreamExecuteShardsRequest is the payload to StreamExecuteShards.

    callerId

    caller_id identifies the caller. This is the effective caller ID, set by the application to further identify the caller.

    query

    query is the query and bind variables to execute.

    keyspace

    keyspace to target the query to.

    shards

    shards to target the query to.

    tabletType

    tablet_type is the type of tablets that this query is targeted to.

    options

    options

    Annotations
    @SerialVersionUID()
  41. final case class StreamExecuteShardsResponse(result: Option[QueryResult] = None) extends GeneratedMessage with Message[StreamExecuteShardsResponse] with Updatable[StreamExecuteShardsResponse] with Product with Serializable

    Permalink

    StreamExecuteShardsResponse is the returned value from StreamExecuteShards.

    StreamExecuteShardsResponse is the returned value from StreamExecuteShards.

    result

    result contains the result data. The first value contains only Fields information. The next values contain the actual rows, a few values per result.

    Annotations
    @SerialVersionUID()
  42. final case class UpdateStreamRequest(callerId: Option[CallerID] = None, keyspace: String = "", shard: String = "", keyRange: Option[KeyRange] = None, tabletType: TabletType = ..., timestamp: Long = 0L, event: Option[EventToken] = None) extends GeneratedMessage with Message[UpdateStreamRequest] with Updatable[UpdateStreamRequest] with Product with Serializable

    Permalink

    UpdateStreamRequest is the payload to UpdateStream.

    UpdateStreamRequest is the payload to UpdateStream.

    callerId

    caller_id identifies the caller. This is the effective caller ID, set by the application to further identify the caller.

    keyspace

    keyspace to target the query to.

    shard

    shard to target the query to, for unsharded keyspaces.

    keyRange

    KeyRange to target the query to, for sharded keyspaces.

    tabletType

    tablet_type is the type of tablets that this request is targeted to.

    timestamp

    timestamp is the timestamp to start the stream from. It is unused is event is set, and we are only streaming from the shard described by event.shard.

    event

    event is the event to start the stream from. Note it is only used if we are streaming from exactly the same shard as this event was coming from. Otherwise we can't use this event, and will use the timestamp as a starting point.

    Annotations
    @SerialVersionUID()
  43. final case class UpdateStreamResponse(event: Option[StreamEvent] = None, resumeTimestamp: Long = 0L) extends GeneratedMessage with Message[UpdateStreamResponse] with Updatable[UpdateStreamResponse] with Product with Serializable

    Permalink

    UpdateStreamResponse is streamed by UpdateStream.

    UpdateStreamResponse is streamed by UpdateStream.

    event

    event is one event from the stream.

    resumeTimestamp

    resume_timestamp is the timestamp to resume streaming from if the client is interrupted. If the Update Stream only goes to one shard, this is equal to event.timestamp. If the Update Stream goes to multiple shards and aggregates, this is the minimum value of the current timestamp for all shards.

    Annotations
    @SerialVersionUID()

Value Members

  1. object BeginRequest extends GeneratedMessageCompanion[BeginRequest] with Serializable

    Permalink
  2. object BeginResponse extends GeneratedMessageCompanion[BeginResponse] with Serializable

    Permalink
  3. object BoundKeyspaceIdQuery extends GeneratedMessageCompanion[BoundKeyspaceIdQuery] with Serializable

    Permalink
  4. object BoundShardQuery extends GeneratedMessageCompanion[BoundShardQuery] with Serializable

    Permalink
  5. object CommitRequest extends GeneratedMessageCompanion[CommitRequest] with Serializable

    Permalink
  6. object CommitResponse extends GeneratedMessageCompanion[CommitResponse] with Serializable

    Permalink
  7. object ExecuteBatchKeyspaceIdsRequest extends GeneratedMessageCompanion[ExecuteBatchKeyspaceIdsRequest] with Serializable

    Permalink
  8. object ExecuteBatchKeyspaceIdsResponse extends GeneratedMessageCompanion[ExecuteBatchKeyspaceIdsResponse] with Serializable

    Permalink
  9. object ExecuteBatchRequest extends GeneratedMessageCompanion[ExecuteBatchRequest] with Serializable

    Permalink
  10. object ExecuteBatchResponse extends GeneratedMessageCompanion[ExecuteBatchResponse] with Serializable

    Permalink
  11. object ExecuteBatchShardsRequest extends GeneratedMessageCompanion[ExecuteBatchShardsRequest] with Serializable

    Permalink
  12. object ExecuteBatchShardsResponse extends GeneratedMessageCompanion[ExecuteBatchShardsResponse] with Serializable

    Permalink
  13. object ExecuteEntityIdsRequest extends GeneratedMessageCompanion[ExecuteEntityIdsRequest] with Serializable

    Permalink
  14. object ExecuteEntityIdsResponse extends GeneratedMessageCompanion[ExecuteEntityIdsResponse] with Serializable

    Permalink
  15. object ExecuteKeyRangesRequest extends GeneratedMessageCompanion[ExecuteKeyRangesRequest] with Serializable

    Permalink
  16. object ExecuteKeyRangesResponse extends GeneratedMessageCompanion[ExecuteKeyRangesResponse] with Serializable

    Permalink
  17. object ExecuteKeyspaceIdsRequest extends GeneratedMessageCompanion[ExecuteKeyspaceIdsRequest] with Serializable

    Permalink
  18. object ExecuteKeyspaceIdsResponse extends GeneratedMessageCompanion[ExecuteKeyspaceIdsResponse] with Serializable

    Permalink
  19. object ExecuteRequest extends GeneratedMessageCompanion[ExecuteRequest] with Serializable

    Permalink
  20. object ExecuteResponse extends GeneratedMessageCompanion[ExecuteResponse] with Serializable

    Permalink
  21. object ExecuteShardsRequest extends GeneratedMessageCompanion[ExecuteShardsRequest] with Serializable

    Permalink
  22. object ExecuteShardsResponse extends GeneratedMessageCompanion[ExecuteShardsResponse] with Serializable

    Permalink
  23. object GetSrvKeyspaceRequest extends GeneratedMessageCompanion[GetSrvKeyspaceRequest] with Serializable

    Permalink
  24. object GetSrvKeyspaceResponse extends GeneratedMessageCompanion[GetSrvKeyspaceResponse] with Serializable

    Permalink
  25. object MessageAckRequest extends GeneratedMessageCompanion[MessageAckRequest] with Serializable

    Permalink
  26. object MessageStreamRequest extends GeneratedMessageCompanion[MessageStreamRequest] with Serializable

    Permalink
  27. object ResolveTransactionRequest extends GeneratedMessageCompanion[ResolveTransactionRequest] with Serializable

    Permalink
  28. object ResolveTransactionResponse extends GeneratedMessageCompanion[ResolveTransactionResponse] with Serializable

    Permalink
  29. object RollbackRequest extends GeneratedMessageCompanion[RollbackRequest] with Serializable

    Permalink
  30. object RollbackResponse extends GeneratedMessageCompanion[RollbackResponse] with Serializable

    Permalink
  31. object Session extends GeneratedMessageCompanion[Session] with Serializable

    Permalink
  32. object SplitQueryRequest extends GeneratedMessageCompanion[SplitQueryRequest] with Serializable

    Permalink
  33. object SplitQueryResponse extends GeneratedMessageCompanion[SplitQueryResponse] with Serializable

    Permalink
  34. object StreamExecuteKeyRangesRequest extends GeneratedMessageCompanion[StreamExecuteKeyRangesRequest] with Serializable

    Permalink
  35. object StreamExecuteKeyRangesResponse extends GeneratedMessageCompanion[StreamExecuteKeyRangesResponse] with Serializable

    Permalink
  36. object StreamExecuteKeyspaceIdsRequest extends GeneratedMessageCompanion[StreamExecuteKeyspaceIdsRequest] with Serializable

    Permalink
  37. object StreamExecuteKeyspaceIdsResponse extends GeneratedMessageCompanion[StreamExecuteKeyspaceIdsResponse] with Serializable

    Permalink
  38. object StreamExecuteRequest extends GeneratedMessageCompanion[StreamExecuteRequest] with Serializable

    Permalink
  39. object StreamExecuteResponse extends GeneratedMessageCompanion[StreamExecuteResponse] with Serializable

    Permalink
  40. object StreamExecuteShardsRequest extends GeneratedMessageCompanion[StreamExecuteShardsRequest] with Serializable

    Permalink
  41. object StreamExecuteShardsResponse extends GeneratedMessageCompanion[StreamExecuteShardsResponse] with Serializable

    Permalink
  42. object UpdateStreamRequest extends GeneratedMessageCompanion[UpdateStreamRequest] with Serializable

    Permalink
  43. object UpdateStreamResponse extends GeneratedMessageCompanion[UpdateStreamResponse] with Serializable

    Permalink
  44. object VtgateProto

    Permalink

Ungrouped