public class Neo4jHttpPersistReader extends SimpleHttpProvider implements StreamsPersistReader
Modifier and Type | Field and Description |
---|---|
static String |
STREAMS_ID |
configuration, httpclient, lock, providerQueue, uriBuilder
Constructor and Description |
---|
Neo4jHttpPersistReader()
GraphVertexReader constructor - resolve GraphReaderConfiguration from JVM 'graph'.
|
Neo4jHttpPersistReader(Neo4jReaderConfiguration configuration)
GraphVertexReader constructor - use supplied GraphReaderConfiguration.
|
Modifier and Type | Method and Description |
---|---|
String |
getId() |
List<com.fasterxml.jackson.databind.node.ObjectNode> |
parse(com.fasterxml.jackson.databind.JsonNode jsonNode)
Neo API query returns something like this:
{ "columns": [ "v" ], "data": [ [ { "data": { props }, etc...
|
void |
prepare(Object configurationObject) |
org.apache.http.client.methods.HttpRequestBase |
prepareHttpRequest(URI uri)
prepareHttpRequest
|
StreamsResultSet |
readAll() |
cleanUp, isRunning, prepareParams, readCurrent, readNew, readRange, shutdownAndAwaitTermination, startStream
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
readNew, readRange
isRunning, readCurrent, startStream
cleanUp
public static final String STREAMS_ID
public Neo4jHttpPersistReader()
public Neo4jHttpPersistReader(Neo4jReaderConfiguration configuration)
configuration
- GraphReaderConfigurationpublic org.apache.http.client.methods.HttpRequestBase prepareHttpRequest(URI uri)
prepareHttpRequest
in class SimpleHttpProvider
uri
- uripublic List<com.fasterxml.jackson.databind.node.ObjectNode> parse(com.fasterxml.jackson.databind.JsonNode jsonNode)
parse
in class SimpleHttpProvider
jsonNode
- jsonNodepublic String getId()
getId
in interface StreamsOperation
getId
in class SimpleHttpProvider
public void prepare(Object configurationObject)
prepare
in interface StreamsOperation
prepare
in class SimpleHttpProvider
public StreamsResultSet readAll()
readAll
in interface StreamsPersistReader
Copyright © 2018 The Apache Software Foundation. All rights reserved.