Tabnine Logo
ClusterStatusProtos$StoreSequenceId$Builder
Code IndexAdd Tabnine to your IDE (free)

How to use
ClusterStatusProtos$StoreSequenceId$Builder
in
org.apache.hadoop.hbase.protobuf.generated

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

origin: apache/hbase

/**
 * <code>repeated .hbase.pb.StoreSequenceId store_complete_sequence_id = 18;</code>
 *
 * <pre>
 ** the most recent sequence Id of store from cache flush 
 * </pre>
 */
public Builder addStoreCompleteSequenceId(
  int index, org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId.Builder builderForValue) {
 if (storeCompleteSequenceIdBuilder_ == null) {
  ensureStoreCompleteSequenceIdIsMutable();
  storeCompleteSequenceId_.add(index, builderForValue.build());
  onChanged();
 } else {
  storeCompleteSequenceIdBuilder_.addMessage(index, builderForValue.build());
 }
 return this;
}
/**
origin: apache/hbase

public Builder mergeFrom(
  com.google.protobuf.CodedInputStream input,
  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  throws java.io.IOException {
 org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId parsedMessage = null;
 try {
  parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId) e.getUnfinishedMessage();
  throw e;
 } finally {
  if (parsedMessage != null) {
   mergeFrom(parsedMessage);
  }
 }
 return this;
}
private int bitField0_;
origin: harbby/presto-connectors

/**
 * @param regionLastFlushedSequenceId the flushed sequence id of a region which is the min of its
 *          store max seq ids
 * @param storeSequenceIds column family to sequence Id map
 * @return Serialized protobuf of <code>RegionSequenceIds</code> with pb magic prefix prepended
 *         suitable for use to filter wal edits in distributedLogReplay mode
 */
public static byte[] regionSequenceIdsToByteArray(final Long regionLastFlushedSequenceId,
  final Map<byte[], Long> storeSequenceIds) {
 ClusterStatusProtos.RegionStoreSequenceIds.Builder regionSequenceIdsBuilder =
   ClusterStatusProtos.RegionStoreSequenceIds.newBuilder();
 ClusterStatusProtos.StoreSequenceId.Builder storeSequenceIdBuilder =
   ClusterStatusProtos.StoreSequenceId.newBuilder();
 if (storeSequenceIds != null) {
  for (Map.Entry<byte[], Long> e : storeSequenceIds.entrySet()){
   byte[] columnFamilyName = e.getKey();
   Long curSeqId = e.getValue();
   storeSequenceIdBuilder.setFamilyName(ByteStringer.wrap(columnFamilyName));
   storeSequenceIdBuilder.setSequenceId(curSeqId);
   regionSequenceIdsBuilder.addStoreSequenceId(storeSequenceIdBuilder.build());
   storeSequenceIdBuilder.clear();
  }
 }
 regionSequenceIdsBuilder.setLastFlushedSequenceId(regionLastFlushedSequenceId);
 byte[] result = regionSequenceIdsBuilder.build().toByteArray();
 return ProtobufUtil.prependPBMagic(result);
}
origin: com.aliyun.hbase/alihbase-client

/**
 * @param regionLastFlushedSequenceId the flushed sequence id of a region which is the min of its
 *          store max seq ids
 * @param storeSequenceIds column family to sequence Id map
 * @return Serialized protobuf of <code>RegionSequenceIds</code> with pb magic prefix prepended
 *         suitable for use to filter wal edits in distributedLogReplay mode
 */
