public class InMemoryJanusGraphClientService extends AbstractControllerService implements GraphClientService
| Modifier and Type | Field and Description |
|---|---|
private org.apache.tinkerpop.gremlin.structure.Graph |
graph |
LABELS_ADDED, NODES_CREATED, NODES_DELETED, PROPERTIES_SET, RELATIONS_CREATED, RELATIONS_DELETED, ROWS_RETURNED| Constructor and Description |
|---|
InMemoryJanusGraphClientService() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
executeQuery(String query,
Map<String,Object> parameters,
GraphQueryResultCallback handler)
Execute the query.
|
org.apache.tinkerpop.gremlin.structure.Graph |
getGraph()
Getter for accessing the generated JanusGraph object once the client service is activated in a test.
|
String |
getTransitUrl() |
void |
onEnabled(ConfigurationContext context) |
abstractClearConfigContext, abstractStoreConfigContext, disabled, enabled, getConfigurationContext, getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getProperty, getStateManager, init, initialize, isEnabledcustomValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, getSupportedPropertyDescriptors, hashCode, onPropertyModified, toString, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitinitialize, isStatefulgetIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate@OnEnabled public void onEnabled(ConfigurationContext context)
public Map<String,String> executeQuery(String query, Map<String,Object> parameters, GraphQueryResultCallback handler)
executeQuery in interface GraphClientServicequery - A gremlin query (Groovy syntax)parameters - A map of parameters to be injected into the script. This can be structured the way you would
expect a REST API call to Gremlin Server.handler - The callback for parsing the rsponse.public String getTransitUrl()
getTransitUrl in interface GraphClientServicepublic org.apache.tinkerpop.gremlin.structure.Graph getGraph()
Copyright © 2022 Apache NiFi Project. All rights reserved.