2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
22 option java_package = "org.apache.hadoop.hbase.shaded.protobuf.generated";
23 option java_outer_classname = "BucketCacheProtos";
24 option java_generic_services = true;
25 option java_generate_equals_and_hash = true;
26 option optimize_for = SPEED;
28 message BucketCacheEntry {
29 required int64 cache_capacity = 1;
30 required string io_class = 2;
31 required string map_class = 3;
32 map<int32, string> deserializers = 4;
33 required BackingMap backing_map = 5;
34 optional bytes checksum = 6;
38 repeated BackingMapEntry entry = 1;
41 message BackingMapEntry {
42 required BlockCacheKey key = 1;
43 required BucketEntry value = 2;
46 message BlockCacheKey {
47 required string hfilename = 1;
48 required int64 offset = 2;
49 required BlockType block_type = 3;
50 required bool primary_replica_block = 4;
59 intermediate_index = 5;
62 general_bloom_meta = 8;
63 delete_family_bloom_meta = 9;
69 required int64 offset = 1;
70 required int32 length = 2;
71 required int64 access_counter = 3;
72 required int32 deserialiser_index = 4;
73 required BlockPriority priority = 5;