AdminProtos$WALEntry
Code IndexAdd Codota to your IDE (free)

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

  • Common ways to obtain AdminProtos$WALEntry
private void myMethod () {
AdminProtos$WALEntry a =
  • Object object;(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry) object
  • AdminProtos.WALEntry$Builder adminProtosWALEntry$Builder;new org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry(adminProtosWALEntry$Builder)
  • Smart code suggestions by Codota
}
origin: apache/hbase

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry)) {
  return super.equals(obj);
 }
 org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry other = (org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry) obj;
 boolean result = true;
 result = result && (hasKey() == other.hasKey());
 if (hasKey()) {
  result = result && getKey()
    .equals(other.getKey());
 }
 result = result && getKeyValueBytesList()
   .equals(other.getKeyValueBytesList());
 result = result && (hasAssociatedCellCount() == other.hasAssociatedCellCount());
 if (hasAssociatedCellCount()) {
  result = result && (getAssociatedCellCount()
    == other.getAssociatedCellCount());
 }
 result = result &&
   getUnknownFields().equals(other.getUnknownFields());
 return result;
}
origin: apache/hbase

public org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry buildPartial() {
 org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry result = new org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry(this);
 int from_bitField0_ = bitField0_;
 int to_bitField0_ = 0;
 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
  to_bitField0_ |= 0x00000001;
 }
 if (keyBuilder_ == null) {
  result.key_ = key_;
 } else {
  result.key_ = keyBuilder_.build();
 }
 if (((bitField0_ & 0x00000002) == 0x00000002)) {
  keyValueBytes_ = java.util.Collections.unmodifiableList(keyValueBytes_);
  bitField0_ = (bitField0_ & ~0x00000002);
 }
 result.keyValueBytes_ = keyValueBytes_;
 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
  to_bitField0_ |= 0x00000002;
 }
 result.associatedCellCount_ = associatedCellCount_;
 result.bitField0_ = to_bitField0_;
 onBuilt();
 return result;
}
origin: apache/hbase

/**
 * <code>repeated .hbase.pb.WALEntry entry = 1;</code>
 */
public org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.Builder addEntryBuilder(
  int index) {
 return getEntryFieldBuilder().addBuilder(
   index, org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.getDefaultInstance());
}
/**
origin: org.apache.hbase/hbase-protocol

public final boolean isInitialized() {
 byte isInitialized = memoizedIsInitialized;
 if (isInitialized != -1) return isInitialized == 1;
 if (!hasKey()) {
  memoizedIsInitialized = 0;
  return false;
 }
 if (!getKey().isInitialized()) {
  memoizedIsInitialized = 0;
  return false;
 }
 memoizedIsInitialized = 1;
 return true;
}
origin: com.aliyun.hbase/alihbase-protocol

public org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry getDefaultInstanceForType() {
 return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.getDefaultInstance();
}
origin: com.aliyun.hbase/alihbase-protocol

public final boolean isInitialized() {
 byte isInitialized = memoizedIsInitialized;
 if (isInitialized != -1) return isInitialized == 1;
 if (!hasKey()) {
  memoizedIsInitialized = 0;
  return false;
 }
 if (!getKey().isInitialized()) {
  memoizedIsInitialized = 0;
  return false;
 }
 memoizedIsInitialized = 1;
 return true;
}
origin: org.apache.hbase/hbase-protocol

public org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry getDefaultInstanceForType() {
 return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.getDefaultInstance();
}
origin: harbby/presto-connectors

public void writeTo(com.facebook.presto.hbase.$internal.com.google.protobuf.CodedOutputStream output)
          throws java.io.IOException {
 getSerializedSize();
 if (((bitField0_ & 0x00000001) == 0x00000001)) {
  output.writeMessage(1, key_);
 }
 for (int i = 0; i < keyValueBytes_.size(); i++) {
  output.writeBytes(2, keyValueBytes_.get(i));
 }
 if (((bitField0_ & 0x00000002) == 0x00000002)) {
  output.writeInt32(3, associatedCellCount_);
 }
 getUnknownFields().writeTo(output);
}
origin: com.aliyun.hbase/alihbase-protocol

public void writeTo(com.google.protobuf.CodedOutputStream output)
          throws java.io.IOException {
 getSerializedSize();
 if (((bitField0_ & 0x00000001) == 0x00000001)) {
  output.writeMessage(1, key_);
 }
 for (int i = 0; i < keyValueBytes_.size(); i++) {
  output.writeBytes(2, keyValueBytes_.get(i));
 }
 if (((bitField0_ & 0x00000002) == 0x00000002)) {
  output.writeInt32(3, associatedCellCount_);
 }
 getUnknownFields().writeTo(output);
}
origin: harbby/presto-connectors

public org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry getDefaultInstanceForType() {
 return org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.getDefaultInstance();
}
origin: harbby/presto-connectors

public final boolean isInitialized() {
 byte isInitialized = memoizedIsInitialized;
 if (isInitialized != -1) return isInitialized == 1;
 if (!hasKey()) {
  memoizedIsInitialized = 0;
  return false;
 }
 if (!getKey().isInitialized()) {
  memoizedIsInitialized = 0;
  return false;
 }
 memoizedIsInitialized = 1;
 return true;
}
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: caskdata/cdap

 @Override
 public void postReplicateLogEntries(ObserverContext<RegionServerCoprocessorEnvironment> ctx,
                   List<AdminProtos.WALEntry> entries, CellScanner cells) throws IOException {
  for (AdminProtos.WALEntry entry : entries) {
   LOG.debug("Update LastReplicateTimeObserver for Table {}:{} for region {}",
        entry.getKey().getTableName().toStringUtf8(),
        entry.getKey().getWriteTime(),
        entry.getKey().getEncodedRegionName().toStringUtf8());
   hBase10CDHTableUpdater.updateTime(entry.getKey().getEncodedRegionName().toStringUtf8(),
                    entry.getKey().getWriteTime());
  }
 }
}
origin: com.aliyun.hbase/alihbase-protocol

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptorForType().hashCode();
 if (hasKey()) {
  hash = (37 * hash) + KEY_FIELD_NUMBER;
  hash = (53 * hash) + getKey().hashCode();
 }
 if (getKeyValueBytesCount() > 0) {
  hash = (37 * hash) + KEY_VALUE_BYTES_FIELD_NUMBER;
  hash = (53 * hash) + getKeyValueBytesList().hashCode();
 }
 if (hasAssociatedCellCount()) {
  hash = (37 * hash) + ASSOCIATED_CELL_COUNT_FIELD_NUMBER;
  hash = (53 * hash) + getAssociatedCellCount();
 }
 hash = (29 * hash) + getUnknownFields().hashCode();
 memoizedHashCode = hash;
 return hash;
}
origin: cdapio/cdap

 @Override
 public void postReplicateLogEntries(ObserverContext<RegionServerCoprocessorEnvironment> ctx,
                   List<AdminProtos.WALEntry> entries, CellScanner cells) throws IOException {
  for (AdminProtos.WALEntry entry : entries) {
   LOG.debug("Update LastReplicateTimeObserver for Table {}:{} for region {}",
        entry.getKey().getTableName().toStringUtf8(),
        entry.getKey().getWriteTime(),
        entry.getKey().getEncodedRegionName().toStringUtf8());
   hBase12CDH570TableUpdater.updateTime(entry.getKey().getEncodedRegionName().toStringUtf8(),
                      entry.getKey().getWriteTime());
  }
 }
}
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: harbby/presto-connectors

/**
 * <code>repeated .WALEntry entry = 1;</code>
 */
