Codota Logo
AddElements.isValidate
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
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.addAddElementsisValidate

Popular methods of AddElements

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

Popular in Java

  • Parsing JSON documents to java classes using gson
  • runOnUiThread (Activity)
  • putExtra (Intent)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • ObjectMapper (com.fasterxml.jackson.databind)
    This mapper (or, data binder, or codec) provides functionality for converting between Java objects (
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • JComboBox (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
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