public class PartitionizingStrategyBuilder extends MutationStrategyBuilder<PartitionizingStrategyBuilder>
Constructor and Description |
---|
PartitionizingStrategyBuilder(PgxGraph graph)
Constructs an empty builder that will set up a default strategy
|
Modifier and Type | Method and Description |
---|---|
oracle.pgx.common.mutations.PartitionizingStrategy |
build()
Builds the
MutationStrategy with the chosen parameters. |
PartitionizingStrategyBuilder |
generateDegreeCaches(boolean doGenerateDegreeCaches)
Set the flag indicating if the degree caches should be generated after the mutation
|
PartitionizingStrategyBuilder |
generateLabelHistogram(boolean doGenerateLabelHistogram)
Set the flag indicating if the label histogram should be generated after the mutation
|
PartitionizingStrategyBuilder |
preserveEdgeKeys(boolean doPreserveEdgeKeys)
Set the flag indicating if the edge keys should be preserved in the graph that is partitioned while loading
if not, the partitioned graph will not keep the original edge keys
|
PartitionizingStrategyBuilder |
setDefaultEdgeTableName(java.lang.String name) |
PartitionizingStrategyBuilder |
setDefaultVertexTableName(java.lang.String name) |
PartitionizingStrategyBuilder |
setEdgeLabelToTableNameMap(java.util.Map<java.lang.String,java.lang.String> map) |
PartitionizingStrategyBuilder |
setEdgePropsToDropIfDefault(java.util.Map<EdgeProperty<?>,java.lang.Object> map) |
PartitionizingStrategyBuilder |
setNewGraphName(java.lang.String name)
Set name of new graph name.
|
PartitionizingStrategyBuilder |
setVertexLabelsToTableNameMap(java.util.Map<java.util.Set<java.lang.String>,java.lang.String> map) |
PartitionizingStrategyBuilder |
setVertexPropsToDropIfDefault(java.util.Map<VertexProperty<?,?>,java.lang.Object> map) |
dropEdgeProperties, dropEdgeProperty, dropVertexProperties, dropVertexProperty, setCopyMode, setKeptEdgeProperties, setKeptVertexProperties, setMultiEdges, setSelfEdges, setTrivialVertices
public PartitionizingStrategyBuilder(PgxGraph graph) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.lang.InterruptedException
public oracle.pgx.common.mutations.PartitionizingStrategy build()
MutationStrategyBuilder
MutationStrategy
with the chosen parameters. Parameters that were not set, are instantiated with
default values.build
in class MutationStrategyBuilder<PartitionizingStrategyBuilder>
public PartitionizingStrategyBuilder generateDegreeCaches(boolean doGenerateDegreeCaches)
doGenerateDegreeCaches
- boolean flag to indicate if the degree caches should be generated or notpublic PartitionizingStrategyBuilder generateLabelHistogram(boolean doGenerateLabelHistogram)
doGenerateLabelHistogram
- boolean flag to indicate if the histogram should be generated or notpublic PartitionizingStrategyBuilder preserveEdgeKeys(boolean doPreserveEdgeKeys)
doPreserveEdgeKeys
- boolean flag to indicate if the edge keys should be preserved or notpublic PartitionizingStrategyBuilder setDefaultEdgeTableName(java.lang.String name)
name
- the desired default table namepublic PartitionizingStrategyBuilder setDefaultVertexTableName(java.lang.String name)
name
- the desired default table namepublic PartitionizingStrategyBuilder setEdgeLabelToTableNameMap(java.util.Map<java.lang.String,java.lang.String> map)
map
- the desired mapping from edge label to table namepublic PartitionizingStrategyBuilder setEdgePropsToDropIfDefault(java.util.Map<EdgeProperty<?>,java.lang.Object> map)
map
- the desired mapping from property names to default valuespublic PartitionizingStrategyBuilder setNewGraphName(java.lang.String name)
MutationStrategyBuilder
setNewGraphName
in class MutationStrategyBuilder<PartitionizingStrategyBuilder>
name
- the desired name for the graph that is partitioned while loadingpublic PartitionizingStrategyBuilder setVertexLabelsToTableNameMap(java.util.Map<java.util.Set<java.lang.String>,java.lang.String> map)
map
- the desired mapping from vertex labels to table namepublic PartitionizingStrategyBuilder setVertexPropsToDropIfDefault(java.util.Map<VertexProperty<?,?>,java.lang.Object> map)
map
- the desired mapping from property names to default valuesCopyright © 2015 - 2020 Oracle and/or its affiliates. All Rights Reserved.