/** * <code>repeated .hbase.pb.WALEntry entry = 1;</code> */ public Builder setEntry( int index, org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.Builder builderForValue) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.set(index, builderForValue.build()); onChanged(); } else { entryBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry other) { if (other == org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.getDefaultInstance()) return this; if (other.hasKey()) { mergeKey(other.getKey()); } if (!other.keyValueBytes_.isEmpty()) { if (keyValueBytes_.isEmpty()) { keyValueBytes_ = other.keyValueBytes_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureKeyValueBytesIsMutable(); keyValueBytes_.addAll(other.keyValueBytes_); } onChanged(); } if (other.hasAssociatedCellCount()) { setAssociatedCellCount(other.getAssociatedCellCount()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
/** * <code>required .hbase.pb.WALKey key = 1;</code> */ public org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALKey.Builder getKeyBuilder() { bitField0_ |= 0x00000001; onChanged(); return getKeyFieldBuilder().getBuilder(); } /**
HBaseProtos.UUID.Builder uuidBuilder = HBaseProtos.UUID.newBuilder(); for (Entry entry: entries) { entryBuilder.clear(); WALProtos.WALKey.Builder keyBuilder = entryBuilder.getKeyBuilder(); WALKey key = entry.getKey(); keyBuilder.setEncodedRegionName( entryBuilder.setAssociatedCellCount(cells.size()); builder.addEntry(entryBuilder.build());
public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry other) { if (other == org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.getDefaultInstance()) return this; if (other.hasKey()) { mergeKey(other.getKey()); } if (!other.keyValueBytes_.isEmpty()) { if (keyValueBytes_.isEmpty()) { keyValueBytes_ = other.keyValueBytes_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureKeyValueBytesIsMutable(); keyValueBytes_.addAll(other.keyValueBytes_); } onChanged(); } if (other.hasAssociatedCellCount()) { setAssociatedCellCount(other.getAssociatedCellCount()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry other) { if (other == org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.getDefaultInstance()) return this; if (other.hasKey()) { mergeKey(other.getKey()); } if (!other.keyValueBytes_.isEmpty()) { if (keyValueBytes_.isEmpty()) { keyValueBytes_ = other.keyValueBytes_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureKeyValueBytesIsMutable(); keyValueBytes_.addAll(other.keyValueBytes_); } onChanged(); } if (other.hasAssociatedCellCount()) { setAssociatedCellCount(other.getAssociatedCellCount()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry other) { if (other == org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.getDefaultInstance()) return this; if (other.hasKey()) { mergeKey(other.getKey()); } if (!other.keyValueBytes_.isEmpty()) { if (keyValueBytes_.isEmpty()) { keyValueBytes_ = other.keyValueBytes_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureKeyValueBytesIsMutable(); keyValueBytes_.addAll(other.keyValueBytes_); } onChanged(); } if (other.hasAssociatedCellCount()) { setAssociatedCellCount(other.getAssociatedCellCount()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
/** * <code>repeated bytes key_value_bytes = 2;</code> * * <pre> * Following may be null if the KVs/Cells are carried along the side in a cellblock (See * RPC for more on cellblocks). If Cells/KVs are in a cellblock, this next field is null * and associated_cell_count has count of Cells associated w/ this WALEntry * </pre> */ public Builder setKeyValueBytes( int index, com.facebook.presto.hbase.$internal.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKeyValueBytesIsMutable(); keyValueBytes_.set(index, value); onChanged(); return this; } /**
/** * <code>repeated bytes key_value_bytes = 2;</code> * * <pre> * Following may be null if the KVs/Cells are carried along the side in a cellblock (See * RPC for more on cellblocks). If Cells/KVs are in a cellblock, this next field is null * and associated_cell_count has count of Cells associated w/ this WALEntry * </pre> */ public Builder addKeyValueBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKeyValueBytesIsMutable(); keyValueBytes_.add(value); onChanged(); return this; } /**
/** * <code>repeated bytes key_value_bytes = 2;</code> * * <pre> * Following may be null if the KVs/Cells are carried along the side in a cellblock (See * RPC for more on cellblocks). If Cells/KVs are in a cellblock, this next field is null * and associated_cell_count has count of Cells associated w/ this WALEntry * </pre> */ public Builder addKeyValueBytes(com.facebook.presto.hbase.$internal.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKeyValueBytesIsMutable(); keyValueBytes_.add(value); onChanged(); return this; } /**
/** * <code>repeated bytes key_value_bytes = 2;</code> * * <pre> * Following may be null if the KVs/Cells are carried along the side in a cellblock (See * RPC for more on cellblocks). If Cells/KVs are in a cellblock, this next field is null * and associated_cell_count has count of Cells associated w/ this WALEntry * </pre> */ public Builder addKeyValueBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKeyValueBytesIsMutable(); keyValueBytes_.add(value); onChanged(); return this; } /**
/** * <code>repeated bytes key_value_bytes = 2;</code> * * <pre> * Following may be null if the KVs/Cells are carried along the side in a cellblock (See * RPC for more on cellblocks). If Cells/KVs are in a cellblock, this next field is null * and associated_cell_count has count of Cells associated w/ this WALEntry * </pre> */ public Builder setKeyValueBytes( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKeyValueBytesIsMutable(); keyValueBytes_.set(index, value); onChanged(); return this; } /**
/** * <code>repeated bytes key_value_bytes = 2;</code> * * <pre> * Following may be null if the KVs/Cells are carried along the side in a cellblock (See * RPC for more on cellblocks). If Cells/KVs are in a cellblock, this next field is null * and associated_cell_count has count of Cells associated w/ this WALEntry * </pre> */ public Builder setKeyValueBytes( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKeyValueBytesIsMutable(); keyValueBytes_.set(index, value); onChanged(); return this; } /**
/** * <code>repeated bytes key_value_bytes = 2;</code> * * <pre> * Following may be null if the KVs/Cells are carried along the side in a cellblock (See * RPC for more on cellblocks). If Cells/KVs are in a cellblock, this next field is null * and associated_cell_count has count of Cells associated w/ this WALEntry * </pre> */ public Builder addAllKeyValueBytes( java.lang.Iterable<? extends com.google.protobuf.ByteString> values) { ensureKeyValueBytesIsMutable(); super.addAll(values, keyValueBytes_); onChanged(); return this; } /**
/** * <code>repeated bytes key_value_bytes = 2;</code> * * <pre> * Following may be null if the KVs/Cells are carried along the side in a cellblock (See * RPC for more on cellblocks). If Cells/KVs are in a cellblock, this next field is null * and associated_cell_count has count of Cells associated w/ this WALEntry * </pre> */ public Builder addAllKeyValueBytes( java.lang.Iterable<? extends com.facebook.presto.hbase.$internal.com.google.protobuf.ByteString> values) { ensureKeyValueBytesIsMutable(); super.addAll(values, keyValueBytes_); onChanged(); return this; } /**
/** * <code>required .WALKey key = 1;</code> */ private com.facebook.presto.hbase.$internal.com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALKey, org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALKey.Builder, org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALKeyOrBuilder> getKeyFieldBuilder() { if (keyBuilder_ == null) { keyBuilder_ = new com.facebook.presto.hbase.$internal.com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALKey, org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALKey.Builder, org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALKeyOrBuilder>( key_, getParentForChildren(), isClean()); key_ = null; } return keyBuilder_; }
/** * <code>repeated .WALEntry entry = 1;</code> */ public Builder setEntry( int index, org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.Builder builderForValue) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.set(index, builderForValue.build()); onChanged(); } else { entryBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated bytes key_value_bytes = 2;</code> * * <pre> * Following may be null if the KVs/Cells are carried along the side in a cellblock (See * RPC for more on cellblocks). If Cells/KVs are in a cellblock, this next field is null * and associated_cell_count has count of Cells associated w/ this WALEntry * </pre> */ public Builder addAllKeyValueBytes( java.lang.Iterable<? extends com.google.protobuf.ByteString> values) { ensureKeyValueBytesIsMutable(); super.addAll(values, keyValueBytes_); onChanged(); return this; } /**
/** * <code>required .hbase.pb.WALKey key = 1;</code> */ private com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALKey, org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALKey.Builder, org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALKeyOrBuilder> getKeyFieldBuilder() { if (keyBuilder_ == null) { keyBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALKey, org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALKey.Builder, org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALKeyOrBuilder>( key_, getParentForChildren(), isClean()); key_ = null; } return keyBuilder_; }
/** * <code>repeated .hbase.pb.WALEntry entry = 1;</code> */ public Builder setEntry( int index, org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.Builder builderForValue) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.set(index, builderForValue.build()); onChanged(); } else { entryBuilder_.setMessage(index, builderForValue.build()); } return this; } /**