All Downloads are FREE. Search and download functionalities are using the official Maven repository.

oenix.phoenix-server-hbase-2.6.5.2.1.source-code.TSOProto.proto Maven / Gradle / Ivy

The newest version!
//
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements.  See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership.  The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License.  You may obtain a copy of the License at
//
//   http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

option java_package = "org.apache.omid.proto";

option optimize_for = SPEED;

message Request {
    optional TimestampRequest timestampRequest = 1;
    optional CommitRequest commitRequest = 2;
    optional HandshakeRequest handshakeRequest = 3;
    optional FenceRequest fenceRequest = 4;
}

message TimestampRequest {
}

message CommitRequest {
    optional int64 startTimestamp = 1;
    optional bool isRetry = 2 [default = false];
    repeated int64 cellId = 3;
    repeated int64 TableId = 4;
}

message FenceRequest {
    optional int64 TableId = 1;
}

message Response {
    optional TimestampResponse timestampResponse = 1;
    optional CommitResponse commitResponse = 2;
    optional HandshakeResponse handshakeResponse = 3;
    optional FenceResponse fenceResponse = 4;
}

message TimestampResponse {
    optional int64 startTimestamp = 1;
}

message FenceResponse {
    optional int64 TableId = 1;
    optional int64 FenceId = 2;
}

message CommitResponse {
    optional bool aborted = 1;
    optional int64 startTimestamp = 2;
    optional int64 commitTimestamp = 3;
}

message Capabilities {
    // place here the capabilities a client has to have
    // to pass the handshake
}

message HandshakeRequest {
    optional Capabilities clientCapabilities = 1;
}

message HandshakeResponse {
    optional bool clientCompatible = 1;
    optional Capabilities serverCapabilities = 2;
    optional bool lowLatency = 3[default= false];
}

message Transaction {
    optional int64 timestamp = 1;
    optional int64 readTimestamp = 2;
    optional int32 visibilityLevel = 3;
    optional int64 epoch = 4;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy