Package oracle.pgx.config
Class AbstractFileGraphConfigBuilder<T extends AbstractFileGraphConfigBuilder<T,GC>,GC extends AbstractFileGraphConfig>
- java.lang.Object
-
- oracle.pgx.config.AbstractGraphConfigBuilder<T,GC>
-
- oracle.pgx.config.AbstractFileGraphConfigBuilder<T,GC>
-
- All Implemented Interfaces:
oracle.pgx.config.internal.ConvertibleToGraphConfigBuilder
- Direct Known Subclasses:
FileGraphConfigBuilder
,TwoTablesTextGraphConfigBuilder
public abstract class AbstractFileGraphConfigBuilder<T extends AbstractFileGraphConfigBuilder<T,GC>,GC extends AbstractFileGraphConfig> extends AbstractGraphConfigBuilder<T,GC>
A graph configuration builder for file-based graph configurations.
-
-
Constructor Summary
Constructors Constructor Description AbstractFileGraphConfigBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
addEdgeUri(java.lang.String uri)
Adds a unified resource identifier (URI) pointing to a file with graph edges data.T
addUri(java.lang.String uri)
Adds a unified resource identifier (URI) pointing to a file with graph data.T
addVertexUri(java.lang.String uri)
Adds a unified resource identifier (URI) pointing to a file with graph vertices data.T
copyFrom(GC graphConfig)
Sets this builder with all the values of the given graph config.T
detectGzip(boolean detectGzip)
Defines if gzip detection is enabled or notT
hasHeader(boolean hasHeader)
Defines if file has a header or notT
setEdgeDestinationColumn(java.lang.Object column)
Sets the column containing the edge destination.T
setEdgeIdColumn(java.lang.Object column)
Sets the column containing the edge id.T
setEdgeLabelColumn(java.lang.Object column)
Sets the column containing the edge label.T
setEdgeSourceColumn(java.lang.Object column)
Sets the column containing the edge source.T
setEdgeUris(java.lang.Iterable<java.lang.String> uris)
Sets the unified resource identifier (URI) list pointing to multiple files with graph edges data.T
setEdgeUris(java.lang.String... uris)
Sets the unified resource identifier (URI) list pointing to multiple files with graph edges data.T
setFormat(Format format)
Sets the file format.T
setSeparator(java.lang.String separator)
Sets the separator.T
setStoringOptions(FileGraphStoringConfig storingConfig)
Sets the storing options to use when storing the graph data.T
setUri(java.lang.String uri)
Sets the unified resource identifier (URI) pointing to a file with graph data.T
setUris(java.lang.Iterable<java.lang.String> uris)
Sets the unified resource identifier (URI) list pointing to multiple files with graph vertices data.T
setUris(java.lang.String... uris)
Sets the unified resource identifier (URI) list pointing to multiple files with graph vertices data.T
setVectorComponentDelimiter(java.lang.Character delimiter)
Set the delimiter for the components of vector propertiesT
setVertexIdColumn(java.lang.Object column)
Sets the column containing the vertex id.T
setVertexLabelsColumn(java.lang.Object column)
Sets the column containing the vertex labels.T
setVertexUris(java.lang.Iterable<java.lang.String> uris)
Sets the unified resource identifier (URI) list pointing to multiple files with graph vertices data.T
setVertexUris(java.lang.String... uris)
Sets the unified resource identifier (URI) list pointing to multiple files with graph vertices data.-
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, 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 T copyFrom(GC 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<T extends AbstractFileGraphConfigBuilder<T,GC>,GC extends AbstractFileGraphConfig>
- Parameters:
graphConfig
- the graph configuration from which to copy the values- Returns:
- this builder
-
setFormat
public T setFormat(Format format)
Sets the file format.- Parameters:
format
- the format- Returns:
- this builder
-
setSeparator
public T setSeparator(java.lang.String separator)
Sets the separator.- Parameters:
separator
- the separator- Returns:
- this builder
- See Also:
- "the graph configuration documentation for details about the effects and default of this setting"
-
setVectorComponentDelimiter
public T setVectorComponentDelimiter(java.lang.Character delimiter)
Set the delimiter for the components of vector properties- Parameters:
delimiter
- the delimiter for the components of the vector properties- Returns:
- this builder
-
hasHeader
public T hasHeader(boolean hasHeader)
Defines if file has a header or not- Parameters:
hasHeader
- the flag to set- Returns:
- this builder
- See Also:
- "the graph configuration documentation for details about the effects and default of this setting"
-
detectGzip
public T detectGzip(boolean detectGzip)
Defines if gzip detection is enabled or not- Parameters:
detectGzip
- the flag to set- Returns:
- this builder
- See Also:
- "the graph configuration documentation for details about the effects and default of this setting"
-
setUri
public T setUri(java.lang.String uri)
Sets the unified resource identifier (URI) pointing to a file with graph data.- Parameters:
uri
- the uri- Returns:
- this builder
-
addUri
public T addUri(java.lang.String uri)
Adds a unified resource identifier (URI) pointing to a file with graph data.- Parameters:
uri
- the uri- Returns:
- this builder
-
addVertexUri
public T addVertexUri(java.lang.String uri)
Adds a unified resource identifier (URI) pointing to a file with graph vertices data.- Parameters:
uri
- the uri- Returns:
- this builder
-
addEdgeUri
public T addEdgeUri(java.lang.String uri)
Adds a unified resource identifier (URI) pointing to a file with graph edges data.- Parameters:
uri
- the uri- Returns:
- this builder
-
setUris
public T setUris(java.lang.Iterable<java.lang.String> uris)
Sets the unified resource identifier (URI) list pointing to multiple files with graph vertices data.- Parameters:
uris
- the list of uris- Returns:
- this builder
-
setUris
public T setUris(java.lang.String... uris)
Sets the unified resource identifier (URI) list pointing to multiple files with graph vertices data.- Parameters:
uris
- the array of uris- Returns:
- this builder
-
setVertexUris
public T setVertexUris(java.lang.Iterable<java.lang.String> uris)
Sets the unified resource identifier (URI) list pointing to multiple files with graph vertices data.- Parameters:
uris
- the list of uris- Returns:
- this builder
-
setVertexUris
public T setVertexUris(java.lang.String... uris)
Sets the unified resource identifier (URI) list pointing to multiple files with graph vertices data.- Parameters:
uris
- the array of uris- Returns:
- this builder
-
setEdgeUris
public T setEdgeUris(java.lang.Iterable<java.lang.String> uris)
Sets the unified resource identifier (URI) list pointing to multiple files with graph edges data.- Parameters:
uris
- the list of uris- Returns:
- this builder
-
setEdgeUris
public T setEdgeUris(java.lang.String... uris)
Sets the unified resource identifier (URI) list pointing to multiple files with graph edges data.- Parameters:
uris
- the array of uris- Returns:
- this builder
-
setStoringOptions
public T setStoringOptions(FileGraphStoringConfig storingConfig)
Sets the storing options to use when storing the graph data.- Parameters:
storingConfig
- the storing configuration object- Returns:
- this builder
-
setVertexIdColumn
public T setVertexIdColumn(java.lang.Object column)
Sets the column containing the vertex id. (for CSV format only)- Parameters:
column
- the column name or index- Returns:
- this builder
-
setVertexLabelsColumn
public T setVertexLabelsColumn(java.lang.Object column)
Sets the column containing the vertex labels. (for CSV format only)- Parameters:
column
- the column name or index- Returns:
- this builder
-
setEdgeIdColumn
public T setEdgeIdColumn(java.lang.Object column)
Sets the column containing the edge id. (for CSV format only)- Parameters:
column
- the column name or index- Returns:
- this builder
-
setEdgeSourceColumn
public T setEdgeSourceColumn(java.lang.Object column)
Sets the column containing the edge source. (for CSV format only)- Parameters:
column
- the column name or index- Returns:
- this builder
-
setEdgeDestinationColumn
public T setEdgeDestinationColumn(java.lang.Object column)
Sets the column containing the edge destination. (for CSV format only)- Parameters:
column
- the column name or index- Returns:
- this builder
-
setEdgeLabelColumn
public T setEdgeLabelColumn(java.lang.Object column)
Sets the column containing the edge label. (for CSV format only)- Parameters:
column
- the column name or index- Returns:
- this builder
-
-