public static byte[] regionSequenceIdsToByteArray(final Long regionLastFlushedSequenceId,
  final Map<byte[], Long> storeSequenceIds) {
 ClusterStatusProtos.RegionStoreSequenceIds.Builder regionSequenceIdsBuilder =
   ClusterStatusProtos.RegionStoreSequenceIds.newBuilder();
 ClusterStatusProtos.StoreSequenceId.Builder storeSequenceIdBuilder =
   ClusterStatusProtos.StoreSequenceId.newBuilder();
 if (storeSequenceIds != null) {
  for (Map.Entry<byte[], Long> e : storeSequenceIds.entrySet()){
   byte[] columnFamilyName = e.getKey();
   Long curSeqId = e.getValue();
   storeSequenceIdBuilder.setFamilyName(ByteStringer.wrap(columnFamilyName));
   storeSequenceIdBuilder.setSequenceId(curSeqId);
   regionSequenceIdsBuilder.addStoreSequenceId(storeSequenceIdBuilder.build());
   storeSequenceIdBuilder.clear();
  }
 }
 regionSequenceIdsBuilder.setLastFlushedSequenceId(regionLastFlushedSequenceId);
 byte[] result = regionSequenceIdsBuilder.build().toByteArray();
 return ProtobufUtil.prependPBMagic(result);
}
origin: harbby/presto-connectors

/**
 * <code>repeated .StoreSequenceId store_last_flushed_sequence_id = 2;</code>
 *
 * <pre>
 ** the last WAL sequence id flushed from MemStore to HFile for stores of the region 
 * </pre>
 */
public Builder addStoreLastFlushedSequenceId(
  int index, org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId.Builder builderForValue) {
 if (storeLastFlushedSequenceIdBuilder_ == null) {
  ensureStoreLastFlushedSequenceIdIsMutable();
  storeLastFlushedSequenceId_.add(index, builderForValue.build());
  onChanged();
 } else {
  storeLastFlushedSequenceIdBuilder_.addMessage(index, builderForValue.build());
 }
 return this;
}
/**
origin: harbby/presto-connectors

/**
 * <code>repeated .StoreSequenceId store_last_flushed_sequence_id = 2;</code>
 *
 * <pre>
 ** the last WAL sequence id flushed from MemStore to HFile for stores of the region 
 * </pre>
 */
public Builder addStoreLastFlushedSequenceId(
  org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId.Builder builderForValue) {
 if (storeLastFlushedSequenceIdBuilder_ == null) {
  ensureStoreLastFlushedSequenceIdIsMutable();
  storeLastFlushedSequenceId_.add(builderForValue.build());
  onChanged();
 } else {
  storeLastFlushedSequenceIdBuilder_.addMessage(builderForValue.build());
 }
 return this;
}
/**
origin: harbby/presto-connectors

/**
 * <code>repeated .StoreSequenceId store_last_flushed_sequence_id = 2;</code>
 *
 * <pre>
 ** the last WAL sequence id flushed from MemStore to HFile for stores of the region 
 * </pre>
 */
public Builder setStoreLastFlushedSequenceId(
  int index, org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId.Builder builderForValue) {
 if (storeLastFlushedSequenceIdBuilder_ == null) {
  ensureStoreLastFlushedSequenceIdIsMutable();
  storeLastFlushedSequenceId_.set(index, builderForValue.build());
  onChanged();
 } else {
  storeLastFlushedSequenceIdBuilder_.setMessage(index, builderForValue.build());
 }
 return this;
}
/**
origin: harbby/presto-connectors

/**
 * <code>repeated .StoreSequenceId store_complete_sequence_id = 18;</code>
 *
 * <pre>
 ** the most recent sequence Id of store from cache flush 
 * </pre>
 */
public Builder addStoreCompleteSequenceId(
  org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId.Builder builderForValue) {
 if (storeCompleteSequenceIdBuilder_ == null) {
  ensureStoreCompleteSequenceIdIsMutable();
  storeCompleteSequenceId_.add(builderForValue.build());
  onChanged();
 } else {
  storeCompleteSequenceIdBuilder_.addMessage(builderForValue.build());
 }
 return this;
}
/**
origin: harbby/presto-connectors

/**
 * <code>repeated .StoreSequenceId store_complete_sequence_id = 18;</code>
 *
 * <pre>
 ** the most recent sequence Id of store from cache flush 
 * </pre>
 */
