Tabnine Logo
HBaseProtos$NameBytesPair.getName
Code IndexAdd Tabnine to your IDE (free)

How to use
getName
method
in
org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos$NameBytesPair

Best Java code snippets using org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos$NameBytesPair.getName (Showing top 20 results out of 315)

origin: apache/hbase

private boolean isReplicationRequest(Action action) {
 // replication request can only be put or delete.
 if (!action.hasMutation()) {
  return false;
 }
 MutationProto mutation = action.getMutation();
 MutationType type = mutation.getMutateType();
 if (type != MutationType.PUT && type != MutationType.DELETE) {
  return false;
 }
 // replication will set a special attribute so we can make use of it to decide whether a request
 // is for replication.
 return mutation.getAttributeList().stream().map(p -> p.getName())
  .filter(n -> n.equals(ReplicationUtils.REPLICATION_ATTR_NAME)).findAny().isPresent();
}
origin: apache/hbase

/**
 * Convert a stringified protocol buffer exception Parameter to a Java Exception
 *
 * @param parameter the protocol buffer Parameter to convert
 * @return the converted Exception
 * @throws IOException if failed to deserialize the parameter
 */
@SuppressWarnings("unchecked")
public static Throwable toException(final NameBytesPair parameter) throws IOException {
 if (parameter == null || !parameter.hasValue()) return null;
 String desc = parameter.getValue().toStringUtf8();
 String type = parameter.getName();
 try {
  Class<? extends Throwable> c =
   (Class<? extends Throwable>)Class.forName(type, true, ClassLoaderHolder.CLASS_LOADER);
  Constructor<? extends Throwable> cn = null;
  try {
   cn = c.getDeclaredConstructor(String.class);
   return cn.newInstance(desc);
  } catch (NoSuchMethodException e) {
   // Could be a raw RemoteException. See HBASE-8987.
   cn = c.getDeclaredConstructor(String.class, String.class);
   return cn.newInstance(type, desc);
  }
 } catch (Exception e) {
  throw new IOException(e);
 }
}
origin: apache/hbase

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 if (hasName()) {
  hash = (37 * hash) + NAME_FIELD_NUMBER;
  hash = (53 * hash) + getName().hashCode();
 }
 if (hasValue()) {
  hash = (37 * hash) + VALUE_FIELD_NUMBER;
  hash = (53 * hash) + getValue().hashCode();
 }
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}
origin: org.apache.hbase/hbase-protocol-shaded

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 if (hasName()) {
  hash = (37 * hash) + NAME_FIELD_NUMBER;
  hash = (53 * hash) + getName().hashCode();
 }
 if (hasValue()) {
  hash = (37 * hash) + VALUE_FIELD_NUMBER;
  hash = (53 * hash) + getValue().hashCode();
 }
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}
origin: org.apache.hbase/hbase-protocol-shaded

/**
 * <code>required string name = 1;</code>
 */
public Builder clearName() {
 bitField0_ = (bitField0_ & ~0x00000001);
 name_ = getDefaultInstance().getName();
 onChanged();
 return this;
}
/**
origin: org.apache.hbase/hbase-client

scan.setAttribute(attribute.getName(), attribute.getValue().toByteArray());
origin: org.apache.hbase/hbase-client

put.setAttribute(attribute.getName(), attribute.getValue().toByteArray());
origin: org.apache.hbase/hbase-client

delete.setAttribute(attribute.getName(), attribute.getValue().toByteArray());
origin: org.apache.hbase/hbase-client

mutation.setAttribute(attribute.getName(), attribute.getValue().toByteArray());
origin: org.apache.hbase/hbase-client

get.setAttribute(attribute.getName(), attribute.getValue().toByteArray());
origin: org.apache.hbase/hbase-client

get.setAttribute(attribute.getName(), attribute.getValue().toByteArray());
origin: org.apache.hbase/hbase-client

/**
 * Convert a stringified protocol buffer exception Parameter to a Java Exception
 *
 * @param parameter the protocol buffer Parameter to convert
 * @return the converted Exception
 * @throws IOException if failed to deserialize the parameter
 */
@SuppressWarnings("unchecked")
public static Throwable toException(final NameBytesPair parameter) throws IOException {
 if (parameter == null || !parameter.hasValue()) return null;
 String desc = parameter.getValue().toStringUtf8();
 String type = parameter.getName();
 try {
  Class<? extends Throwable> c =
   (Class<? extends Throwable>)Class.forName(type, true, ClassLoaderHolder.CLASS_LOADER);
  Constructor<? extends Throwable> cn = null;
  try {
   cn = c.getDeclaredConstructor(String.class);
   return cn.newInstance(desc);
  } catch (NoSuchMethodException e) {
   // Could be a raw RemoteException. See HBASE-8987.
   cn = c.getDeclaredConstructor(String.class, String.class);
   return cn.newInstance(type, desc);
  }
 } catch (Exception e) {
  throw new IOException(e);
 }
}
origin: apache/hbase

scan.setAttribute(attribute.getName(), attribute.getValue().toByteArray());
origin: apache/hbase

put.setAttribute(attribute.getName(), attribute.getValue().toByteArray());
origin: apache/hbase

delete.setAttribute(attribute.getName(), attribute.getValue().toByteArray());
origin: apache/hbase

get.setAttribute(attribute.getName(), attribute.getValue().toByteArray());
origin: apache/hbase

mutation.setAttribute(attribute.getName(), attribute.getValue().toByteArray());
origin: apache/hbase

get.setAttribute(attribute.getName(), attribute.getValue().toByteArray());
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.shaded.protobuf.generated.HBaseProtos.NameBytesPair)) {
  return super.equals(obj);
 }
 org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.NameBytesPair other = (org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.NameBytesPair) obj;
 boolean result = true;
 result = result && (hasName() == other.hasName());
 if (hasName()) {
  result = result && getName()
    .equals(other.getName());
 }
 result = result && (hasValue() == other.hasValue());
 if (hasValue()) {
  result = result && getValue()
    .equals(other.getValue());
 }
 result = result && unknownFields.equals(other.unknownFields);
 return result;
}
origin: apache/hbase

/**
 * <code>required string name = 1;</code>
 */
public Builder clearName() {
 bitField0_ = (bitField0_ & ~0x00000001);
 name_ = getDefaultInstance().getName();
 onChanged();
 return this;
}
/**
org.apache.hadoop.hbase.shaded.protobuf.generatedHBaseProtos$NameBytesPairgetName

Javadoc

required string name = 1;

Popular methods of HBaseProtos$NameBytesPair

  • newBuilder
  • getValue
    optional bytes value = 2;
  • hasValue
    optional bytes value = 2;
  • <init>
  • equals
  • getDefaultInstance
  • getDescriptor
  • getSerializedSize
  • hasName
    required string name = 1;
  • hashCode
  • isInitialized
  • makeExtensionsImmutable
  • isInitialized,
  • makeExtensionsImmutable,
  • parseUnknownField,
  • toBuilder

Popular in Java

  • Reactive rest calls using spring rest template
  • findViewById (Activity)
  • getExternalFilesDir (Context)
  • setContentView (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Path (java.nio.file)
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Reference (javax.naming)
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • BoxLayout (javax.swing)
  • Best IntelliJ 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