Class OpenCypherCsvElementGenerator
- java.lang.Object
-
- uk.gov.gchq.gaffer.data.generator.OpenCypherCsvElementGenerator
-
- All Implemented Interfaces:
Function<Iterable<? extends String>,Iterable<? extends Element>>
,ElementGenerator<String>
- Direct Known Subclasses:
Neo4jCsvElementGenerator
,NeptuneCsvElementGenerator
public abstract class OpenCypherCsvElementGenerator extends Object implements ElementGenerator<String>
This is an abstract base class forElementGenerator
s that will generate GafferElement
s from OpenCypher-like CSV strings. The main use case for this is to generate elements when importing csv files. Example implementations are Neo4jCsvElementGenerator and NeptuneCsvElementGenerator.
-
-
Field Summary
Fields Modifier and Type Field Description static Map<String,uk.gov.gchq.koryphe.function.KorypheFunction<?,?>>
TRANSFORM_MAPPINGS
-
Constructor Summary
Constructors Constructor Description OpenCypherCsvElementGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<? extends Element>
apply(Iterable<? extends String> strings)
char
getDelimiter()
int
getFirstRow()
String
getNullString()
Boolean
getTrim()
void
setDelimiter(char delimiter)
void
setFirstRow(int firstRow)
void
setNullString(String nullString)
void
setTrim(Boolean trim)
-
-
-
Method Detail
-
getFirstRow
public int getFirstRow()
-
setFirstRow
public void setFirstRow(int firstRow)
-
getTrim
public Boolean getTrim()
-
setTrim
public void setTrim(Boolean trim)
-
getDelimiter
public char getDelimiter()
-
setDelimiter
public void setDelimiter(char delimiter)
-
getNullString
public String getNullString()
-
setNullString
public void setNullString(String nullString)
-
-