-
-
Save nickname55/2c2a7dbbe690063c7d386880979dc408 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HadoopPlatform platform = new HadoopPlatform(); | |
Fields sourceFields = new Fields("name", "nationality"); | |
Tap source = platform.getDelimitedFile(sourceFields, ",", filename); | |
NodeScheme scheme = new NodeScheme(sourceFields); | |
Tap sink = new Neo4jTap("http://neo4j.rest.co/db/data", scheme); | |
Pipe pipe = new Each("Flow nodes", sourceFields, new Identity()); | |
Flow flow = platform.getFlowConnector().connect(source, sink, pipe); | |
flow.complete(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment