Tabnine Logo
HBaseProtos$TableName.getNamespace
Code IndexAdd Tabnine to your IDE (free)

How to use
getNamespace
method
in
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos$TableName

Best Java code snippets using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos$TableName.getNamespace (Showing top 12 results out of 315)

origin: apache/hbase

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptorForType().hashCode();
 if (hasNamespace()) {
  hash = (37 * hash) + NAMESPACE_FIELD_NUMBER;
  hash = (53 * hash) + getNamespace().hashCode();
 }
 if (hasQualifier()) {
  hash = (37 * hash) + QUALIFIER_FIELD_NUMBER;
  hash = (53 * hash) + getQualifier().hashCode();
 }
 hash = (29 * hash) + getUnknownFields().hashCode();
 memoizedHashCode = hash;
 return hash;
}
origin: apache/hbase

public static TableName toTableName(HBaseProtos.TableName tableNamePB) {
 return TableName.valueOf(tableNamePB.getNamespace().asReadOnlyByteBuffer(),
   tableNamePB.getQualifier().asReadOnlyByteBuffer());
}
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.HBaseProtos.TableName)) {
  return super.equals(obj);
 }
 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName) obj;
 boolean result = true;
 result = result && (hasNamespace() == other.hasNamespace());
 if (hasNamespace()) {
  result = result && getNamespace()
    .equals(other.getNamespace());
 }
 result = result && (hasQualifier() == other.hasQualifier());
 if (hasQualifier()) {
  result = result && getQualifier()
    .equals(other.getQualifier());
 }
 result = result &&
   getUnknownFields().equals(other.getUnknownFields());
 return result;
}
origin: harbby/presto-connectors

@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.HBaseProtos.TableName)) {
  return super.equals(obj);
 }
 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName) obj;
 boolean result = true;
 result = result && (hasNamespace() == other.hasNamespace());
 if (hasNamespace()) {
  result = result && getNamespace()
    .equals(other.getNamespace());
 }
 result = result && (hasQualifier() == other.hasQualifier());
 if (hasQualifier()) {
  result = result && getQualifier()
    .equals(other.getQualifier());
 }
 result = result &&
   getUnknownFields().equals(other.getUnknownFields());
 return result;
}
origin: harbby/presto-connectors

 @Override
 public void handleMetadata(byte[] ownerMetadata) {
  ZooKeeperProtos.TableLock data = TableLockManager.fromBytes(ownerMetadata);
  String msg = "Table lock acquire attempt found:";
  if (data != null) {
    msg = msg +
     String.format("[tableName=%s:%s, lockOwner=%s, threadId=%s, " +
     "purpose=%s, isShared=%s, createTime=%s]",
     data.getTableName().getNamespace().toStringUtf8(),
     data.getTableName().getQualifier().toStringUtf8(),
     ProtobufUtil.toServerName(data.getLockOwner()), data.getThreadId(),
     data.getPurpose(), data.getIsShared(), data.getCreateTime());
  }
  if (data != null && data.hasCreateTime() && data.getCreateTime() < expireDate) {
   errorReporter.reportError(HBaseFsck.ErrorReporter.ERROR_CODE.EXPIRED_TABLE_LOCK, msg);
  } else {
   errorReporter.print(msg);
  }
 }
};
origin: harbby/presto-connectors

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptorForType().hashCode();
 if (hasNamespace()) {
  hash = (37 * hash) + NAMESPACE_FIELD_NUMBER;
  hash = (53 * hash) + getNamespace().hashCode();
 }
 if (hasQualifier()) {
  hash = (37 * hash) + QUALIFIER_FIELD_NUMBER;
  hash = (53 * hash) + getQualifier().hashCode();
 }
 hash = (29 * hash) + getUnknownFields().hashCode();
 memoizedHashCode = hash;
 return hash;
}
origin: harbby/presto-connectors

 @Override
 public void handleMetadata(byte[] ownerMetadata) {
  if (!LOG.isDebugEnabled()) {
   return;
  }
  ZooKeeperProtos.TableLock data = fromBytes(ownerMetadata);
  if (data == null) {
   return;
  }
  LOG.debug("Table is locked by " +
    String.format("[tableName=%s:%s, lockOwner=%s, threadId=%s, " +
      "purpose=%s, isShared=%s, createTime=%s]",
      data.getTableName().getNamespace().toStringUtf8(),
      data.getTableName().getQualifier().toStringUtf8(),
      ProtobufUtil.toServerName(data.getLockOwner()), data.getThreadId(),
      data.getPurpose(), data.getIsShared(), data.getCreateTime()));
 }
};
origin: harbby/presto-connectors

public static TableName toTableName(HBaseProtos.TableName tableNamePB) {
 return TableName.valueOf(tableNamePB.getNamespace().asReadOnlyByteBuffer(),
   tableNamePB.getQualifier().asReadOnlyByteBuffer());
}
origin: harbby/presto-connectors

/**
 * <code>required bytes namespace = 1;</code>
 */
public Builder clearNamespace() {
 bitField0_ = (bitField0_ & ~0x00000001);
 namespace_ = getDefaultInstance().getNamespace();
 onChanged();
 return this;
}
origin: harbby/presto-connectors

public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName other) {
 if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.getDefaultInstance()) return this;
 if (other.hasNamespace()) {
  setNamespace(other.getNamespace());
 }
 if (other.hasQualifier()) {
  setQualifier(other.getQualifier());
 }
 this.mergeUnknownFields(other.getUnknownFields());
 return this;
}
origin: apache/hbase

public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName other) {
 if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.getDefaultInstance()) return this;
 if (other.hasNamespace()) {
  setNamespace(other.getNamespace());
 }
 if (other.hasQualifier()) {
  setQualifier(other.getQualifier());
 }
 this.mergeUnknownFields(other.getUnknownFields());
 return this;
}
origin: apache/hbase

/**
 * <code>required bytes namespace = 1;</code>
 */
public Builder clearNamespace() {
 bitField0_ = (bitField0_ & ~0x00000001);
 namespace_ = getDefaultInstance().getNamespace();
 onChanged();
 return this;
}
org.apache.hadoop.hbase.protobuf.generatedHBaseProtos$TableNamegetNamespace

Javadoc

required bytes namespace = 1;

Popular methods of HBaseProtos$TableName

  • newBuilder
  • equals
  • getDefaultInstance
  • getQualifier
    required bytes qualifier = 2;
  • hashCode
  • isInitialized
  • toBuilder
  • <init>
  • getDescriptorForType
  • getSerializedSize
  • getUnknownFields
  • hasNamespace
    required bytes namespace = 1;
  • getUnknownFields,
  • hasNamespace,
  • hasQualifier,
  • initFields,
  • makeExtensionsImmutable,
  • parseUnknownField

Popular in Java

  • Start an intent from android
  • getApplicationContext (Context)
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • JButton (javax.swing)
  • JList (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