Tabnine Logo
AdminProtos$WALEntry$Builder
Code IndexAdd Tabnine to your IDE (free)

How to use
AdminProtos$WALEntry$Builder
in
org.apache.hadoop.hbase.protobuf.generated

Best Java code snippets using org.apache.hadoop.hbase.protobuf.generated.AdminProtos$WALEntry$Builder (Showing top 20 results out of 315)

origin: apache/hbase

/**
 * <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;
}
/**
origin: apache/hbase

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;
}
origin: apache/hbase

/**
 * <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();
}
/**
origin: harbby/presto-connectors

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());
origin: harbby/presto-connectors

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;
}
origin: com.aliyun.hbase/alihbase-protocol

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;
}
origin: org.apache.hbase/hbase-protocol

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;
}
origin: harbby/presto-connectors

  /**
   * <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;
  }
  /**
origin: com.aliyun.hbase/alihbase-protocol

  /**
   * <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;
  }
  /**
origin: harbby/presto-connectors

  /**
   * <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;
  }
  /**
origin: org.apache.hbase/hbase-protocol

  /**
   * <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;
  }
  /**
origin: com.aliyun.hbase/alihbase-protocol

  /**
   * <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;
  }
  /**
origin: org.apache.hbase/hbase-protocol

  /**
   * <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;
  }
  /**
origin: com.aliyun.hbase/alihbase-protocol

/**
 * <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;
}
/**
origin: harbby/presto-connectors

/**
 * <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;
}
/**
origin: harbby/presto-connectors

/**
 * <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_;
}
origin: harbby/presto-connectors

/**
 * <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;
}
/**
origin: org.apache.hbase/hbase-protocol

/**
 * <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;
}
/**
origin: org.apache.hbase/hbase-protocol

/**
 * <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_;
}
origin: com.aliyun.hbase/alihbase-protocol

/**
 * <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;
}
/**
org.apache.hadoop.hbase.protobuf.generatedAdminProtos$WALEntry$Builder

Javadoc

Protobuf type hbase.pb.WALEntry
 
Protocol buffer version of WAL for replication 

Most used methods

  • <init>
  • build
  • buildPartial
  • create
  • ensureKeyValueBytesIsMutable
  • getKey
    required .hbase.pb.WALKey key = 1;
  • getKeyFieldBuilder
    required .hbase.pb.WALKey key = 1;
  • getParentForChildren
  • hasKey
    required .hbase.pb.WALKey key = 1;
  • isClean
  • maybeForceBuilderInitialization
  • mergeFrom
  • maybeForceBuilderInitialization,
  • mergeFrom,
  • mergeKey,
  • mergeUnknownFields,
  • newUninitializedMessageException,
  • onBuilt,
  • onChanged,
  • setAssociatedCellCount,
  • clear,
  • getKeyBuilder

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getContentResolver (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setRequestProperty (URLConnection)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • String (java.lang)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • BoxLayout (javax.swing)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now