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

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

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

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

boolean updateRootDir = false;
for (NameStringPair e : c.getMapEntriesList()) {
 String key = e.getName();
origin: apache/hbase

/**
 * Converts a TableSchema to TableDescriptor
 * @param ts A pb TableSchema instance.
 * @return An {@link TableDescriptor} made from the passed in pb <code>ts</code>.
 */
public static TableDescriptor toTableDescriptor(final TableSchema ts) {
 TableDescriptorBuilder builder
  = TableDescriptorBuilder.newBuilder(ProtobufUtil.toTableName(ts.getTableName()));
 ts.getColumnFamiliesList()
  .stream()
  .map(ProtobufUtil::toColumnFamilyDescriptor)
  .forEach(builder::setColumnFamily);
 ts.getAttributesList()
  .forEach(a -> builder.setValue(a.getFirst().toByteArray(), a.getSecond().toByteArray()));
 ts.getConfigurationList()
  .forEach(a -> builder.setValue(a.getName(), a.getValue()));
 return builder.build();
}
origin: com.aliyun.hbase/alihbase-client

builder.putConfiguration(pair.getName(), pair.getValue());
origin: org.apache.hbase/hbase-protocol-shaded

@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.NameStringPair)) {
  return super.equals(obj);
 }
 org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.NameStringPair other = (org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.NameStringPair) 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: 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: com.aliyun.hbase/alihbase-client

/**
 * Converts a TableSchema to TableDescriptor
 * @param ts A pb TableSchema instance.
 * @return An {@link TableDescriptor} made from the passed in pb <code>ts</code>.
 */
public static TableDescriptor toTableDescriptor(final TableSchema ts) {
 TableDescriptorBuilder builder
  = TableDescriptorBuilder.newBuilder(ProtobufUtil.toTableName(ts.getTableName()));
 ts.getColumnFamiliesList()
  .stream()
  .map(ProtobufUtil::toColumnFamilyDescriptor)
  .forEach(builder::setColumnFamily);
 ts.getAttributesList()
  .forEach(a -> builder.setValue(a.getFirst().toByteArray(), a.getSecond().toByteArray()));
 ts.getConfigurationList()
  .forEach(a -> builder.setValue(a.getName(), a.getValue()));
 return builder.build();
}
origin: com.aliyun.hbase/alihbase-client

/**
 * Converts a ColumnFamilySchema to ColumnFamilyDescriptor
 * @param cfs the ColumnFamilySchema
 * @return An {@link ColumnFamilyDescriptor} made from the passed in <code>cfs</code>
 */
public static ColumnFamilyDescriptor toColumnFamilyDescriptor(final ColumnFamilySchema cfs) {
 // Use the empty constructor so we preserve the initial values set on construction for things
 // like maxVersion.  Otherwise, we pick up wrong values on deserialization which makes for
 // unrelated-looking test failures that are hard to trace back to here.
 ColumnFamilyDescriptorBuilder builder
  = ColumnFamilyDescriptorBuilder.newBuilder(cfs.getName().toByteArray());
 cfs.getAttributesList().forEach(a -> builder.setValue(a.getFirst().toByteArray(), a.getSecond().toByteArray()));
 cfs.getConfigurationList().forEach(a -> builder.setConfiguration(a.getName(), a.getValue()));
 return builder.build();
}
origin: com.aliyun.hbase/alihbase-client

public static NamespaceDescriptor toNamespaceDescriptor(HBaseProtos.NamespaceDescriptor desc) {
 NamespaceDescriptor.Builder b = NamespaceDescriptor.create(desc.getName().toStringUtf8());
 for (HBaseProtos.NameStringPair prop : desc.getConfigurationList()) {
  b.addConfiguration(prop.getName(), prop.getValue());
 }
 return b.build();
}
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

builder.putConfiguration(pair.getName(), pair.getValue());
origin: org.apache.hbase/hbase-client

/**
 * Converts a TableSchema to TableDescriptor
 * @param ts A pb TableSchema instance.
 * @return An {@link TableDescriptor} made from the passed in pb <code>ts</code>.
 */
public static TableDescriptor toTableDescriptor(final TableSchema ts) {
 TableDescriptorBuilder builder
  = TableDescriptorBuilder.newBuilder(ProtobufUtil.toTableName(ts.getTableName()));
 ts.getColumnFamiliesList()
  .stream()
  .map(ProtobufUtil::toColumnFamilyDescriptor)
  .forEach(builder::setColumnFamily);
 ts.getAttributesList()
  .forEach(a -> builder.setValue(a.getFirst().toByteArray(), a.getSecond().toByteArray()));
 ts.getConfigurationList()
  .forEach(a -> builder.setValue(a.getName(), a.getValue()));
 return builder.build();
}
origin: org.apache.hbase/hbase-client

