Class BucketProtoUtils
java.lang.Object
org.apache.hadoop.hbase.io.hfile.bucket.BucketProtoUtils
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
addEntryToBuilder
(Map.Entry<BlockCacheKey, BucketEntry> entry, org.apache.hadoop.hbase.shaded.protobuf.generated.BucketCacheProtos.BackingMapEntry.Builder entryBuilder, org.apache.hadoop.hbase.shaded.protobuf.generated.BucketCacheProtos.BackingMap.Builder builder) private static BlockType
fromPb
(org.apache.hadoop.hbase.shaded.protobuf.generated.BucketCacheProtos.BlockType blockType) (package private) static Pair<ConcurrentHashMap<BlockCacheKey,
BucketEntry>, NavigableSet<BlockCacheKey>> fromPB
(Map<Integer, String> deserializers, org.apache.hadoop.hbase.shaded.protobuf.generated.BucketCacheProtos.BackingMap backingMap, Function<BucketEntry, ByteBuffAllocator.Recycler> createRecycler) fromPB
(Map<String, org.apache.hadoop.hbase.shaded.protobuf.generated.BucketCacheProtos.RegionFileSizeMap> prefetchHFileNames) static void
serializeAsPB
(BucketCache cache, FileOutputStream fos, long chunkSize) (package private) static Map<String,
org.apache.hadoop.hbase.shaded.protobuf.generated.BucketCacheProtos.RegionFileSizeMap> private static org.apache.hadoop.hbase.shaded.protobuf.generated.BucketCacheProtos.BlockCacheKey
toPB
(BlockCacheKey key) private static org.apache.hadoop.hbase.shaded.protobuf.generated.BucketCacheProtos.BlockPriority
private static org.apache.hadoop.hbase.shaded.protobuf.generated.BucketCacheProtos.BlockType
(package private) static org.apache.hadoop.hbase.shaded.protobuf.generated.BucketCacheProtos.BucketCacheEntry
toPB
(BucketCache cache, org.apache.hadoop.hbase.shaded.protobuf.generated.BucketCacheProtos.BackingMap.Builder backingMapBuilder) private static org.apache.hadoop.hbase.shaded.protobuf.generated.BucketCacheProtos.BucketEntry
toPB
(BucketEntry entry)
-
Field Details
-
PB_MAGIC_V2
-
-
Constructor Details
-
BucketProtoUtils
private BucketProtoUtils()
-
-
Method Details
-
toPB
static org.apache.hadoop.hbase.shaded.protobuf.generated.BucketCacheProtos.BucketCacheEntry toPB(BucketCache cache, org.apache.hadoop.hbase.shaded.protobuf.generated.BucketCacheProtos.BackingMap.Builder backingMapBuilder) -
serializeAsPB
public static void serializeAsPB(BucketCache cache, FileOutputStream fos, long chunkSize) throws IOException - Throws:
IOException
-
addEntryToBuilder
private static void addEntryToBuilder(Map.Entry<BlockCacheKey, BucketEntry> entry, org.apache.hadoop.hbase.shaded.protobuf.generated.BucketCacheProtos.BackingMapEntry.Builder entryBuilder, org.apache.hadoop.hbase.shaded.protobuf.generated.BucketCacheProtos.BackingMap.Builder builder) -
toPB
private static org.apache.hadoop.hbase.shaded.protobuf.generated.BucketCacheProtos.BlockCacheKey toPB(BlockCacheKey key) -
toPB
-
toPB
private static org.apache.hadoop.hbase.shaded.protobuf.generated.BucketCacheProtos.BucketEntry toPB(BucketEntry entry) -
toPB
private static org.apache.hadoop.hbase.shaded.protobuf.generated.BucketCacheProtos.BlockPriority toPB(BlockPriority p) -
fromPB
static Pair<ConcurrentHashMap<BlockCacheKey,BucketEntry>, fromPBNavigableSet<BlockCacheKey>> (Map<Integer, String> deserializers, org.apache.hadoop.hbase.shaded.protobuf.generated.BucketCacheProtos.BackingMap backingMap, Function<BucketEntry, throws IOExceptionByteBuffAllocator.Recycler> createRecycler) - Throws:
IOException
-
fromPb
-
toCachedPB
-
fromPB
-