github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/libraries/pingcap/go-hbase/protobuf/Snapshot.proto (about)

     1  package proto;
     2  /**
     3   * Licensed to the Apache Software Foundation (ASF) under one
     4   * or more contributor license agreements.  See the NOTICE file
     5   * distributed with this work for additional information
     6   * regarding copyright ownership.  The ASF licenses this file
     7   * to you under the Apache License, Version 2.0 (the
     8   * "License"); you may not use this file except in compliance
     9   * with the License.  You may obtain a copy of the License at
    10   *
    11   *     http://www.apache.org/licenses/LICENSE-2.0
    12   *
    13   * Unless required by applicable law or agreed to in writing, software
    14   * distributed under the License is distributed on an "AS IS" BASIS,
    15   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    16   * See the License for the specific language governing permissions and
    17   * limitations under the License.
    18   */
    19  option java_package = "org.apache.hadoop.hbase.protobuf.generated";
    20  option java_outer_classname = "SnapshotProtos";
    21  option java_generic_services = true;
    22  option java_generate_equals_and_hash = true;
    23  option optimize_for = SPEED;
    24  
    25  import "FS.proto";
    26  import "HBase.proto";
    27  
    28  message SnapshotFileInfo {
    29    enum Type {
    30      HFILE = 1;
    31      WAL = 2;
    32    }
    33  
    34    required Type type = 1;
    35  
    36    optional string hfile = 3;
    37  
    38    optional string wal_server = 4;
    39    optional string wal_name = 5;
    40  }
    41  
    42  message SnapshotRegionManifest {
    43    optional int32 version = 1;
    44  
    45    required RegionInfo region_info = 2;
    46    repeated FamilyFiles family_files = 3;
    47  
    48    message StoreFile {
    49      required string name = 1;
    50      optional Reference reference = 2;
    51  
    52      // TODO: Add checksums or other fields to verify the file
    53      optional uint64 file_size = 3;
    54    }
    55  
    56    message FamilyFiles {
    57      required bytes family_name = 1;
    58      repeated StoreFile store_files = 2;
    59    }
    60  }
    61  
    62  message SnapshotDataManifest {
    63    required TableSchema table_schema = 1;
    64    repeated SnapshotRegionManifest region_manifests = 2;
    65  }