Codota Logo
AdminProtos$FlushRegionResponse$Builder.setFlushed
Code IndexAdd Codota to your IDE (free)

How to use
setFlushed
method
in
org.apache.hadoop.hbase.protobuf.generated.AdminProtos$FlushRegionResponse$Builder

Best Java code snippets using org.apache.hadoop.hbase.protobuf.generated.AdminProtos$FlushRegionResponse$Builder.setFlushed (Showing top 6 results out of 315)

  • Common ways to obtain AdminProtos$FlushRegionResponse$Builder
private void myMethod () {
AdminProtos$FlushRegionResponse$Builder a =
  • Codota Iconnew Builder()
  • Codota IconAdminProtos.FlushRegionResponse adminProtosFlushRegionResponse;AdminProtos.FlushRegionResponse other;adminProtosFlushRegionResponse.newBuilder().mergeFrom(other)
  • Smart code suggestions by Codota
}
origin: harbby/presto-connectors

 private FlushRegionResponse flushRegion() throws IOException {
  // check whether we should still do the flush to this region. If the regions are changed due
  // to splits or merges, etc return success
  if (!Bytes.equals(location.getRegionInfo().getRegionName(), regionName)) {
   if (!reload) {
    throw new IOException("Cached location seems to be different than requested region.");
   }
   LOG.info("Skipping flush region, because the located region "
     + Bytes.toStringBinary(location.getRegionInfo().getRegionName()) + " is different than "
     + " requested region " + Bytes.toStringBinary(regionName));
   return FlushRegionResponse.newBuilder()
     .setLastFlushTime(EnvironmentEdgeManager.currentTime())
     .setFlushed(false)
     .setWroteFlushWalMarker(false)
     .build();
  }

  FlushRegionRequest request =
    RequestConverter.buildFlushRegionRequest(regionName, writeFlushWalMarker);

  try {
   PayloadCarryingRpcController controller = rpcControllerFactory.newController();
   controller.setPriority(tableName);
   return stub.flushRegion(controller, request);
  } catch (ServiceException se) {
   throw ProtobufUtil.getRemoteException(se);
  }
 }
}
origin: apache/hbase

public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.FlushRegionResponse other) {
 if (other == org.apache.hadoop.hbase.protobuf.generated.AdminProtos.FlushRegionResponse.getDefaultInstance()) return this;
 if (other.hasLastFlushTime()) {
  setLastFlushTime(other.getLastFlushTime());
 }
 if (other.hasFlushed()) {
  setFlushed(other.getFlushed());
 }
 if (other.hasWroteFlushWalMarker()) {
  setWroteFlushWalMarker(other.getWroteFlushWalMarker());
 }
 this.mergeUnknownFields(other.getUnknownFields());
 return this;
}
origin: org.apache.hbase/hbase-protocol

public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.FlushRegionResponse other) {
 if (other == org.apache.hadoop.hbase.protobuf.generated.AdminProtos.FlushRegionResponse.getDefaultInstance()) return this;
 if (other.hasLastFlushTime()) {
  setLastFlushTime(other.getLastFlushTime());
 }
 if (other.hasFlushed()) {
  setFlushed(other.getFlushed());
 }
 if (other.hasWroteFlushWalMarker()) {
  setWroteFlushWalMarker(other.getWroteFlushWalMarker());
 }
 this.mergeUnknownFields(other.getUnknownFields());
 return this;
}
origin: harbby/presto-connectors

public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.FlushRegionResponse other) {
 if (other == org.apache.hadoop.hbase.protobuf.generated.AdminProtos.FlushRegionResponse.getDefaultInstance()) return this;
 if (other.hasLastFlushTime()) {
  setLastFlushTime(other.getLastFlushTime());
 }
 if (other.hasFlushed()) {
  setFlushed(other.getFlushed());
 }
 if (other.hasWroteFlushWalMarker()) {
  setWroteFlushWalMarker(other.getWroteFlushWalMarker());
 }
 this.mergeUnknownFields(other.getUnknownFields());
 return this;
}
origin: com.aliyun.hbase/alihbase-protocol

public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.FlushRegionResponse other) {
 if (other == org.apache.hadoop.hbase.protobuf.generated.AdminProtos.FlushRegionResponse.getDefaultInstance()) return this;
 if (other.hasLastFlushTime()) {
  setLastFlushTime(other.getLastFlushTime());
 }
 if (other.hasFlushed()) {
  setFlushed(other.getFlushed());
 }
 if (other.hasWroteFlushWalMarker()) {
  setWroteFlushWalMarker(other.getWroteFlushWalMarker());
 }
 this.mergeUnknownFields(other.getUnknownFields());
 return this;
}
origin: harbby/presto-connectors

  "Compaction through user triggered flush");
builder.setFlushed(flushResult.isFlushSucceeded());
builder.setWroteFlushWalMarker(flushResult.wroteFlushWalMarker);
org.apache.hadoop.hbase.protobuf.generatedAdminProtos$FlushRegionResponse$BuildersetFlushed

Javadoc

optional bool flushed = 2;

Popular methods of AdminProtos$FlushRegionResponse$Builder

  • <init>
  • buildPartial
  • create
  • hasLastFlushTime
    required uint64 last_flush_time = 1;
  • maybeForceBuilderInitialization
  • mergeFrom
  • mergeUnknownFields
  • newUninitializedMessageException
  • onBuilt
  • onChanged
  • setLastFlushTime
    required uint64 last_flush_time = 1;
  • setWroteFlushWalMarker
    optional bool wrote_flush_wal_marker = 3;
  • setLastFlushTime,
  • setWroteFlushWalMarker,
  • build

Popular in Java

  • Start an intent from android
  • notifyDataSetChanged (ArrayAdapter)
  • getSharedPreferences (Context)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now