AddElementsFromFile

See javadoc - uk.gov.gchq.gaffer.operation.impl.add.AddElementsFromFile

Available since Gaffer version 1.0.0

This is not a core operation. To enable it to be handled by Apache Flink, see flink-library/README.md

Required fields

The following fields are required:

  • filename
  • elementGenerator

Examples

Add elements from file

Java
JSON
Full JSON
Python
final AddElementsFromFile op = new AddElementsFromFile.Builder()
        .filename("filename")
        .generator(ElementGenerator.class)
        .parallelism(1)
        .validate(true)
        .skipInvalidElements(false)
        .build();
{
  "class" : "AddElementsFromFile",
  "filename" : "filename",
  "elementGenerator" : "ElementGenerator",
  "parallelism" : 1,
  "skipInvalidElements" : false,
  "validate" : true
}
{
  "class" : "uk.gov.gchq.gaffer.operation.impl.add.AddElementsFromFile",
  "filename" : "filename",
  "elementGenerator" : "uk.gov.gchq.gaffer.doc.operation.generator.ElementGenerator",
  "parallelism" : 1,
  "skipInvalidElements" : false,
  "validate" : true
}
g.AddElementsFromFile( 
  filename="filename", 
  element_generator="uk.gov.gchq.gaffer.doc.operation.generator.ElementGenerator", 
  parallelism=1, 
  skip_invalid_elements=False, 
  validate=True 
)


results matching ""

    No results matching ""