github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/proto/CraftBenchmark.proto (about)

     1  // Copyright 2021 PingCAP, Inc.
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // See the License for the specific language governing permissions and
    12  // limitations under the License.
    13  
    14  syntax = "proto3";
    15  package benchmark;
    16  
    17  option java_package = "io.tidb.bigdata.cdc.craft";
    18  option java_outer_classname = "CraftBenchmark";
    19  option optimize_for = SPEED;
    20  
    21  message Key {
    22  	uint64 ts = 1;
    23    string schema = 2;
    24    string table = 3;
    25    int64 row_id = 4;
    26    uint32 type = 5;
    27    int64 partition = 6;
    28  }
    29  
    30  message Column {
    31    string name = 1;
    32    uint32 type = 2;
    33    uint32 flag = 3;
    34    bytes value = 4;
    35  }
    36  
    37  message RowChanged {
    38    repeated Column old_value = 1;
    39    repeated Column new_value = 2;
    40  }
    41  
    42  message KeysColumnar {
    43    repeated uint64 ts = 1;
    44    repeated string schema = 2;
    45    repeated string table = 3;
    46    repeated int64 row_id = 4;
    47    repeated uint32 type = 5;
    48    repeated int64 partition = 6;
    49  }
    50  
    51  message ColumnsColumnar {
    52    repeated string name = 1;
    53    repeated uint32 type = 2;
    54    repeated bool where_handle = 3;
    55    repeated uint32 flag = 4;
    56    repeated bytes value = 5;
    57  }
    58  
    59  message RowChangedColumnar {
    60    repeated ColumnsColumnar old_value = 1;
    61    repeated ColumnsColumnar new_value = 2;
    62  }