public class Neo4jBatchInserterRelationship extends Object
Modifier and Type | Field and Description |
---|---|
protected Neo4jBatchDatabase |
batchDb
Neo4jBatchDatabase.
|
Constructor and Description |
---|
Neo4jBatchInserterRelationship(Neo4jBatchDatabase graphDb,
String relationshipTypeField,
String direction,
String startIndexName,
String startIndexField,
String endIndexName,
String endIndexField,
Boolean skipOnError)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Map<String,Object> |
constructMapFromObject(Object obj,
List<String> columnList)
Convert a Talend object to a map of attributes.
|
void |
create(Object incoming,
List<String> columnList)
Create the relationship.
|
void |
finish()
Finish the process.
|
protected Object |
getObjectProperty(Object obj,
String property)
Retrieve the value of a field on an object
|
protected Neo4jBatchDatabase batchDb
public Neo4jBatchInserterRelationship(Neo4jBatchDatabase graphDb, String relationshipTypeField, String direction, String startIndexName, String startIndexField, String endIndexName, String endIndexField, Boolean skipOnError) throws IOException
IOException
public void create(Object incoming, List<String> columnList)
incoming
- Talend incoming objectcolumnList
- Attribute list of Talend objectpublic void finish()
protected Object getObjectProperty(Object obj, String property) throws IllegalAccessException
obj
- the objectproperty
- the property to retrieveIllegalAccessException
protected Map<String,Object> constructMapFromObject(Object obj, List<String> columnList) throws IllegalAccessException
obj
- The talend objectcolumnList
- List of object propertiesIllegalAccessException
Copyright © 2017. All rights reserved.