Class TwoTablesRdbmsGraphConfigBuilder
java.lang.Object
oracle.pgx.config.AbstractGraphConfigBuilder<TwoTablesRdbmsGraphConfigBuilder, TwoTablesRdbmsGraphConfig>
oracle.pgx.config.TwoTablesRdbmsGraphConfigBuilder
- All Implemented Interfaces:
oracle.pgx.config.internal.ConvertibleToGraphConfigBuilder
public final class TwoTablesRdbmsGraphConfigBuilder
extends AbstractGraphConfigBuilder<TwoTablesRdbmsGraphConfigBuilder, TwoTablesRdbmsGraphConfig>
A graph configuration builder for rdbms-based graph configurations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopyFrom(TwoTablesRdbmsGraphConfig graphConfig) Sets this builder with all the values of the given graph config.setDataSourceId(String dsId) Sets the datasource ID.setDatastore(TwoTablesDatastore datastore) Sets the datastore.setEdgeLabel(String edgeLabel) Sets the column name from where to get the edge label.setEdgesKey(String eKey) Sets edge keyssetEdgesTableName(String etb) Sets the edge table name.setFromNid(String fromNid) Sets the column ID from where to read.setInsertBatchSize(int insertBatchSize) Sets the batch size for inserting.setJdbcUrl(String url) Sets the jdbc url.setLabelValueDelimiter(String delimiter) Sets the label value delimiter.setMaxPreFetchedRows(int maxPreFetchedRows) Sets the maximum number of prefetched rows.setNodesKey(String nKey) Sets node keys.setNodesTableName(String ntb) Sets the nodes table name.setNumConnections(int c) Sets the number of connections.Sets the schema.setTablespace(String tablespace) Sets the tablespace.Sets the column ID to write into.setUsername(String un) Sets the username.setVertexLabels(String vertexLabels) Sets the column name from where to get the vertex labels.Alias forsetNodesTableName(String)Methods inherited from class 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, setArrayCompactionThreshold, setAutoRefresh, setCreateEdgeIdIndex, setCreateEdgeIdMapping, setCreateLabelHistogram, setCreateVertexIdIndex, setCreateVertexIdMapping, setEdgeIdStrategy, setEdgeIdType, setErrorHandlingOnDuplicateEntityId, setErrorHandlingOnMissedPropKey, setErrorHandlingOnMissingVertex, setErrorHandlingOnParsingIssue, setErrorHandlingOnPropConversion, setErrorHandlingOnTypeMismatch, setErrorHandlingOnVectorLengthMismatch, setKeystoreAlias, setLoadEdgeLabel, setLoadingProgressReportingFrequency, setLoadVertexLabels, setLocalDateFormat, setOptimizedFor, setPartitionDiscardDefaultValues, setPartitionWhileLoading, setPassword, setPropertyValueDelimiter, setSkipEdgeLoading, setSkipVertexLoading, setSnapshotsSource, setStrictMode, setTimeFormat, setTimestampFormat, setTimestampWithTimezoneFormat, setTimeWithTimezoneFormat, setUpdateIntervalSec, setUseVertexPropertyValueAsLabel, setVertexIdStrategy, setVertexIdType, toGraphConfigBuilder
-
Constructor Details
-
TwoTablesRdbmsGraphConfigBuilder
public TwoTablesRdbmsGraphConfigBuilder()
-
-
Method Details
-
copyFrom
Description copied from class:AbstractGraphConfigBuilderSets 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:
copyFromin classAbstractGraphConfigBuilder<TwoTablesRdbmsGraphConfigBuilder, TwoTablesRdbmsGraphConfig>- Parameters:
graphConfig- the graph configuration from which to copy the values- Returns:
- this builder
-
setDatastore
Sets the datastore. See the graph configuration documentation for details about the effects and default of this field- Parameters:
datastore- the datastore- Returns:
- this builder
-
setDataSourceId
Sets the datasource ID.- Parameters:
dsid- the datasource ID- Returns:
- this builder
-
setJdbcUrl
Sets the jdbc url.- Parameters:
url- the url- Returns:
- this builder
-
setUsername
Sets the username.- Parameters:
un- the username- Returns:
- this builder
-
setTablespace
Sets the tablespace.- Parameters:
tablespace- the tablespace- Returns:
- this builder
-
setVerticesTableName
Alias forsetNodesTableName(String)- Parameters:
vtb- the vertices table name- Returns:
- this builder
-
setNodesTableName
Sets the nodes table name.- Parameters:
ntb- the nodes table name- Returns:
- this builder
-
setEdgesTableName
Sets the edge table name.- Parameters:
etb- the edge table name- Returns:
- this builder
-
setNumConnections
Sets the number of connections.- Parameters:
c- the number of connections- Returns:
- this builder
-
setNodesKey
Sets node keys.- Parameters:
nKey- the node keys- Returns:
- this builder
-
setEdgesKey
Sets edge keys- Parameters:
eKey- the edge keys- Returns:
- this builder
-
setFromNid
Sets the column ID from where to read.- Parameters:
fromNid- the column id- Returns:
- this builder
-
setToNid
Sets the column ID to write into.- Parameters:
toNid- the column id- Returns:
- this builder
-
setMaxPreFetchedRows
Sets the maximum number of prefetched rows.- Parameters:
maxPreFetchedRows- the maximum number of prefetched rows- Returns:
- this builder
-
setSchema
Sets the schema.- Parameters:
schema- the schema- Returns:
- this builder
-
setInsertBatchSize
Sets the batch size for inserting.- Parameters:
insertBatchSize- the batch size for inserting- Returns:
- this builder
-
setLabelValueDelimiter
Sets the label value delimiter.- Overrides:
setLabelValueDelimiterin classAbstractGraphConfigBuilder<TwoTablesRdbmsGraphConfigBuilder, TwoTablesRdbmsGraphConfig>- Parameters:
delimiter- the delimiter which separates the values in the label- Returns:
- this builder
-
setVertexLabels
Sets the column name from where to get the vertex labels.- Parameters:
vertexLabels- the name of the column where to read the vertex labels from- Returns:
- this builder
-
setEdgeLabel
Sets the column name from where to get the edge label.- Parameters:
edgeLabel- the name of the column where to read the edge label from- Returns:
- this builder
-