Tabnine Logo
VisibilityLabelsProtos$VisibilityLabelsRequest.newBuilder
Code IndexAdd Tabnine to your IDE (free)

How to use
newBuilder
method
in
org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos$VisibilityLabelsRequest

Best Java code snippets using org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos$VisibilityLabelsRequest.newBuilder (Showing top 16 results out of 315)

origin: apache/hbase

/**
 * Creates the labels data to be written to zookeeper.
 * @param existingLabels
 * @return Bytes form of labels and their ordinal details to be written to zookeeper.
 */
public static byte[] getDataToWriteToZooKeeper(Map<String, Integer> existingLabels) {
 VisibilityLabelsRequest.Builder visReqBuilder = VisibilityLabelsRequest.newBuilder();
 for (Entry<String, Integer> entry : existingLabels.entrySet()) {
  VisibilityLabel.Builder visLabBuilder = VisibilityLabel.newBuilder();
  visLabBuilder.setLabel(ByteString.copyFrom(Bytes.toBytes(entry.getKey())));
  visLabBuilder.setOrdinal(entry.getValue());
  visReqBuilder.addVisLabel(visLabBuilder.build());
 }
 return ProtobufUtil.prependPBMagic(visReqBuilder.build().toByteArray());
}
origin: harbby/presto-connectors

/**
 * Creates the labels data to be written to zookeeper.
 * @param existingLabels
 * @return Bytes form of labels and their ordinal details to be written to zookeeper.
 */
public static byte[] getDataToWriteToZooKeeper(Map<String, Integer> existingLabels) {
 VisibilityLabelsRequest.Builder visReqBuilder = VisibilityLabelsRequest.newBuilder();
 for (Entry<String, Integer> entry : existingLabels.entrySet()) {
  VisibilityLabel.Builder visLabBuilder = VisibilityLabel.newBuilder();
  visLabBuilder.setLabel(ByteStringer.wrap(Bytes.toBytes(entry.getKey())));
  visLabBuilder.setOrdinal(entry.getValue());
  visReqBuilder.addVisLabel(visLabBuilder.build());
 }
 return ProtobufUtil.prependPBMagic(visReqBuilder.build().toByteArray());
}
origin: harbby/presto-connectors

/**
 * Reads back from the zookeeper. The data read here is of the form written by
 * writeToZooKeeper(Map&lt;byte[], Integer&gt; entries).
 * 
 * @param data
 * @return Labels and their ordinal details
 * @throws DeserializationException
 */
public static List<VisibilityLabel> readLabelsFromZKData(byte[] data)
  throws DeserializationException {
 if (ProtobufUtil.isPBMagicPrefix(data)) {
  int pblen = ProtobufUtil.lengthOfPBMagic();
  try {
   VisibilityLabelsRequest.Builder builder = VisibilityLabelsRequest.newBuilder();
   ProtobufUtil.mergeFrom(builder, data, pblen, data.length - pblen);
   return builder.getVisLabelList();
  } catch (IOException e) {
   throw new DeserializationException(e);
  }
 }
 return null;
}
origin: harbby/presto-connectors

public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.VisibilityLabelsRequest prototype) {
origin: org.apache.hbase/hbase-protocol

public Builder toBuilder() { return newBuilder(this); }
origin: com.aliyun.hbase/alihbase-protocol

public Builder toBuilder() { return newBuilder(this); }
origin: harbby/presto-connectors

public Builder toBuilder() { return newBuilder(this); }
origin: com.aliyun.hbase/alihbase-protocol

public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.VisibilityLabelsRequest prototype) {
origin: org.apache.hbase/hbase-protocol

public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.VisibilityLabelsRequest prototype) {
origin: harbby/presto-connectors

public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.VisibilityLabelsRequest prototype) {
 return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
origin: com.aliyun.hbase/alihbase-protocol

public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.VisibilityLabelsRequest prototype) {
 return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
origin: org.apache.hbase/hbase-protocol

public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.VisibilityLabelsRequest prototype) {
 return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
origin: apache/hbase

/**
 * Reads back from the zookeeper. The data read here is of the form written by
 * writeToZooKeeper(Map&lt;byte[], Integer&gt; entries).
 * 
 * @param data
 * @return Labels and their ordinal details
 * @throws DeserializationException
 */
public static List<VisibilityLabel> readLabelsFromZKData(byte[] data)
  throws DeserializationException {
 if (ProtobufUtil.isPBMagicPrefix(data)) {
  int pblen = ProtobufUtil.lengthOfPBMagic();
  try {
   VisibilityLabelsRequest.Builder builder = VisibilityLabelsRequest.newBuilder();
   ProtobufUtil.mergeFrom(builder, data, pblen, data.length - pblen);
   return builder.getVisLabelList();
  } catch (IOException e) {
   throw new DeserializationException(e);
  }
 }
 return null;
}
origin: apache/hbase

public Builder toBuilder() { return newBuilder(this); }
origin: apache/hbase

public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.VisibilityLabelsRequest prototype) {
origin: apache/hbase

public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.VisibilityLabelsRequest prototype) {
 return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
org.apache.hadoop.hbase.protobuf.generatedVisibilityLabelsProtos$VisibilityLabelsRequestnewBuilder

Popular methods of VisibilityLabelsProtos$VisibilityLabelsRequest

  • getVisLabelList
    repeated .hbase.pb.VisibilityLabel visLabel = 1;
  • <init>
  • getDefaultInstance
  • getDescriptorForType
  • getSerializedSize
  • getUnknownFields
  • getVisLabel
    repeated .hbase.pb.VisibilityLabel visLabel = 1;
  • getVisLabelCount
    repeated .hbase.pb.VisibilityLabel visLabel = 1;
  • initFields
  • isInitialized
  • makeExtensionsImmutable
  • parseUnknownField
  • makeExtensionsImmutable,
  • parseUnknownField,
  • toByteArray

Popular in Java

  • Running tasks concurrently on multiple threads
  • getApplicationContext (Context)
  • getExternalFilesDir (Context)
  • getContentResolver (Context)
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • JFileChooser (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Best plugins for Eclipse
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