/**
 * Converts a ColumnFamilySchema to ColumnFamilyDescriptor
 * @param cfs the ColumnFamilySchema
 * @return An {@link ColumnFamilyDescriptor} made from the passed in <code>cfs</code>
 */
public static ColumnFamilyDescriptor toColumnFamilyDescriptor(final ColumnFamilySchema cfs) {
 // Use the empty constructor so we preserve the initial values set on construction for things
 // like maxVersion.  Otherwise, we pick up wrong values on deserialization which makes for
 // unrelated-looking test failures that are hard to trace back to here.
 ColumnFamilyDescriptorBuilder builder
  = ColumnFamilyDescriptorBuilder.newBuilder(cfs.getName().toByteArray());
 cfs.getAttributesList().forEach(a -> builder.setValue(a.getFirst().toByteArray(), a.getSecond().toByteArray()));
 cfs.getConfigurationList().forEach(a -> builder.setConfiguration(a.getName(), a.getValue()));
 return builder.build();
}
origin: org.apache.hbase/hbase-client

public static NamespaceDescriptor toNamespaceDescriptor(HBaseProtos.NamespaceDescriptor desc) {
 NamespaceDescriptor.Builder b = NamespaceDescriptor.create(desc.getName().toStringUtf8());
 for (HBaseProtos.NameStringPair prop : desc.getConfigurationList()) {
  b.addConfiguration(prop.getName(), prop.getValue());
 }
 return b.build();
}
origin: apache/hbase

builder.putConfiguration(pair.getName(), pair.getValue());
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.NameStringPair)) {
  return super.equals(obj);
 }
 org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.NameStringPair other = (org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.NameStringPair) 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

 private SnapshotDescription toSnapshotDescription(ProcedureDescription desc)
   throws IOException {
  SnapshotDescription.Builder builder = SnapshotDescription.newBuilder();
  if (!desc.hasInstance()) {
   throw new IOException("Snapshot name is not defined: " + desc.toString());
  }
  String snapshotName = desc.getInstance();
  List<NameStringPair> props = desc.getConfigurationList();
  String table = null;
  for (NameStringPair prop : props) {
   if ("table".equalsIgnoreCase(prop.getName())) {
    table = prop.getValue();
   }
  }
  if (table == null) {
   throw new IOException("Snapshot table is not defined: " + desc.toString());
  }
  TableName tableName = TableName.valueOf(table);
  builder.setTable(tableName.getNameAsString());
  builder.setName(snapshotName);
  builder.setType(SnapshotDescription.Type.FLUSH);
  return builder.build();
 }
}
origin: apache/hbase

/**
 * Converts a ColumnFamilySchema to ColumnFamilyDescriptor
 * @param cfs the ColumnFamilySchema
 * @return An {@link ColumnFamilyDescriptor} made from the passed in <code>cfs</code>
 */
public static ColumnFamilyDescriptor toColumnFamilyDescriptor(final ColumnFamilySchema cfs) {
 // Use the empty constructor so we preserve the initial values set on construction for things
 // like maxVersion.  Otherwise, we pick up wrong values on deserialization which makes for
 // unrelated-looking test failures that are hard to trace back to here.
 ColumnFamilyDescriptorBuilder builder
  = ColumnFamilyDescriptorBuilder.newBuilder(cfs.getName().toByteArray());
 cfs.getAttributesList().forEach(a -> builder.setValue(a.getFirst().toByteArray(), a.getSecond().toByteArray()));
 cfs.getConfigurationList().forEach(a -> builder.setConfiguration(a.getName(), a.getValue()));
 return builder.build();
}
origin: apache/hbase

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

public static NamespaceDescriptor toNamespaceDescriptor(HBaseProtos.NamespaceDescriptor desc) {
 NamespaceDescriptor.Builder b = NamespaceDescriptor.create(desc.getName().toStringUtf8());
 for (HBaseProtos.NameStringPair prop : desc.getConfigurationList()) {
  b.addConfiguration(prop.getName(), prop.getValue());
 }
 return b.build();
}
org.apache.hadoop.hbase.shaded.protobuf.generatedHBaseProtos$NameStringPairgetName

Javadoc

required string name = 1;

Popular methods of HBaseProtos$NameStringPair

  • getValue
    required string value = 2;
  • newBuilder
  • <init>
  • getDefaultInstance
  • getDescriptor
  • hasName
    required string name = 1;
  • hasValue
    required string value = 2;
  • isInitialized
  • makeExtensionsImmutable
  • parseUnknownField
  • toBuilder
  • toBuilder

Popular in Java

  • Running tasks concurrently on multiple threads
  • getContentResolver (Context)
  • getApplicationContext (Context)
  • setScale (BigDecimal)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • CodeWhisperer alternatives
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