congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
AddElements.getInput
Code IndexAdd Tabnine to your IDE (free)

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

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

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/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/parquet-store

final Iterable<? extends Element> input = addElementsOperation.getInput();
final ExecutorService pool = createThreadPool(spark, parquetStoreProperties);
final List<Callable<Tuple2<String, Map<Object, Integer>>>> tasks = new ArrayList<>();
origin: uk.gov.gchq.gaffer/federated-store

if (null == addElements.getInput()) {
  if (!addElements.isValidate() || !addElements.isSkipInvalidElements()) {
    LOGGER.debug("Invalid elements will be skipped when added to {}", graph.getGraphId());
  final Set<String> graphGroups = graph.getSchema().getGroups();
  final Iterable<? extends Element> filteredInput = Iterables.filter(
      addElements.getInput(),
      element -> graphGroups.contains(null != element ? element.getGroup() : null)
  );
uk.gov.gchq.gaffer.operation.impl.addAddElementsgetInput

Popular methods of AddElements

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

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getApplicationContext (Context)
  • getContentResolver (Context)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • 14 Best Plugins for Eclipse
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