Package oracle.pgx.config
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 Constructor Description TwoTablesRdbmsGraphConfigBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TwoTablesRdbmsGraphConfigBuildercopyFrom(TwoTablesRdbmsGraphConfig graphConfig)Sets this builder with all the values of the given graph config.TwoTablesRdbmsGraphConfigBuildersetDataSourceId(java.lang.String dsId)Sets the datasource ID.TwoTablesRdbmsGraphConfigBuildersetDatastore(TwoTablesDatastore datastore)Sets the datastore.TwoTablesRdbmsGraphConfigBuildersetEdgeLabel(java.lang.String edgeLabel)Sets the column name from where to get the edge label.TwoTablesRdbmsGraphConfigBuildersetEdgesKey(java.lang.String eKey)Sets edge keysTwoTablesRdbmsGraphConfigBuildersetEdgesTableName(java.lang.String etb)Sets the edge table name.TwoTablesRdbmsGraphConfigBuildersetFromNid(java.lang.String fromNid)Sets the column ID from where to read.TwoTablesRdbmsGraphConfigBuildersetInsertBatchSize(int insertBatchSize)Sets the batch size for inserting.TwoTablesRdbmsGraphConfigBuildersetJdbcUrl(java.lang.String url)Sets the jdbc url.TwoTablesRdbmsGraphConfigBuildersetLabelValueDelimiter(java.lang.String delimiter)Sets the label value delimiter.TwoTablesRdbmsGraphConfigBuildersetMaxPreFetchedRows(int maxPreFetchedRows)Sets the maximum number of prefetched rows.TwoTablesRdbmsGraphConfigBuildersetNodesKey(java.lang.String nKey)Sets node keys.TwoTablesRdbmsGraphConfigBuildersetNodesTableName(java.lang.String ntb)Sets the nodes table name.TwoTablesRdbmsGraphConfigBuildersetNumConnections(int c)Sets the number of connections.TwoTablesRdbmsGraphConfigBuildersetSchema(java.lang.String schema)Sets the schema.TwoTablesRdbmsGraphConfigBuildersetTablespace(java.lang.String tablespace)Sets the tablespace.TwoTablesRdbmsGraphConfigBuildersetToNid(java.lang.String toNid)Sets the column ID to write into.TwoTablesRdbmsGraphConfigBuildersetUsername(java.lang.String un)Sets the username.TwoTablesRdbmsGraphConfigBuildersetVertexLabels(java.lang.String vertexLabels)Sets the column name from where to get the vertex labels.TwoTablesRdbmsGraphConfigBuildersetVerticesTableName(java.lang.String vtb)Alias forsetNodesTableName(String)-
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, setArrayCompactionThreshold, setAutoRefresh, setCreateEdgeIdIndex, setCreateEdgeIdMapping, setCreateLabelHistogram, setCreateVertexIdIndex, setCreateVertexIdMapping, setEdgeIdStrategy, setEdgeIdType, setErrorHandlingOnDuplicateEntityId, setErrorHandlingOnMissedPropKey, setErrorHandlingOnMissingVertex, setErrorHandlingOnParsingIssue, setErrorHandlingOnPropConversion, setErrorHandlingOnTypeMismatch, setErrorHandlingOnVectorLengthMismatch, setFetchIntervalSec, setKeystoreAlias, 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 TwoTablesRdbmsGraphConfigBuilder copyFrom(TwoTablesRdbmsGraphConfig graphConfig)
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
public TwoTablesRdbmsGraphConfigBuilder setDatastore(TwoTablesDatastore datastore)
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
public TwoTablesRdbmsGraphConfigBuilder setDataSourceId(java.lang.String dsId)
Sets the datasource ID.- Parameters:
dsid- the datasource ID- Returns:
- this builder
-
setJdbcUrl
public TwoTablesRdbmsGraphConfigBuilder setJdbcUrl(java.lang.String url)
Sets the jdbc url.- Parameters:
url- the url- Returns:
- this builder
-
setUsername
public TwoTablesRdbmsGraphConfigBuilder setUsername(java.lang.String un)
Sets the username.- Parameters:
un- the username- Returns:
- this builder
-
setTablespace
public TwoTablesRdbmsGraphConfigBuilder setTablespace(java.lang.String tablespace)
Sets the tablespace.- Parameters:
tablespace- the tablespace- Returns:
- this builder
-
setVerticesTableName
public TwoTablesRdbmsGraphConfigBuilder setVerticesTableName(java.lang.String vtb)
Alias forsetNodesTableName(String)- Parameters:
vtb- the vertices table name- Returns:
- this builder
-
setNodesTableName
public TwoTablesRdbmsGraphConfigBuilder setNodesTableName(java.lang.String ntb)
Sets the nodes table name.- Parameters:
ntb- the nodes table name- Returns:
- this builder
-
setEdgesTableName
public TwoTablesRdbmsGraphConfigBuilder setEdgesTableName(java.lang.String etb)
Sets the edge table name.- Parameters:
etb- the edge table name- Returns:
- this builder
-
setNumConnections
public TwoTablesRdbmsGraphConfigBuilder setNumConnections(int c)
Sets the number of connections.- Parameters:
c- the number of connections- Returns:
- this builder
-
setNodesKey
public TwoTablesRdbmsGraphConfigBuilder setNodesKey(java.lang.String nKey)
Sets node keys.- Parameters:
nKey- the node keys- Returns:
- this builder
-
setEdgesKey
public TwoTablesRdbmsGraphConfigBuilder setEdgesKey(java.lang.String eKey)
Sets edge keys- Parameters:
eKey- the edge keys- Returns:
- this builder
-
setFromNid
public TwoTablesRdbmsGraphConfigBuilder setFromNid(java.lang.String fromNid)
Sets the column ID from where to read.- Parameters:
fromNid- the column id- Returns:
- this builder
-
setToNid
public TwoTablesRdbmsGraphConfigBuilder setToNid(java.lang.String toNid)
Sets the column ID to write into.- Parameters:
toNid- the column id- Returns:
- this builder
-
setMaxPreFetchedRows
public TwoTablesRdbmsGraphConfigBuilder setMaxPreFetchedRows(int maxPreFetchedRows)
Sets the maximum number of prefetched rows.- Parameters:
maxPreFetchedRows- the maximum number of prefetched rows- Returns:
- this builder
-
setSchema
public TwoTablesRdbmsGraphConfigBuilder setSchema(java.lang.String schema)
Sets the schema.- Parameters:
schema- the schema- Returns:
- this builder
-
setInsertBatchSize
public TwoTablesRdbmsGraphConfigBuilder setInsertBatchSize(int insertBatchSize)
Sets the batch size for inserting.- Parameters:
insertBatchSize- the batch size for inserting- Returns:
- this builder
-
setLabelValueDelimiter
public TwoTablesRdbmsGraphConfigBuilder setLabelValueDelimiter(java.lang.String delimiter)
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
public TwoTablesRdbmsGraphConfigBuilder setVertexLabels(java.lang.String vertexLabels)
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
public TwoTablesRdbmsGraphConfigBuilder setEdgeLabel(java.lang.String edgeLabel)
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
-
-