Tabnine Logo
TableDataInsertAllResponse$InsertErrors.getIndex
Code IndexAdd Tabnine to your IDE (free)

How to use
getIndex
method
in
com.google.api.services.bigquery.model.TableDataInsertAllResponse$InsertErrors

Best Java code snippets using com.google.api.services.bigquery.model.TableDataInsertAllResponse$InsertErrors.getIndex (Showing top 5 results out of 315)

origin: googleapis/google-cloud-java

 static InsertAllResponse fromPb(TableDataInsertAllResponse responsePb) {
  Map<Long, List<BigQueryError>> insertErrors = null;
  if (responsePb.getInsertErrors() != null) {
   List<InsertErrors> errorsPb = responsePb.getInsertErrors();
   insertErrors = Maps.newHashMapWithExpectedSize(errorsPb.size());
   for (InsertErrors errorPb : errorsPb) {
    insertErrors.put(
      errorPb.getIndex(),
      Lists.transform(
        errorPb.getErrors() != null ? errorPb.getErrors() : ImmutableList.<ErrorProto>of(),
        BigQueryError.FROM_PB_FUNCTION));
   }
  }
  return new InsertAllResponse(insertErrors);
 }
}
origin: com.google.cloud/gcloud-java-bigquery

 static InsertAllResponse fromPb(TableDataInsertAllResponse responsePb) {
  Map<Long, List<BigQueryError>> insertErrors = null;
  if (responsePb.getInsertErrors() != null) {
   List<InsertErrors> errorsPb = responsePb.getInsertErrors();
   insertErrors = Maps.newHashMapWithExpectedSize(errorsPb.size());
   for (InsertErrors errorPb : errorsPb) {
    insertErrors.put(errorPb.getIndex(), Lists.transform(
      errorPb.getErrors() != null ? errorPb.getErrors() : ImmutableList.<ErrorProto>of(),
      BigQueryError.FROM_PB_FUNCTION));
   }
  }
  return new InsertAllResponse(insertErrors);
 }
}
origin: com.google.gcloud/gcloud-java-bigquery

 static InsertAllResponse fromPb(TableDataInsertAllResponse responsePb) {
  Map<Long, List<BigQueryError>> insertErrors = null;
  if (responsePb.getInsertErrors() != null) {
   List<InsertErrors> errorsPb = responsePb.getInsertErrors();
   insertErrors = Maps.newHashMapWithExpectedSize(errorsPb.size());
   for (InsertErrors errorPb : errorsPb) {
    insertErrors.put(errorPb.getIndex(), Lists.transform(
      errorPb.getErrors() != null ? errorPb.getErrors() : ImmutableList.<ErrorProto>of(),
      BigQueryError.FROM_PB_FUNCTION));
   }
  }
  return new InsertAllResponse(insertErrors);
 }
}
origin: org.apache.beam/beam-sdks-java-io-google-cloud-platform

if (error.getIndex() == null) {
 throw new IOException("Insert failed: " + error + ", other errors: " + allErrors);
int errorIndex = error.getIndex().intValue() + strideIndices.get(i);
if (retryPolicy.shouldRetry(new InsertRetryPolicy.Context(error))) {
 allErrors.add(error);
origin: com.google.cloud/google-cloud-bigquery

 static InsertAllResponse fromPb(TableDataInsertAllResponse responsePb) {
  Map<Long, List<BigQueryError>> insertErrors = null;
  if (responsePb.getInsertErrors() != null) {
   List<InsertErrors> errorsPb = responsePb.getInsertErrors();
   insertErrors = Maps.newHashMapWithExpectedSize(errorsPb.size());
   for (InsertErrors errorPb : errorsPb) {
    insertErrors.put(
      errorPb.getIndex(),
      Lists.transform(
        errorPb.getErrors() != null ? errorPb.getErrors() : ImmutableList.<ErrorProto>of(),
        BigQueryError.FROM_PB_FUNCTION));
   }
  }
  return new InsertAllResponse(insertErrors);
 }
}
com.google.api.services.bigquery.modelTableDataInsertAllResponse$InsertErrorsgetIndex

Javadoc

The index of the row that error applies to.

Popular methods of TableDataInsertAllResponse$InsertErrors

  • getErrors
    Error information for the row indicated by the index property.
  • <init>
  • setErrors
    Error information for the row indicated by the index property.
  • setIndex
    The index of the row that error applies to.
  • toPrettyString

Popular in Java

  • Reading from database using SQL prepared statement
  • startActivity (Activity)
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Notification (javax.management)
  • Top plugins for Android Studio
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