Package oracle.pgx.config
Class AbstractPartitionedGraphConfig
- java.lang.Object
-
- oracle.pgx.config.AbstractConfig
-
- oracle.pgx.config.GraphConfig
-
- oracle.pgx.config.AbstractPartitionedGraphConfig
-
- All Implemented Interfaces:
CommonLoadableConfig<Format>,DbConnectionConfig,EsConnectionConfig,oracle.pgx.config.internal.ConvertibleToGraphConfigBuilder
- Direct Known Subclasses:
PartitionedGraphConfig
public abstract class AbstractPartitionedGraphConfig extends GraphConfig implements DbConnectionConfig, EsConnectionConfig
Abstract super-class for all partitioned graph configs
-
-
Field Summary
-
Fields inherited from class oracle.pgx.config.AbstractConfig
ENV_SEPARATOR, ENV_VARIABLE_PREFIX, SYSTEM_PROPERTY_PREFIX
-
-
Constructor Summary
Constructors Constructor Description AbstractPartitionedGraphConfig()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.util.List<GraphPropertyConfig>getEdgeProps()Get the vertex properties of this graph configurationabstract java.util.List<EntityProviderConfig>getEdgeProviders()Get the vertex providers of this graph configurationjava.util.List<ExternalStoreConfig>getExternalStores()FormatgetFormat()Get the format of this graph configurationabstract java.lang.IntegergetNumConnections()number of connections to read/write data from/to the RDBMS tablejava.lang.IntegergetNumConnections(int machineCount, int defaultNumConnectionsTotal)PartitionWhileLoadinggetPartitionWhileLoading()Indicates if the graph should be heterogenized during loadingabstract java.util.List<java.lang.String>getQueries()A list of queries used to determine which data to load from the database.abstract java.util.List<oracle.pgx.config.PgxRedactionRuleConfig>getRedactionRules()Get the redaction rules from this graph configurationabstract java.util.List<oracle.pgx.config.PgxRedactionRuleMappingConfig>getRulesMapping()Get the mapping between redaction rules and users/rolesIdStrategygetValidatedEdgeIdStrategy()Validates and return the ID strategy used for edges (checking if the strategy is compatible with the rest of the graph configuration)IdTypegetValidatedEdgeIdType()Validates and return the ID type used for edges (checking if the type is compatible with the rest of the configuration)IdStrategygetValidatedVertexIdStrategy()Validates and return the ID strategy used for vertices (checking if the strategy is compatible with the rest of the graph configuration)IdTypegetValidatedVertexIdType()Validates and return the ID type used for vertices (checking if the type is compatible with the rest of the configuration)java.util.List<GraphPropertyConfig>getVertexProps()Get the vertex properties of this graph configurationabstract java.util.List<EntityProviderConfig>getVertexProviders()Get the vertex providers of this graph configurationabstract booleanhasDefaultValue(PartitionedGraphConfig.Field field)inthashCode()booleanisCompKeyPresent()PartitionedGraphConfigBuildertoGraphConfigBuilder()-
Methods inherited from class oracle.pgx.config.GraphConfig
getArrayCompactionThreshold, getEdgeIdType, getEdgePropertyDefault, getEdgePropertyDimension, getEdgePropertyName, getEdgePropertyType, getEdgePropertyTypes, getLoadingOptions, getNodeKeyType, getNodePropertyDefault, getNodePropertyDimension, getNodePropertyName, getNodePropertyType, getOptimizedFor, getVertexIdType, getVertexPropertyTypes, hasVerticesAndEdgesSeparatedFileFormat, hasVerticesAndEdgesSeparatedFileFormat, isEdgeLabelLoadingEnabled, isFileFormat, isFileFormat, isLoadEdgeKeys, isLoadVertexKeys, isMultipleFileFormat, isMultipleFileFormat, isSingleFileFormat, isSingleFileFormat, isVertexLabelsLoadingEnabled, numEdgeProperties, numNodeProperties, skipEdgeLoading, skipVertexLoading, supportsEdgeLabel, supportsEdgeLabel, supportsPropertyColumn, supportsPropertyColumn, supportsVectorProperties, supportsVectorProperties, supportsVertexLabels, supportsVertexLabels
-
Methods inherited from class oracle.pgx.config.AbstractConfig
getDefault, getValueFromEnvironment, getValueFromEnvironment, getValues, parseString, setSerializable
-
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface oracle.pgx.config.CommonLoadableConfig
createLocalDateFormat, createTimeFormat, createTimestampFormat, createTimestampWithTimezoneFormat, createTimeWithTimezoneFormat, getAttributes, getErrorHandling, getKeystoreAlias, getLocalDateFormat, getName, getTimeFormat, getTimestampFormat, getTimestampWithTimezoneFormat, getTimeWithTimezoneFormat, getVectorComponentDelimiter
-
Methods inherited from interface oracle.pgx.config.DbConnectionConfig
getDataSourceId, getJdbcUrl, getMaxPrefetchedRows, getSchema, getUsername
-
Methods inherited from interface oracle.pgx.config.EsConnectionConfig
getEsIndexName, getEsUrl, getMaxBatchSize, getProxyUrl, getScrollTime, getUsername
-
-
-
-
Method Detail
-
toGraphConfigBuilder
public PartitionedGraphConfigBuilder toGraphConfigBuilder()
- Specified by:
toGraphConfigBuilderin interfaceoracle.pgx.config.internal.ConvertibleToGraphConfigBuilder
-
getPartitionWhileLoading
public PartitionWhileLoading getPartitionWhileLoading()
Description copied from class:GraphConfigIndicates if the graph should be heterogenized during loading- Specified by:
getPartitionWhileLoadingin classGraphConfig- Returns:
trueif the graph should be heterogenized during loading,falseornullotherwise
-
getValidatedVertexIdStrategy
public IdStrategy getValidatedVertexIdStrategy()
Validates and return the ID strategy used for vertices (checking if the strategy is compatible with the rest of the graph configuration)- Overrides:
getValidatedVertexIdStrategyin classGraphConfig- Returns:
- the ID strategy that can be used for the vertices of the graph
-
getValidatedEdgeIdStrategy
public IdStrategy getValidatedEdgeIdStrategy()
Validates and return the ID strategy used for edges (checking if the strategy is compatible with the rest of the graph configuration)- Overrides:
getValidatedEdgeIdStrategyin classGraphConfig- Returns:
- the ID strategy that can be used for the edges of the graph
-
getValidatedVertexIdType
public IdType getValidatedVertexIdType()
Validates and return the ID type used for vertices (checking if the type is compatible with the rest of the configuration)- Overrides:
getValidatedVertexIdTypein classGraphConfig- Returns:
- the ID type that can be used for the vertices of the graph
-
getValidatedEdgeIdType
public IdType getValidatedEdgeIdType()
Validates and return the ID type used for edges (checking if the type is compatible with the rest of the configuration)- Overrides:
getValidatedEdgeIdTypein classGraphConfig- Returns:
- the ID type that can be used for the edges of the graph
-
getRedactionRules
public abstract java.util.List<oracle.pgx.config.PgxRedactionRuleConfig> getRedactionRules()
Get the redaction rules from this graph configuration- Returns:
- the list of PgxRedactionRuleConfig
-
getRulesMapping
public abstract java.util.List<oracle.pgx.config.PgxRedactionRuleMappingConfig> getRulesMapping()
Get the mapping between redaction rules and users/roles- Returns:
- the list of PgxRedactionRuleMappingConfig
-
getVertexProviders
public abstract java.util.List<EntityProviderConfig> getVertexProviders()
Get the vertex providers of this graph configuration- Returns:
- the list of URIs
-
getEdgeProviders
public abstract java.util.List<EntityProviderConfig> getEdgeProviders()
Get the vertex providers of this graph configuration- Returns:
- the list of URIs
-
getNumConnections
public abstract java.lang.Integer getNumConnections()
number of connections to read/write data from/to the RDBMS table- Returns:
- the number of connections
-
getQueries
public abstract java.util.List<java.lang.String> getQueries()
A list of queries used to determine which data to load from the database. Data matching at least one of the queries will be loaded. Not setting any query will load the entire graph.- Returns:
- the list of queries
-
hasDefaultValue
public abstract boolean hasDefaultValue(PartitionedGraphConfig.Field field)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classGraphConfig
-
hashCode
public int hashCode()
- Overrides:
hashCodein classGraphConfig
-
getFormat
public Format getFormat()
Description copied from interface:CommonLoadableConfigGet the format of this graph configuration- Specified by:
getFormatin interfaceCommonLoadableConfig<Format>- Returns:
- the format
-
getVertexProps
public java.util.List<GraphPropertyConfig> getVertexProps()
Description copied from class:GraphConfigGet the vertex properties of this graph configuration- Specified by:
getVertexPropsin classGraphConfig- Returns:
- the list of vertex properties
-
getEdgeProps
public java.util.List<GraphPropertyConfig> getEdgeProps()
Description copied from class:GraphConfigGet the vertex properties of this graph configuration- Specified by:
getEdgePropsin classGraphConfig- Returns:
- the list of vertex properties
-
getExternalStores
public java.util.List<ExternalStoreConfig> getExternalStores()
- Specified by:
getExternalStoresin classGraphConfig
-
getNumConnections
public java.lang.Integer getNumConnections(int machineCount, int defaultNumConnectionsTotal)
-
isCompKeyPresent
public boolean isCompKeyPresent()
-
-