public Builder setStoreCompleteSequenceId(
  int index, org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId.Builder builderForValue) {
 if (storeCompleteSequenceIdBuilder_ == null) {
  ensureStoreCompleteSequenceIdIsMutable();
  storeCompleteSequenceId_.set(index, builderForValue.build());
  onChanged();
 } else {
  storeCompleteSequenceIdBuilder_.setMessage(index, builderForValue.build());
 }
 return this;
}
/**
origin: com.aliyun.hbase/alihbase-protocol

/**
 * <code>repeated .hbase.pb.StoreSequenceId store_complete_sequence_id = 18;</code>
 *
 * <pre>
 ** the most recent sequence Id of store from cache flush 
 * </pre>
 */
public Builder addStoreCompleteSequenceId(
  int index, org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId.Builder builderForValue) {
 if (storeCompleteSequenceIdBuilder_ == null) {
  ensureStoreCompleteSequenceIdIsMutable();
  storeCompleteSequenceId_.add(index, builderForValue.build());
  onChanged();
 } else {
  storeCompleteSequenceIdBuilder_.addMessage(index, builderForValue.build());
 }
 return this;
}
/**
origin: com.aliyun.hbase/alihbase-protocol

/**
 * <code>repeated .hbase.pb.StoreSequenceId store_complete_sequence_id = 18;</code>
 *
 * <pre>
 ** the most recent sequence Id of store from cache flush 
 * </pre>
 */
public Builder setStoreCompleteSequenceId(
  int index, org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId.Builder builderForValue) {
 if (storeCompleteSequenceIdBuilder_ == null) {
  ensureStoreCompleteSequenceIdIsMutable();
  storeCompleteSequenceId_.set(index, builderForValue.build());
  onChanged();
 } else {
  storeCompleteSequenceIdBuilder_.setMessage(index, builderForValue.build());
 }
 return this;
}
/**
origin: harbby/presto-connectors

public Builder mergeFrom(
  com.facebook.presto.hbase.$internal.com.google.protobuf.CodedInputStream input,
  com.facebook.presto.hbase.$internal.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  throws java.io.IOException {
 org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId parsedMessage = null;
 try {
  parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
 } catch (com.facebook.presto.hbase.$internal.com.google.protobuf.InvalidProtocolBufferException e) {
  parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId) e.getUnfinishedMessage();
  throw e;
 } finally {
  if (parsedMessage != null) {
   mergeFrom(parsedMessage);
  }
 }
 return this;
}
private int bitField0_;
origin: com.aliyun.hbase/alihbase-protocol

/**
 * <code>repeated .hbase.pb.StoreSequenceId store_complete_sequence_id = 18;</code>
 *
 * <pre>
 ** the most recent sequence Id of store from cache flush 
 * </pre>
 */
public Builder addStoreCompleteSequenceId(
  org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId.Builder builderForValue) {
 if (storeCompleteSequenceIdBuilder_ == null) {
  ensureStoreCompleteSequenceIdIsMutable();
  storeCompleteSequenceId_.add(builderForValue.build());
  onChanged();
 } else {
  storeCompleteSequenceIdBuilder_.addMessage(builderForValue.build());
 }
 return this;
}
/**
origin: harbby/presto-connectors

/**
 * <code>repeated .StoreSequenceId store_complete_sequence_id = 18;</code>
 *
 * <pre>
 ** the most recent sequence Id of store from cache flush 
 * </pre>
 */
public Builder addStoreCompleteSequenceId(
  int index, org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId.Builder builderForValue) {
 if (storeCompleteSequenceIdBuilder_ == null) {
  ensureStoreCompleteSequenceIdIsMutable();
  storeCompleteSequenceId_.add(index, builderForValue.build());
  onChanged();
 } else {
  storeCompleteSequenceIdBuilder_.addMessage(index, builderForValue.build());
 }
 return this;
}
/**
origin: org.apache.hbase/hbase-protocol

/**
 * <code>repeated .hbase.pb.StoreSequenceId store_complete_sequence_id = 18;</code>
 *
 * <pre>
 ** the most recent sequence Id of store from cache flush 
 * </pre>
 */