public org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.Builder addEntryBuilder(
  int index) {
 return getEntryFieldBuilder().addBuilder(
   index, org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.getDefaultInstance());
}
/**
origin: org.apache.hbase/hbase-protocol

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptorForType().hashCode();
 if (hasKey()) {
  hash = (37 * hash) + KEY_FIELD_NUMBER;
  hash = (53 * hash) + getKey().hashCode();
 }
 if (getKeyValueBytesCount() > 0) {
  hash = (37 * hash) + KEY_VALUE_BYTES_FIELD_NUMBER;
  hash = (53 * hash) + getKeyValueBytesList().hashCode();
 }
 if (hasAssociatedCellCount()) {
  hash = (37 * hash) + ASSOCIATED_CELL_COUNT_FIELD_NUMBER;
  hash = (53 * hash) + getAssociatedCellCount();
 }
 hash = (29 * hash) + getUnknownFields().hashCode();
 memoizedHashCode = hash;
 return hash;
}
origin: caskdata/cdap

 @Override
 public void postReplicateLogEntries(ObserverContext<RegionServerCoprocessorEnvironment> ctx,
                   List<AdminProtos.WALEntry> entries, CellScanner cells) throws IOException {
  for (AdminProtos.WALEntry entry : entries) {
   LOG.debug("Update LastReplicateTimeObserver for Table {}:{} for region {}",
        entry.getKey().getTableName().toStringUtf8(),
        entry.getKey().getWriteTime(),
        entry.getKey().getEncodedRegionName().toStringUtf8());
   hBase11TableUpdater.updateTime(entry.getKey().getEncodedRegionName().toStringUtf8(),
                   entry.getKey().getWriteTime());
  }
 }
}
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;
}
org.apache.hadoop.hbase.protobuf.generatedAdminProtos$WALEntry

Javadoc

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

Most used methods

  • getKey
    required .hbase.pb.WALKey key = 1;
  • getAssociatedCellCount
    optional int32 associated_cell_count = 3; If Cell data is carried alongside in a cellblock, this is
  • <init>
  • getDefaultInstance
  • getDescriptorForType
  • getKeyValueBytesCount
    repeated bytes key_value_bytes = 2; Following may be null if the KVs/Cells are carried along the si
  • getKeyValueBytesList
    repeated bytes key_value_bytes = 2; Following may be null if the KVs/Cells are carried along the si
  • getSerializedSize
  • getUnknownFields
  • hasAssociatedCellCount
    optional int32 associated_cell_count = 3; If Cell data is carried alongside in a cellblock, this is
  • hasKey
    required .hbase.pb.WALKey key = 1;
  • initFields
  • hasKey,
  • initFields,
  • isInitialized,
  • makeExtensionsImmutable,
  • newBuilder,
  • parseUnknownField

Popular in Java

  • Making http post requests using okhttp
  • setRequestProperty (URLConnection)
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • ImageIO (javax.imageio)
  • JTable (javax.swing)

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)