67 lines
1.8 KiB
Protocol Buffer
67 lines
1.8 KiB
Protocol Buffer
/**
|
|
* 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.
|
|
*/
|
|
package hbase.pb;
|
|
|
|
option java_package = "org.apache.hadoop.hbase.protobuf.generated";
|
|
option java_outer_classname = "SnapshotProtos";
|
|
option java_generic_services = true;
|
|
option java_generate_equals_and_hash = true;
|
|
option optimize_for = SPEED;
|
|
|
|
import "FS.proto";
|
|
import "HBase.proto";
|
|
|
|
message SnapshotFileInfo {
|
|
enum Type {
|
|
HFILE = 1;
|
|
WAL = 2;
|
|
}
|
|
|
|
required Type type = 1;
|
|
|
|
optional string hfile = 3;
|
|
|
|
optional string wal_server = 4;
|
|
optional string wal_name = 5;
|
|
}
|
|
|
|
message SnapshotRegionManifest {
|
|
optional int32 version = 1;
|
|
|
|
required RegionInfo region_info = 2;
|
|
repeated FamilyFiles family_files = 3;
|
|
|
|
message StoreFile {
|
|
required string name = 1;
|
|
optional Reference reference = 2;
|
|
|
|
// TODO: Add checksums or other fields to verify the file
|
|
optional uint64 file_size = 3;
|
|
}
|
|
|
|
message FamilyFiles {
|
|
required bytes family_name = 1;
|
|
repeated StoreFile store_files = 2;
|
|
}
|
|
}
|
|
|
|
message SnapshotDataManifest {
|
|
required TableSchema table_schema = 1;
|
|
repeated SnapshotRegionManifest region_manifests = 2;
|
|
}
|