Package org.apache.beam.sdk.io.neo4j
Class Neo4jIO.DriverProviderFromDriverConfiguration
java.lang.Object
org.apache.beam.sdk.io.neo4j.Neo4jIO.DriverProviderFromDriverConfiguration
- All Implemented Interfaces:
Serializable
,HasDisplayData
,ProcessFunction<Void,
,org.neo4j.driver.Driver> SerializableFunction<Void,
org.neo4j.driver.Driver>
- Enclosing class:
Neo4jIO
public static class Neo4jIO.DriverProviderFromDriverConfiguration
extends Object
implements SerializableFunction<Void,org.neo4j.driver.Driver>, HasDisplayData
Wraps a
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.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionorg.neo4j.driver.Driver
Returns the result of invoking this function on the given input.static SerializableFunction
<Void, org.neo4j.driver.Driver> of
(Neo4jIO.DriverConfiguration config) void
populateDisplayData
(DisplayData.Builder builder) Register display data for the given transform or component.
-
Method Details
-
of
public static SerializableFunction<Void,org.neo4j.driver.Driver> of(Neo4jIO.DriverConfiguration config) -
apply
Description copied from interface:SerializableFunction
Returns the result of invoking this function on the given input.- Specified by:
apply
in interfaceProcessFunction<Void,
org.neo4j.driver.Driver> - Specified by:
apply
in interfaceSerializableFunction<Void,
org.neo4j.driver.Driver>
-
populateDisplayData
Description copied from interface:HasDisplayData
Register display data for the given transform or component.populateDisplayData(DisplayData.Builder)
is invoked by Pipeline runners to collect display data viaDisplayData.from(HasDisplayData)
. Implementations may callsuper.populateDisplayData(builder)
in order to register display data in the current namespace, but should otherwise usesubcomponent.populateDisplayData(builder)
to use the namespace of the subcomponent.- Specified by:
populateDisplayData
in interfaceHasDisplayData
- Parameters:
builder
- The builder to populate with display data.- See Also:
-