Package oracle.pgx.config
Class PartitionedGraphConfigBuilder
- java.lang.Object
-
- oracle.pgx.config.AbstractGraphConfigBuilder<PartitionedGraphConfigBuilder,PartitionedGraphConfig>
-
- oracle.pgx.config.PartitionedGraphConfigBuilder
-
- All Implemented Interfaces:
oracle.pgx.config.internal.ConvertibleToGraphConfigBuilder
public final class PartitionedGraphConfigBuilder extends AbstractGraphConfigBuilder<PartitionedGraphConfigBuilder,PartitionedGraphConfig>
A graph configuration builder for partitioned graph configurations.
-
-
Constructor Summary
Constructors Constructor Description PartitionedGraphConfigBuilder()
default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PartitionedGraphConfigBuilder
addEdgeProvider(AbstractEntityProviderConfigBuilder providerBuilder)
Adds an edge provider to the graphPartitionedGraphConfigBuilder
addEdgeProvider(EntityProviderConfig provider)
Adds a edge provider to the graphPartitionedGraphConfigBuilder
addVertexProvider(AbstractEntityProviderConfigBuilder providerBuilder)
Adds a vertex provider to the graphPartitionedGraphConfigBuilder
addVertexProvider(EntityProviderConfig provider)
Adds a vertex provider to the graphPartitionedGraphConfigBuilder
clearEdgeProviders()
Clears the edge providers of the graphPartitionedGraphConfigBuilder
clearVertexProviders()
Clears the vertex providers of the graphPartitionedGraphConfigBuilder
copyFrom(PartitionedGraphConfig graphConfig)
Sets this builder with all the values of the given graph config.PartitionedGraphConfigBuilder
removeEdgeProvider(java.lang.String name)
Removes an edge provider from this builderPartitionedGraphConfigBuilder
removeVertexProvider(java.lang.String name)
Removes a vertex provider from this builderPartitionedGraphConfigBuilder
setArrayCompactionThreshold(java.lang.Double arrayCompactionThreshold)
For graphs optimized for updates, set the array compaction threshold.PartitionedGraphConfigBuilder
setDataSourceId(java.lang.String dataSourceId)
Sets the default data source id to use to connect to database (for providers in RDBMS format only)PartitionedGraphConfigBuilder
setEdgeProviders(java.lang.Iterable<? extends oracle.pgx.config.internal.ConvertibleToEntityProviderConfigBuilder> providers)
Set the edge providers of the graphPartitionedGraphConfigBuilder
setEdgeProviders(oracle.pgx.config.internal.ConvertibleToEntityProviderConfigBuilder... providers)
Set the edge providers of the graphPartitionedGraphConfigBuilder
setEsIndexName(java.lang.String esIndexName)
Sets the default esIndexName pointing to elasticsearch indexPartitionedGraphConfigBuilder
setEsUrl(java.lang.String esUrl)
Sets the default esUrl pointing to elasticsearch serverPartitionedGraphConfigBuilder
setJdbcUrl(java.lang.String jdbcUrl)
Sets the default jdbc URL pointing to database (for providers in RDBMS format only)PartitionedGraphConfigBuilder
setMaxBatchSize(int maxBatchSize)
Sets the default maximal amount of JSON Objects fetched per RequestPartitionedGraphConfigBuilder
setMaxPrefetchedRows(int maxPrefetchedRows)
Sets the default maximun number or rows prefetched during each round trip resultset-database (for providers in RDBMS format only)PartitionedGraphConfigBuilder
setName(java.lang.String name)
Set the name of the graphPartitionedGraphConfigBuilder
setNumConnections(int numConnections)
Sets the default number of connections to read/write data from/to the database provider (for providers in RDBMS format only)PartitionedGraphConfigBuilder
setPreparedQueries(java.util.List<PreparedQueryConfig> preparedQueries)
PartitionedGraphConfigBuilder
setProxyUrl(java.lang.String proxyUrl)
Sets the default Proxy UrlPartitionedGraphConfigBuilder
setQueries(java.util.List<java.lang.String> queries)
Set the name of the PG view used for loadingPartitionedGraphConfigBuilder
setSchema(java.lang.String schema)
Sets default schema where the provider is going to be written (for providers in RDBMS format only)PartitionedGraphConfigBuilder
setScrollTime(java.lang.String scrollTime)
Sets the default Time a elasticsearch query remains openPartitionedGraphConfigBuilder
setSourceName(java.lang.String sourceName)
PartitionedGraphConfigBuilder
setSourceType(SourceType sourceType)
The type of the graph source.PartitionedGraphConfigBuilder
setUsername(java.lang.String username)
Sets the default username to use when connecting to database (for providers in RDBMS format only)PartitionedGraphConfigBuilder
setVertexProviders(java.lang.Iterable<? extends oracle.pgx.config.internal.ConvertibleToEntityProviderConfigBuilder> providers)
Set the vertex providers of the graphPartitionedGraphConfigBuilder
setVertexProviders(oracle.pgx.config.internal.ConvertibleToEntityProviderConfigBuilder... providers)
Set the vertex providers of the graph-
Methods inherited from class oracle.pgx.config.AbstractGraphConfigBuilder
addAttribute, addEdgeProperty, addEdgeProperty, addEdgeProperty, addEdgeStringProperty, addEdgeStringProperty, addEdgeVectorProperty, addEdgeVectorProperty, addEdgeVectorProperty, addNodeProperty, addNodeProperty, addVertexProperty, addVertexProperty, addVertexProperty, addVertexStringProperty, addVertexStringProperty, addVertexVectorProperty, addVertexVectorProperty, addVertexVectorProperty, build, clearEdgeProperties, clearVertexProperties, copyBaseFrom, enableEdgeIdDuplicateCheck, enableVertexIdDuplicateCheck, redactPassword, removeEdgeProperty, removeVertexProperty, setAutoRefresh, setCreateEdgeIdIndex, setCreateEdgeIdMapping, setCreateLabelHistogram, setCreateVertexIdIndex, setCreateVertexIdMapping, setEdgeIdStrategy, setEdgeIdType, setErrorHandlingOnDuplicateEntityId, setErrorHandlingOnMissedPropKey, setErrorHandlingOnMissingVertex, setErrorHandlingOnParsingIssue, setErrorHandlingOnPropConversion, setErrorHandlingOnTypeMismatch, setErrorHandlingOnVectorLengthMismatch, setFetchIntervalSec, setKeystoreAlias, setLabelValueDelimiter, setLoadEdgeLabel, setLoadingProgressReportingFrequency, setLoadVertexLabels, setLocalDateFormat, setOptimizedFor, setPartitionDiscardDefaultValues, setPartitionWhileLoading, setPassword, setPropertyValueDelimiter, setSkipEdgeLoading, setSkipVertexLoading, setSnapshotsSource, setStrictMode, setTimeFormat, setTimestampFormat, setTimestampWithTimezoneFormat, setTimeWithTimezoneFormat, setUpdateIntervalSec, setUpdatePropertiesInPlace, setUpdateThreshold, setUseVertexPropertyValueAsLabel, setVertexIdStrategy, setVertexIdType, toGraphConfigBuilder
-
-
-
-
Method Detail
-
copyFrom
public PartitionedGraphConfigBuilder copyFrom(PartitionedGraphConfig graphConfig)
Description copied from class:AbstractGraphConfigBuilder
Sets this builder with all the values of the given graph config. If a format was already specified it will remain unchanged, however any other values copied from the given graph config will overwrite the corresponding values of this builder.- Overrides:
copyFrom
in classAbstractGraphConfigBuilder<PartitionedGraphConfigBuilder,PartitionedGraphConfig>
- Parameters:
graphConfig
- the graph configuration from which to copy the values- Returns:
- this builder
-
setEsUrl
public PartitionedGraphConfigBuilder setEsUrl(java.lang.String esUrl)
Sets the default esUrl pointing to elasticsearch server
-
setEsIndexName
public PartitionedGraphConfigBuilder setEsIndexName(java.lang.String esIndexName)
Sets the default esIndexName pointing to elasticsearch index
-
setProxyUrl
public PartitionedGraphConfigBuilder setProxyUrl(java.lang.String proxyUrl)
Sets the default Proxy Url
-
setScrollTime
public PartitionedGraphConfigBuilder setScrollTime(java.lang.String scrollTime)
Sets the default Time a elasticsearch query remains open
-
setMaxBatchSize
public PartitionedGraphConfigBuilder setMaxBatchSize(int maxBatchSize)
Sets the default maximal amount of JSON Objects fetched per Request
-
setJdbcUrl
public PartitionedGraphConfigBuilder setJdbcUrl(java.lang.String jdbcUrl)
Sets the default jdbc URL pointing to database (for providers in RDBMS format only)
-
setUsername
public PartitionedGraphConfigBuilder setUsername(java.lang.String username)
Sets the default username to use when connecting to database (for providers in RDBMS format only)
-
setMaxPrefetchedRows
public PartitionedGraphConfigBuilder setMaxPrefetchedRows(int maxPrefetchedRows)
Sets the default maximun number or rows prefetched during each round trip resultset-database (for providers in RDBMS format only)
-
setNumConnections
public PartitionedGraphConfigBuilder setNumConnections(int numConnections)
Sets the default number of connections to read/write data from/to the database provider (for providers in RDBMS format only)
-
setDataSourceId
public PartitionedGraphConfigBuilder setDataSourceId(java.lang.String dataSourceId)
Sets the default data source id to use to connect to database (for providers in RDBMS format only)
-
setSchema
public PartitionedGraphConfigBuilder setSchema(java.lang.String schema)
Sets default schema where the provider is going to be written (for providers in RDBMS format only)
-
addVertexProvider
public PartitionedGraphConfigBuilder addVertexProvider(AbstractEntityProviderConfigBuilder providerBuilder)
Adds a vertex provider to the graph- Parameters:
providerBuilder
- the provider configuration builder- Returns:
- this builder
-
addVertexProvider
public PartitionedGraphConfigBuilder addVertexProvider(EntityProviderConfig provider)
Adds a vertex provider to the graph- Parameters:
provider
- the provider configuration- Returns:
- this builder
-
setVertexProviders
public PartitionedGraphConfigBuilder setVertexProviders(java.lang.Iterable<? extends oracle.pgx.config.internal.ConvertibleToEntityProviderConfigBuilder> providers)
Set the vertex providers of the graph- Parameters:
providers
- the provider configurations- Returns:
- this builder
-
setVertexProviders
public PartitionedGraphConfigBuilder setVertexProviders(oracle.pgx.config.internal.ConvertibleToEntityProviderConfigBuilder... providers)
Set the vertex providers of the graph- Parameters:
providers
- the provider configurations- Returns:
- this builder
-
removeVertexProvider
public PartitionedGraphConfigBuilder removeVertexProvider(java.lang.String name)
Removes a vertex provider from this builder- Parameters:
name
- the name of the vertex provider to remove- Returns:
- this builder
-
clearVertexProviders
public PartitionedGraphConfigBuilder clearVertexProviders()
Clears the vertex providers of the graph- Returns:
- this builder
-
addEdgeProvider
public PartitionedGraphConfigBuilder addEdgeProvider(AbstractEntityProviderConfigBuilder providerBuilder)
Adds an edge provider to the graph- Parameters:
providerBuilder
- the provider configuration builder- Returns:
- this builder
-
addEdgeProvider
public PartitionedGraphConfigBuilder addEdgeProvider(EntityProviderConfig provider)
Adds a edge provider to the graph- Parameters:
provider
- the provider configuration- Returns:
- this builder
-
setEdgeProviders
public PartitionedGraphConfigBuilder setEdgeProviders(java.lang.Iterable<? extends oracle.pgx.config.internal.ConvertibleToEntityProviderConfigBuilder> providers)
Set the edge providers of the graph- Parameters:
providers
- the provider configuration- Returns:
- this builder
-
setEdgeProviders
public PartitionedGraphConfigBuilder setEdgeProviders(oracle.pgx.config.internal.ConvertibleToEntityProviderConfigBuilder... providers)
Set the edge providers of the graph- Parameters:
providers
- the provider configuration- Returns:
- this builder
-
removeEdgeProvider
public PartitionedGraphConfigBuilder removeEdgeProvider(java.lang.String name)
Removes an edge provider from this builder- Parameters:
name
- the name of the edge provider to remove- Returns:
- this builder
-
clearEdgeProviders
public PartitionedGraphConfigBuilder clearEdgeProviders()
Clears the edge providers of the graph- Returns:
- this builder
-
setName
public PartitionedGraphConfigBuilder setName(java.lang.String name)
Set the name of the graph- Parameters:
name
- the name of the graph- Returns:
- this builder
-
setQueries
public PartitionedGraphConfigBuilder setQueries(java.util.List<java.lang.String> queries)
Set the name of the PG view used for loading- Parameters:
queries
- the queries to use to load the graph- Returns:
- this builder
-
setPreparedQueries
public PartitionedGraphConfigBuilder setPreparedQueries(java.util.List<PreparedQueryConfig> preparedQueries)
-
setArrayCompactionThreshold
public PartitionedGraphConfigBuilder setArrayCompactionThreshold(java.lang.Double arrayCompactionThreshold)
For graphs optimized for updates, set the array compaction threshold. (It should be a number between 0 and 1).- Overrides:
setArrayCompactionThreshold
in classAbstractGraphConfigBuilder<PartitionedGraphConfigBuilder,PartitionedGraphConfig>
- Parameters:
arrayCompactionThreshold
- the threshold to use- Returns:
- this builder object.
-
setSourceType
public PartitionedGraphConfigBuilder setSourceType(SourceType sourceType)
The type of the graph source. This is only applicable, if the graph is loaded from a database.- Parameters:
sourceType
- The database graph source type.- Returns:
- This builder.
-
setSourceName
public PartitionedGraphConfigBuilder setSourceName(java.lang.String sourceName)
-
-