public static class Neo4jIO.DriverProviderFromDriverConfiguration extends java.lang.Object implements SerializableFunction<java.lang.Void,org.neo4j.driver.Driver>, HasDisplayData
Neo4jIO.DriverConfiguration
to provide a Driver
.
At most a single Driver
instance will be constructed during pipeline execution for
each unique Neo4jIO.DriverConfiguration
within the pipeline.
Modifier and Type | Method and Description |
---|---|
org.neo4j.driver.Driver |
apply(java.lang.Void input)
Returns the result of invoking this function on the given input.
|
static SerializableFunction<java.lang.Void,org.neo4j.driver.Driver> |
of(Neo4jIO.DriverConfiguration config) |
void |
populateDisplayData(DisplayData.Builder builder)
Register display data for the given transform or component.
|
public static SerializableFunction<java.lang.Void,org.neo4j.driver.Driver> of(Neo4jIO.DriverConfiguration config)
public org.neo4j.driver.Driver apply(java.lang.Void input)
SerializableFunction
apply
in interface ProcessFunction<java.lang.Void,org.neo4j.driver.Driver>
apply
in interface SerializableFunction<java.lang.Void,org.neo4j.driver.Driver>
public void populateDisplayData(DisplayData.Builder builder)
HasDisplayData
populateDisplayData(DisplayData.Builder)
is invoked by Pipeline runners to collect
display data via DisplayData.from(HasDisplayData)
. Implementations may call super.populateDisplayData(builder)
in order to register display data in the current namespace,
but should otherwise use subcomponent.populateDisplayData(builder)
to use the namespace
of the subcomponent.
populateDisplayData
in interface HasDisplayData
builder
- The builder to populate with display data.HasDisplayData