/** * <code>repeated .hbase.pb.StoreSequenceId store_complete_sequence_id = 18;</code> * * <pre> ** the most recent sequence Id of store from cache flush * </pre> */ public Builder addStoreCompleteSequenceId( int index, org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId.Builder builderForValue) { if (storeCompleteSequenceIdBuilder_ == null) { ensureStoreCompleteSequenceIdIsMutable(); storeCompleteSequenceId_.add(index, builderForValue.build()); onChanged(); } else { storeCompleteSequenceIdBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
/** * @param regionLastFlushedSequenceId the flushed sequence id of a region which is the min of its * store max seq ids * @param storeSequenceIds column family to sequence Id map * @return Serialized protobuf of <code>RegionSequenceIds</code> with pb magic prefix prepended * suitable for use to filter wal edits in distributedLogReplay mode */ public static byte[] regionSequenceIdsToByteArray(final Long regionLastFlushedSequenceId, final Map<byte[], Long> storeSequenceIds) { ClusterStatusProtos.RegionStoreSequenceIds.Builder regionSequenceIdsBuilder = ClusterStatusProtos.RegionStoreSequenceIds.newBuilder(); ClusterStatusProtos.StoreSequenceId.Builder storeSequenceIdBuilder = ClusterStatusProtos.StoreSequenceId.newBuilder(); if (storeSequenceIds != null) { for (Map.Entry<byte[], Long> e : storeSequenceIds.entrySet()){ byte[] columnFamilyName = e.getKey(); Long curSeqId = e.getValue(); storeSequenceIdBuilder.setFamilyName(ByteStringer.wrap(columnFamilyName)); storeSequenceIdBuilder.setSequenceId(curSeqId); regionSequenceIdsBuilder.addStoreSequenceId(storeSequenceIdBuilder.build()); storeSequenceIdBuilder.clear(); } } regionSequenceIdsBuilder.setLastFlushedSequenceId(regionLastFlushedSequenceId); byte[] result = regionSequenceIdsBuilder.build().toByteArray(); return ProtobufUtil.prependPBMagic(result); }
/** * @param regionLastFlushedSequenceId the flushed sequence id of a region which is the min of its * store max seq ids * @param storeSequenceIds column family to sequence Id map * @return Serialized protobuf of <code>RegionSequenceIds</code> with pb magic prefix prepended * suitable for use to filter wal edits in distributedLogReplay mode */ public static byte[] regionSequenceIdsToByteArray(final Long regionLastFlushedSequenceId, final Map<byte[], Long> storeSequenceIds) { ClusterStatusProtos.RegionStoreSequenceIds.Builder regionSequenceIdsBuilder = ClusterStatusProtos.RegionStoreSequenceIds.newBuilder(); ClusterStatusProtos.StoreSequenceId.Builder storeSequenceIdBuilder = ClusterStatusProtos.StoreSequenceId.newBuilder(); if (storeSequenceIds != null) { for (Map.Entry<byte[], Long> e : storeSequenceIds.entrySet()){ byte[] columnFamilyName = e.getKey(); Long curSeqId = e.getValue(); storeSequenceIdBuilder.setFamilyName(ByteStringer.wrap(columnFamilyName)); storeSequenceIdBuilder.setSequenceId(curSeqId); regionSequenceIdsBuilder.addStoreSequenceId(storeSequenceIdBuilder.build()); storeSequenceIdBuilder.clear(); } } regionSequenceIdsBuilder.setLastFlushedSequenceId(regionLastFlushedSequenceId); byte[] result = regionSequenceIdsBuilder.build().toByteArray(); return ProtobufUtil.prependPBMagic(result); }
/** * <code>repeated .StoreSequenceId store_last_flushed_sequence_id = 2;</code> * * <pre> ** the last WAL sequence id flushed from MemStore to HFile for stores of the region * </pre> */ public Builder addStoreLastFlushedSequenceId( int index, org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId.Builder builderForValue) { if (storeLastFlushedSequenceIdBuilder_ == null) { ensureStoreLastFlushedSequenceIdIsMutable(); storeLastFlushedSequenceId_.add(index, builderForValue.build()); onChanged(); } else { storeLastFlushedSequenceIdBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .StoreSequenceId store_last_flushed_sequence_id = 2;</code> * * <pre> ** the last WAL sequence id flushed from MemStore to HFile for stores of the region * </pre> */ public Builder addStoreLastFlushedSequenceId( org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId.Builder builderForValue) { if (storeLastFlushedSequenceIdBuilder_ == null) { ensureStoreLastFlushedSequenceIdIsMutable(); storeLastFlushedSequenceId_.add(builderForValue.build()); onChanged(); } else { storeLastFlushedSequenceIdBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <code>repeated .StoreSequenceId store_last_flushed_sequence_id = 2;</code> * * <pre> ** the last WAL sequence id flushed from MemStore to HFile for stores of the region * </pre> */ public Builder setStoreLastFlushedSequenceId( int index, org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId.Builder builderForValue) { if (storeLastFlushedSequenceIdBuilder_ == null) { ensureStoreLastFlushedSequenceIdIsMutable(); storeLastFlushedSequenceId_.set(index, builderForValue.build()); onChanged(); } else { storeLastFlushedSequenceIdBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .StoreSequenceId store_complete_sequence_id = 18;</code> * * <pre> ** the most recent sequence Id of store from cache flush * </pre> */ public Builder addStoreCompleteSequenceId( org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId.Builder builderForValue) { if (storeCompleteSequenceIdBuilder_ == null) { ensureStoreCompleteSequenceIdIsMutable(); storeCompleteSequenceId_.add(builderForValue.build()); onChanged(); } else { storeCompleteSequenceIdBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <code>repeated .StoreSequenceId store_complete_sequence_id = 18;</code> * * <pre> ** the most recent sequence Id of store from cache flush * </pre> */ public Builder setStoreCompleteSequenceId( int index, org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId.Builder builderForValue) { if (storeCompleteSequenceIdBuilder_ == null) { ensureStoreCompleteSequenceIdIsMutable(); storeCompleteSequenceId_.set(index, builderForValue.build()); onChanged(); } else { storeCompleteSequenceIdBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .hbase.pb.StoreSequenceId store_complete_sequence_id = 18;</code> * * <pre> ** the most recent sequence Id of store from cache flush * </pre> */ public Builder addStoreCompleteSequenceId( int index, org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId.Builder builderForValue) { if (storeCompleteSequenceIdBuilder_ == null) { ensureStoreCompleteSequenceIdIsMutable(); storeCompleteSequenceId_.add(index, builderForValue.build()); onChanged(); } else { storeCompleteSequenceIdBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .hbase.pb.StoreSequenceId store_complete_sequence_id = 18;</code> * * <pre> ** the most recent sequence Id of store from cache flush * </pre> */ public Builder setStoreCompleteSequenceId( int index, org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId.Builder builderForValue) { if (storeCompleteSequenceIdBuilder_ == null) { ensureStoreCompleteSequenceIdIsMutable(); storeCompleteSequenceId_.set(index, builderForValue.build()); onChanged(); } else { storeCompleteSequenceIdBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
public Builder mergeFrom( com.facebook.presto.hbase.$internal.com.google.protobuf.CodedInputStream input, com.facebook.presto.hbase.$internal.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.facebook.presto.hbase.$internal.com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
/** * <code>repeated .hbase.pb.StoreSequenceId store_complete_sequence_id = 18;</code> * * <pre> ** the most recent sequence Id of store from cache flush * </pre> */ public Builder addStoreCompleteSequenceId( org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId.Builder builderForValue) { if (storeCompleteSequenceIdBuilder_ == null) { ensureStoreCompleteSequenceIdIsMutable(); storeCompleteSequenceId_.add(builderForValue.build()); onChanged(); } else { storeCompleteSequenceIdBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <code>repeated .StoreSequenceId store_complete_sequence_id = 18;</code> * * <pre> ** the most recent sequence Id of store from cache flush * </pre> */ public Builder addStoreCompleteSequenceId( int index, org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId.Builder builderForValue) { if (storeCompleteSequenceIdBuilder_ == null) { ensureStoreCompleteSequenceIdIsMutable(); storeCompleteSequenceId_.add(index, builderForValue.build()); onChanged(); } else { storeCompleteSequenceIdBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .hbase.pb.StoreSequenceId store_complete_sequence_id = 18;</code> * * <pre> ** the most recent sequence Id of store from cache flush * </pre> */ public Builder addStoreCompleteSequenceId( org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId.Builder builderForValue) { if (storeCompleteSequenceIdBuilder_ == null) { ensureStoreCompleteSequenceIdIsMutable(); storeCompleteSequenceId_.add(builderForValue.build()); onChanged(); } else { storeCompleteSequenceIdBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <code>repeated .hbase.pb.StoreSequenceId store_complete_sequence_id = 18;</code> * * <pre> ** the most recent sequence Id of store from cache flush * </pre> */ public Builder setStoreCompleteSequenceId( int index, org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId.Builder builderForValue) { if (storeCompleteSequenceIdBuilder_ == null) { ensureStoreCompleteSequenceIdIsMutable(); storeCompleteSequenceId_.set(index, builderForValue.build()); onChanged(); } else { storeCompleteSequenceIdBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .hbase.pb.StoreSequenceId store_complete_sequence_id = 18;</code> * * <pre> ** the most recent sequence Id of store from cache flush * </pre> */ public Builder addStoreCompleteSequenceId( int index, org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId.Builder builderForValue) { if (storeCompleteSequenceIdBuilder_ == null) { ensureStoreCompleteSequenceIdIsMutable(); storeCompleteSequenceId_.add(index, builderForValue.build()); onChanged(); } else { storeCompleteSequenceIdBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
/** * <code>repeated .StoreSequenceId store_sequence_id = 2;</code> */ public Builder addStoreSequenceId( int index, org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId.Builder builderForValue) { if (storeSequenceIdBuilder_ == null) { ensureStoreSequenceIdIsMutable(); storeSequenceId_.add(index, builderForValue.build()); onChanged(); } else { storeSequenceIdBuilder_.addMessage(index, builderForValue.build()); } return this; } /**