Package oracle.pgx.config
Class AbstractFileGraphConfig
- java.lang.Object
-
- oracle.pgx.config.AbstractConfig
-
- oracle.pgx.config.GraphConfig
-
- oracle.pgx.config.AbstractFileGraphConfig
-
- All Implemented Interfaces:
CommonLoadableConfig<Format>
,oracle.pgx.config.internal.ConvertibleToGraphConfigBuilder
- Direct Known Subclasses:
AbstractTwoTablesTextGraphConfig
,FileGraphConfig
public abstract class AbstractFileGraphConfig extends GraphConfig
Abstract super-class for all file-base 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 AbstractFileGraphConfig()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
abstract java.lang.Object
getEdgeDestinationColumn()
name or index (starting from 1) of column corresponding to edge destination (for CSV format only)abstract java.lang.Object
getEdgeIdColumn()
name or index (starting from 1) of column corresponding to edge id (for CSV format only)abstract java.lang.Object
getEdgeLabelColumn()
name or index (starting from 1) of column corresponding to edge label (for CSV format only)abstract java.lang.Object
getEdgeSourceColumn()
name or index (starting from 1) of column corresponding to edge source (for CSV format only)abstract java.util.List<java.lang.String>
getEdgeUris()
Get the unified resource identifiers for the files with the graph edge dataabstract java.util.List<ExternalStoreConfig>
getExternalStores()
java.lang.String
getName()
Get the graph name of this graph configuration.abstract java.lang.String
getSeparator()
Get the separator of this graph configurationFileGraphStoringConfig
getStoringOptions()
Get the storing configurationjava.lang.String
getUri()
Get the unified resource identifier for the file with the graph datajava.util.List<java.lang.String>
getUris()
Get the unified resource identifiers for the files with the graph dataabstract java.lang.Object
getVertexIdColumn()
name or index (starting from 1) of column corresponding to vertex id (for CSV format only)abstract java.lang.Object
getVertexLabelsColumn()
name or index (starting from 1) of column corresponding to vertex labels (for CSV format only)abstract java.util.List<java.lang.String>
getVertexUris()
Get the unified resource identifiers for the files with the graph vertex dataint
hashCode()
abstract java.lang.Boolean
isDetectGzip()
Whether GZip file automatic detection is enabled or not.abstract java.lang.Boolean
isHeader()
Whether the file has a header.AbstractFileGraphConfigBuilder
toGraphConfigBuilder()
-
Methods inherited from class oracle.pgx.config.GraphConfig
getArrayCompactionThreshold, getEdgeIdType, getEdgePropertyDefault, getEdgePropertyDimension, getEdgePropertyName, getEdgePropertyType, getEdgePropertyTypes, getEdgeProps, getLoadingOptions, getNodeKeyType, getNodePropertyDefault, getNodePropertyDimension, getNodePropertyName, getNodePropertyType, getOptimizedFor, getPartitionWhileLoading, getValidatedEdgeIdStrategy, getValidatedEdgeIdType, getValidatedVertexIdStrategy, getValidatedVertexIdType, getVertexIdType, getVertexPropertyTypes, getVertexProps, 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, getFormat, getKeystoreAlias, getLocalDateFormat, getTimeFormat, getTimestampFormat, getTimestampWithTimezoneFormat, getTimeWithTimezoneFormat, getVectorComponentDelimiter
-
-
-
-
Method Detail
-
toGraphConfigBuilder
public AbstractFileGraphConfigBuilder toGraphConfigBuilder()
-
getUri
public java.lang.String getUri()
Get the unified resource identifier for the file with the graph data- Returns:
- the uri
-
getUris
public java.util.List<java.lang.String> getUris()
Get the unified resource identifiers for the files with the graph data- Returns:
- the list of URIs
-
getStoringOptions
public FileGraphStoringConfig getStoringOptions()
Get the storing configuration- Returns:
- the storing configuration
-
getVertexUris
public abstract java.util.List<java.lang.String> getVertexUris()
Get the unified resource identifiers for the files with the graph vertex data- Returns:
- the list of URIs
-
getEdgeUris
public abstract java.util.List<java.lang.String> getEdgeUris()
Get the unified resource identifiers for the files with the graph edge data- Returns:
- the list of URIs
-
getSeparator
public abstract java.lang.String getSeparator()
Get the separator of this graph configuration- Returns:
- the separator
-
isDetectGzip
public abstract java.lang.Boolean isDetectGzip()
Whether GZip file automatic detection is enabled or not.- Returns:
- true if GZip file automatic detection is enabled, false otherwise.
-
isHeader
public abstract java.lang.Boolean isHeader()
Whether the file has a header. i.e. first line of file is meant for headers, e.g. 'EdgeId, SourceId, DestId, EdgeProp1, EdgeProp2'- Returns:
- Whether the file has a header or not
-
getVertexIdColumn
public abstract java.lang.Object getVertexIdColumn()
name or index (starting from 1) of column corresponding to vertex id (for CSV format only)
-
getVertexLabelsColumn
public abstract java.lang.Object getVertexLabelsColumn()
name or index (starting from 1) of column corresponding to vertex labels (for CSV format only)
-
getEdgeIdColumn
public abstract java.lang.Object getEdgeIdColumn()
name or index (starting from 1) of column corresponding to edge id (for CSV format only)
-
getEdgeSourceColumn
public abstract java.lang.Object getEdgeSourceColumn()
name or index (starting from 1) of column corresponding to edge source (for CSV format only)
-
getEdgeDestinationColumn
public abstract java.lang.Object getEdgeDestinationColumn()
name or index (starting from 1) of column corresponding to edge destination (for CSV format only)
-
getEdgeLabelColumn
public abstract java.lang.Object getEdgeLabelColumn()
name or index (starting from 1) of column corresponding to edge label (for CSV format only)
-
getExternalStores
public abstract java.util.List<ExternalStoreConfig> getExternalStores()
- Specified by:
getExternalStores
in classGraphConfig
-
getName
public java.lang.String getName()
Description copied from interface:CommonLoadableConfig
Get the graph name of this graph configuration. Note: for file-based graph configurations, this is the file name of the URI this configuration points to.- Returns:
- the graph name
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classGraphConfig
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classGraphConfig
-
-