Tabnine Logo
AddElements.isSkipInvalidElements
Code IndexAdd Tabnine to your IDE (free)

How to use
isSkipInvalidElements
method
in
uk.gov.gchq.gaffer.operation.impl.add.AddElements

Best Java code snippets using uk.gov.gchq.gaffer.operation.impl.add.AddElements.isSkipInvalidElements (Showing top 3 results out of 315)

origin: uk.gov.gchq.gaffer/map-store

@Override
public Void doOperation(final AddElements addElements, final Context context, final Store store) throws OperationException {
  Iterable<? extends Element> elements = addElements.getInput();
  if (addElements.isValidate()) {
    elements = new ValidatedElements(elements, store.getSchema(), addElements.isSkipInvalidElements());
  }
  addElements(elements, (MapStore) store);
  return null;
}
origin: uk.gov.gchq.gaffer/accumulo-store

  private void addElements(final AddElements operation, final AccumuloStore store)
      throws OperationException {
    try {
      final Iterable<?extends Element> validatedElements;
      if (operation.isValidate()) {
        validatedElements = new ValidatedElements(operation.getInput(), store.getSchema(), operation.isSkipInvalidElements());
      } else {
        validatedElements = operation.getInput();
      }
      store.addElements(validatedElements);
    } catch (final StoreException e) {
      throw new OperationException("Failed to add elements", e);
    }
  }
}
origin: uk.gov.gchq.gaffer/federated-store

final AddElements addElements = ((AddElements) operation);
if (null == addElements.getInput()) {
  if (!addElements.isValidate() || !addElements.isSkipInvalidElements()) {
    LOGGER.debug("Invalid elements will be skipped when added to {}", graph.getGraphId());
    resultOp = (OP) addElements.shallowClone();
uk.gov.gchq.gaffer.operation.impl.addAddElementsisSkipInvalidElements

Popular methods of AddElements

  • getInput
  • isValidate
  • <init>
  • setInput
  • setSkipInvalidElements
  • setValidate
  • shallowClone

Popular in Java

  • Reading from database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • setContentView (Activity)
  • getSharedPreferences (Context)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now