Class Neo4jCsvGenerator
- java.lang.Object
-
- uk.gov.gchq.gaffer.data.generator.CsvGenerator
-
- uk.gov.gchq.gaffer.data.generator.Neo4jCsvGenerator
-
- All Implemented Interfaces:
Function<Iterable<? extends Element>,Iterable<? extends String>>
,ObjectGenerator<String>
,OneToOneObjectGenerator<String>
- Direct Known Subclasses:
NeptuneCsvGenerator
public class Neo4jCsvGenerator extends CsvGenerator
Generates a Neo4j CSV string for each Element, based on the fields and constants provided.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class uk.gov.gchq.gaffer.data.generator.CsvGenerator
CsvGenerator.Builder
-
-
Field Summary
Fields Modifier and Type Field Description static Map<String,String>
TYPE_MAPPINGS
-
Constructor Summary
Constructors Constructor Description Neo4jCsvGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAdditionalFieldsFromSchemaProperties(LinkedHashMap<String,Class<?>> schemaProperties)
Adds all properties from a schema to the fields if includeSchemaProperties is true.LinkedHashMap<String,String>
getFields()
boolean
getIncludeDefaultFields()
boolean
getIncludeSchemaProperties()
-
Methods inherited from class uk.gov.gchq.gaffer.data.generator.CsvGenerator
_apply, getCommaReplacement, getConstants, getHeader, isQuoted, setCommaReplacement, setConstants, setFields, setIncludeDefaultFields, setIncludeSchemaProperties, setQuoted
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface uk.gov.gchq.gaffer.data.generator.OneToOneObjectGenerator
apply
-
-
-
-
Method Detail
-
getIncludeDefaultFields
public boolean getIncludeDefaultFields()
- Overrides:
getIncludeDefaultFields
in classCsvGenerator
-
getIncludeSchemaProperties
public boolean getIncludeSchemaProperties()
- Overrides:
getIncludeSchemaProperties
in classCsvGenerator
-
getFields
public LinkedHashMap<String,String> getFields()
- Overrides:
getFields
in classCsvGenerator
-
addAdditionalFieldsFromSchemaProperties
public void addAdditionalFieldsFromSchemaProperties(LinkedHashMap<String,Class<?>> schemaProperties)
Description copied from class:CsvGenerator
Adds all properties from a schema to the fields if includeSchemaProperties is true.- Overrides:
addAdditionalFieldsFromSchemaProperties
in classCsvGenerator
- Parameters:
schemaProperties
- a Map of property names to types.
-
-