Package oracle.pgx.api.graphalteration
Interface GraphAlterationEmptyEdgeProviderBuilder
-
- All Superinterfaces:
GraphAlterationBuilder
,GraphAlterationEmptyProviderBuilder
public interface GraphAlterationEmptyEdgeProviderBuilder extends GraphAlterationEmptyProviderBuilder
Builder to describe a new empty edge provider to add in a graph as part of a graph alteration.- Since:
- 21.4
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GraphAlterationEmptyEdgeProviderBuilder
addProperties(java.util.List<GraphPropertyConfig> configs)
Adds properties from the different property configurationsGraphAlterationEmptyEdgeProviderBuilder
addProperties(GraphPropertyConfig[] configs)
Adds properties from the different property configurationsGraphAlterationEmptyEdgeProviderBuilder
addProperty(java.lang.String name, PropertyType type)
Adds a property of the given name and type to the provider.GraphAlterationEmptyEdgeProviderBuilder
addProperty(java.lang.String name, PropertyType type, int dimension)
Adds a property of the given name, type and dimension to the provider.GraphAlterationEmptyEdgeProviderBuilder
addProperty(GraphPropertyConfig config)
Adds a property from the property configurationGraphAlterationEmptyEdgeProviderBuilder
createKeyMapping(boolean create)
Sets whether the provider should have a key mapping Should be false when the ID strategy is UNSTABLE_GENERATED_IDS, true when the ID strategy is KEYS_AS_IDS, and can be true or false if the ID strategy is PARTITIONED_IDS.GraphAlterationEmptyEdgeProviderBuilder
setKeyColumn(java.lang.Object column)
Sets the name or index (1-based index) of the key property for the provider.GraphAlterationEmptyEdgeProviderBuilder
setKeyType(IdType type)
Sets the type of the keys in the provider.GraphAlterationEmptyEdgeProviderBuilder
setLabel(java.lang.String label)
Associates a different provider label to the empty provider than the name of the provider-
Methods inherited from interface oracle.pgx.api.graphalteration.GraphAlterationBuilder
addEdgeProvider, addEdgeProvider, addEmptyEdgeProvider, addEmptyVertexProvider, addVertexProvider, addVertexProvider, build, build, buildAsync, buildAsync, buildNewSnapshot, buildNewSnapshotAsync, cascadeEdgeProviderRemovals, removeEdgeProvider, removeVertexProvider, setDataSourceVersion
-
-
-
-
Method Detail
-
setLabel
GraphAlterationEmptyEdgeProviderBuilder setLabel(java.lang.String label)
Associates a different provider label to the empty provider than the name of the provider- Specified by:
setLabel
in interfaceGraphAlterationEmptyProviderBuilder
- Parameters:
label
- the label to associate to the provider- Returns:
- the empty provider builder
- Since:
- 21.4
-
setKeyType
GraphAlterationEmptyEdgeProviderBuilder setKeyType(IdType type)
Sets the type of the keys in the provider.- Specified by:
setKeyType
in interfaceGraphAlterationEmptyProviderBuilder
- Parameters:
type
- the key type- Returns:
- the empty provider builder
- Since:
- 21.4
-
setKeyColumn
GraphAlterationEmptyEdgeProviderBuilder setKeyColumn(java.lang.Object column)
Sets the name or index (1-based index) of the key property for the provider. (Only useful when the ID strategy is PARTITIONED_IDS)- Specified by:
setKeyColumn
in interfaceGraphAlterationEmptyProviderBuilder
- Parameters:
column
- the key column name or index- Returns:
- the empty provider builder
- Since:
- 21.4
-
createKeyMapping
GraphAlterationEmptyEdgeProviderBuilder createKeyMapping(boolean create)
Sets whether the provider should have a key mapping Should be false when the ID strategy is UNSTABLE_GENERATED_IDS, true when the ID strategy is KEYS_AS_IDS, and can be true or false if the ID strategy is PARTITIONED_IDS.- Specified by:
createKeyMapping
in interfaceGraphAlterationEmptyProviderBuilder
- Parameters:
create
- boolean indicating if the provider key mapping should be created- Returns:
- the empty provider builder
- Since:
- 21.4
-
addProperty
GraphAlterationEmptyEdgeProviderBuilder addProperty(java.lang.String name, PropertyType type)
Adds a property of the given name and type to the provider.- Specified by:
addProperty
in interfaceGraphAlterationEmptyProviderBuilder
- Parameters:
name
- the name of the property to addtype
- the type of the property to add- Returns:
- the empty provider builder
- Since:
- 21.4
-
addProperty
GraphAlterationEmptyEdgeProviderBuilder addProperty(java.lang.String name, PropertyType type, int dimension)
Adds a property of the given name, type and dimension to the provider.- Specified by:
addProperty
in interfaceGraphAlterationEmptyProviderBuilder
- Parameters:
name
- the name of the property to addtype
- the type of the property to adddimension
- the dimension of the property (0 for scalar properties, >0 for vector properties)- Returns:
- the empty provider builder
- Since:
- 21.4
-
addProperty
GraphAlterationEmptyEdgeProviderBuilder addProperty(GraphPropertyConfig config)
Adds a property from the property configuration- Specified by:
addProperty
in interfaceGraphAlterationEmptyProviderBuilder
- Parameters:
config
- the property configuration- Returns:
- the empty provider builder
- Since:
- 21.4
-
addProperties
GraphAlterationEmptyEdgeProviderBuilder addProperties(GraphPropertyConfig[] configs)
Adds properties from the different property configurations- Specified by:
addProperties
in interfaceGraphAlterationEmptyProviderBuilder
- Parameters:
configs
- the property configurations- Returns:
- the empty provider builder
- Since:
- 21.4
-
addProperties
GraphAlterationEmptyEdgeProviderBuilder addProperties(java.util.List<GraphPropertyConfig> configs)
Adds properties from the different property configurations- Specified by:
addProperties
in interfaceGraphAlterationEmptyProviderBuilder
- Parameters:
configs
- the property configurations- Returns:
- the empty provider builder
- Since:
- 21.4
-
-