public Builder addStoreCompleteSequenceId(
  org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId.Builder builderForValue) {
 if (storeCompleteSequenceIdBuilder_ == null) {
  ensureStoreCompleteSequenceIdIsMutable();
  storeCompleteSequenceId_.add(builderForValue.build());
  onChanged();
 } else {
  storeCompleteSequenceIdBuilder_.addMessage(builderForValue.build());
 }
 return this;
}
/**
origin: org.apache.hbase/hbase-protocol

/**
 * <code>repeated .hbase.pb.StoreSequenceId store_complete_sequence_id = 18;</code>
 *
 * <pre>
 ** the most recent sequence Id of store from cache flush 
 * </pre>
 */
public Builder setStoreCompleteSequenceId(
  int index, org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId.Builder builderForValue) {
 if (storeCompleteSequenceIdBuilder_ == null) {
  ensureStoreCompleteSequenceIdIsMutable();
  storeCompleteSequenceId_.set(index, builderForValue.build());
  onChanged();
 } else {
  storeCompleteSequenceIdBuilder_.setMessage(index, builderForValue.build());
 }
 return this;
}
/**
origin: org.apache.hbase/hbase-protocol

/**
 * <code>repeated .hbase.pb.StoreSequenceId store_complete_sequence_id = 18;</code>
 *
 * <pre>
 ** the most recent sequence Id of store from cache flush 
 * </pre>
 */
public Builder addStoreCompleteSequenceId(
  int index, org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId.Builder builderForValue) {
 if (storeCompleteSequenceIdBuilder_ == null) {
  ensureStoreCompleteSequenceIdIsMutable();
  storeCompleteSequenceId_.add(index, builderForValue.build());
  onChanged();
 } else {
  storeCompleteSequenceIdBuilder_.addMessage(index, builderForValue.build());
 }
 return this;
}
/**
origin: com.aliyun.hbase/alihbase-protocol

public Builder mergeFrom(
  com.google.protobuf.CodedInputStream input,
  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  throws java.io.IOException {
 org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId parsedMessage = null;
 try {
  parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId) e.getUnfinishedMessage();
  throw e;
 } finally {
  if (parsedMessage != null) {
   mergeFrom(parsedMessage);
  }
 }
 return this;
}
private int bitField0_;
origin: org.apache.hbase/hbase-protocol

public Builder mergeFrom(
  com.google.protobuf.CodedInputStream input,
  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  throws java.io.IOException {
 org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId parsedMessage = null;
 try {
  parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId) e.getUnfinishedMessage();
  throw e;
 } finally {
  if (parsedMessage != null) {
   mergeFrom(parsedMessage);
  }
 }
 return this;
}
private int bitField0_;
origin: harbby/presto-connectors

/**
 * <code>repeated .StoreSequenceId store_sequence_id = 2;</code>
 */
public Builder addStoreSequenceId(
  int index, org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.StoreSequenceId.Builder builderForValue) {
 if (storeSequenceIdBuilder_ == null) {
  ensureStoreSequenceIdIsMutable();
  storeSequenceId_.add(index, builderForValue.build());
  onChanged();
 } else {
  storeSequenceIdBuilder_.addMessage(index, builderForValue.build());
 }
 return this;
}
/**
org.apache.hadoop.hbase.protobuf.generatedClusterStatusProtos$StoreSequenceId$Builder

Javadoc

Protobuf type hbase.pb.StoreSequenceId
 
sequence Id of a store 

Most used methods

  • build
  • setFamilyName
    required bytes family_name = 1;
  • setSequenceId
    required uint64 sequence_id = 2;
  • <init>
  • buildPartial
  • create
  • hasFamilyName
    required bytes family_name = 1;
  • hasSequenceId
    required uint64 sequence_id = 2;
  • maybeForceBuilderInitialization
  • mergeFrom
  • mergeUnknownFields
  • newUninitializedMessageException
  • mergeUnknownFields,
  • newUninitializedMessageException,
  • onBuilt,
  • onChanged,
  • clear

Popular in Java

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • getResourceAsStream (ClassLoader)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • From CI to AI: The AI layer in your organization
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