Codota Logo
ClientProtos$RegionActionResult.hasException
Code IndexAdd Codota to your IDE (free)

How to use
hasException
method
in
org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos$RegionActionResult

Best Java code snippets using org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos$RegionActionResult.hasException (Showing top 11 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: apache/hbase

 @Override
 protected MultiResponse rpcCall() throws Exception {
  CompareType compareType = CompareType.valueOf(opName);
  MultiRequest request = RequestConverter
   .buildMutateRequest(getLocation().getRegionInfo().getRegionName(), row, family, qualifier,
    new BinaryComparator(value), compareType, timeRange, rm);
  ClientProtos.MultiResponse response = doMulti(request);
  ClientProtos.RegionActionResult res = response.getRegionActionResultList().get(0);
  if (res.hasException()) {
   Throwable ex = ProtobufUtil.toException(res.getException());
   if (ex instanceof IOException) {
    throw (IOException) ex;
   }
   throw new IOException(
    "Failed to checkAndMutate row: " + Bytes.toStringBinary(rm.getRow()), ex);
  }
  return ResponseConverter.getResults(request, response, getRpcControllerCellScanner());
 }
};
origin: apache/hbase

 @Override
 protected MultiResponse rpcCall() throws Exception {
  RegionAction.Builder regionMutationBuilder = RequestConverter.buildRegionAction(
    getLocation().getRegionInfo().getRegionName(), rm);
  regionMutationBuilder.setAtomic(true);
  MultiRequest request =
    MultiRequest.newBuilder().addRegionAction(regionMutationBuilder.build()).build();
  ClientProtos.MultiResponse response = doMulti(request);
  ClientProtos.RegionActionResult res = response.getRegionActionResultList().get(0);
  if (res.hasException()) {
   Throwable ex = ProtobufUtil.toException(res.getException());
   if (ex instanceof IOException) {
    throw (IOException) ex;
   }
   throw new IOException("Failed to mutate row: " + Bytes.toStringBinary(rm.getRow()), ex);
  }
  return ResponseConverter.getResults(request, response, getRpcControllerCellScanner());
 }
};
origin: apache/hbase

assertTrue(response.getRegionActionResultList().get(0).hasException());
assertFalse(response.getRegionActionResultList().get(1).hasException());
assertEquals(1, response.getRegionActionResultList().get(1).getResultOrExceptionCount());
assertTrue(
origin: apache/hbase

if (actionResult.hasException()) {
 Throwable regionException =  ProtobufUtil.toException(actionResult.getException());
 results.addException(regionName, regionException);
origin: org.apache.hbase/hbase-client

 @Override
 protected MultiResponse rpcCall() throws Exception {
  RegionAction.Builder regionMutationBuilder = RequestConverter.buildRegionAction(
    getLocation().getRegionInfo().getRegionName(), rm);
  regionMutationBuilder.setAtomic(true);
  MultiRequest request =
    MultiRequest.newBuilder().addRegionAction(regionMutationBuilder.build()).build();
  ClientProtos.MultiResponse response = doMulti(request);
  ClientProtos.RegionActionResult res = response.getRegionActionResultList().get(0);
  if (res.hasException()) {
   Throwable ex = ProtobufUtil.toException(res.getException());
   if (ex instanceof IOException) {
    throw (IOException) ex;
   }
   throw new IOException("Failed to mutate row: " + Bytes.toStringBinary(rm.getRow()), ex);
  }
  return ResponseConverter.getResults(request, response, getRpcControllerCellScanner());
 }
};
origin: org.apache.hbase/hbase-client

if (actionResult.hasException()) {
 Throwable regionException =  ProtobufUtil.toException(actionResult.getException());
 results.addException(regionName, regionException);
origin: com.aliyun.hbase/alihbase-client

 @Override
 protected MultiResponse rpcCall() throws Exception {
  RegionAction.Builder regionMutationBuilder = RequestConverter.buildRegionAction(
    getLocation().getRegionInfo().getRegionName(), rm);
  regionMutationBuilder.setAtomic(true);
  MultiRequest request =
    MultiRequest.newBuilder().addRegionAction(regionMutationBuilder.build()).build();
  ClientProtos.MultiResponse response = doMulti(request);
  ClientProtos.RegionActionResult res = response.getRegionActionResultList().get(0);
  if (res.hasException()) {
   Throwable ex = ProtobufUtil.toException(res.getException());
   if (ex instanceof IOException) {
    throw (IOException) ex;
   }
   throw new IOException("Failed to mutate row: " + Bytes.toStringBinary(rm.getRow()), ex);
  }
  return ResponseConverter.getResults(request, response, getRpcControllerCellScanner());
 }
};
origin: com.aliyun.hbase/alihbase-client

 @Override
 protected MultiResponse rpcCall() throws Exception {
  CompareType compareType = CompareType.valueOf(opName);
  MultiRequest request = RequestConverter
   .buildMutateRequest(getLocation().getRegionInfo().getRegionName(), row, family, qualifier,
    new BinaryComparator(value), compareType, timeRange, rm);
  ClientProtos.MultiResponse response = doMulti(request);
  ClientProtos.RegionActionResult res = response.getRegionActionResultList().get(0);
  if (res.hasException()) {
   Throwable ex = ProtobufUtil.toException(res.getException());
   if (ex instanceof IOException) {
    throw (IOException) ex;
   }
   throw new IOException(
    "Failed to checkAndMutate row: " + Bytes.toStringBinary(rm.getRow()), ex);
  }
  return ResponseConverter.getResults(request, response, getRpcControllerCellScanner());
 }
};
origin: org.apache.hbase/hbase-server

assertTrue(response.getRegionActionResultList().get(0).hasException());
assertFalse(response.getRegionActionResultList().get(1).hasException());
assertEquals(1, response.getRegionActionResultList().get(1).getResultOrExceptionCount());
assertTrue(
origin: com.aliyun.hbase/alihbase-client

if (actionResult.hasException()) {
 Throwable regionException =  ProtobufUtil.toException(actionResult.getException());
 results.addException(regionName, regionException);
origin: org.apache.hbase/hbase-client

 @Override
 protected MultiResponse rpcCall() throws Exception {
  CompareType compareType = CompareType.valueOf(opName);
  MultiRequest request = RequestConverter
   .buildMutateRequest(getLocation().getRegionInfo().getRegionName(), row, family, qualifier,
    new BinaryComparator(value), compareType, timeRange, rm);
  ClientProtos.MultiResponse response = doMulti(request);
  ClientProtos.RegionActionResult res = response.getRegionActionResultList().get(0);
  if (res.hasException()) {
   Throwable ex = ProtobufUtil.toException(res.getException());
   if (ex instanceof IOException) {
    throw (IOException) ex;
   }
   throw new IOException(
    "Failed to checkAndMutate row: " + Bytes.toStringBinary(rm.getRow()), ex);
  }
  return ResponseConverter.getResults(request, response, getRpcControllerCellScanner());
 }
};
org.apache.hadoop.hbase.shaded.protobuf.generatedClientProtos$RegionActionResulthasException

Popular methods of ClientProtos$RegionActionResult

  • getResultOrExceptionCount
  • getResultOrExceptionList
  • newBuilder
  • getException

Popular in Java

  • Reading from database using SQL prepared statement
  • getApplicationContext (Context)
  • startActivity (Activity)
  • putExtra (Intent)
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Collectors (java.util.stream)
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
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