Package oracle.pgx.config
Class TwoTablesTextGraphConfig
- java.lang.Object
-
- oracle.pgx.config.AbstractConfig
-
- oracle.pgx.config.GraphConfig
-
- oracle.pgx.config.AbstractFileGraphConfig
-
- oracle.pgx.config.AbstractTwoTablesTextGraphConfig
-
- oracle.pgx.config.TwoTablesTextGraphConfig
-
- All Implemented Interfaces:
CommonLoadableConfig<Format>
,oracle.pgx.config.internal.ConvertibleToGraphConfigBuilder
,TwoTablesGraphConfig
@Generated("config_generator.py") public class TwoTablesTextGraphConfig extends AbstractTwoTablesTextGraphConfig
PGX Engine Two Tables Text Graph Config
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TwoTablesTextGraphConfig.Field
Fields of PGX Engine Two Tables Text Graph Config
-
Field Summary
-
Fields inherited from class oracle.pgx.config.AbstractConfig
ENV_SEPARATOR, ENV_VARIABLE_PREFIX, SYSTEM_PROPERTY_PREFIX
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.Double
getArrayCompactionThreshold()
[only relevant if the graph is optimized for updates] threshold used to determined when to compact the delta-logs into a new array.java.util.Map
getAttributes()
additional attributes needed to read/write the graph datastatic TwoTablesTextGraphConfig.Field[]
getConfigFields()
TwoTablesDatastore
getDatastore()
underlying datastorejava.lang.Object
getEdgeDestinationColumn()
name or index (starting from 1) of column corresponding to edge destination (for CSV format only)java.lang.Object
getEdgeIdColumn()
name or index (starting from 1) of column corresponding to edge id (for CSV format only)IdStrategy
getEdgeIdStrategy()
Indicates what ID strategy should be used for the edges of this graph.IdType
getEdgeIdType()
type of the edge ID.java.lang.Object
getEdgeLabelColumn()
name or index (starting from 1) of column corresponding to edge label (for CSV format only)java.util.List<GraphPropertyConfig>
getEdgeProps()
specification of edge properties associated with graphjava.lang.String
getEdgesKeyColumn()
name of primary key column in edges tablejava.lang.String
getEdgesLabelColumn()
column name for edge labeljava.lang.Object
getEdgeSourceColumn()
name or index (starting from 1) of column corresponding to edge source (for CSV format only)java.util.List<java.lang.String>
getEdgeUris()
list of unified resource identifiersGraphErrorHandlingConfig
getErrorHandling()
error handling configurationjava.util.List<ExternalStoreConfig>
getExternalStores()
Specification of the external stores where external string properties reside.Format
getFormat()
graph formatjava.lang.String
getFromNidColumn()
column name for source nodejava.lang.String
getKeystoreAlias()
alias to the keystore to use when connecting to databasejava.util.Map<java.lang.String,java.lang.Object>
getLeftoverValues()
Gets the values that do not belong to any field.GraphLoadingConfig
getLoading()
loading-specific configurationjava.util.List<java.lang.String>
getLocalDateFormat()
array of local_date formats to use when loading and storing local_date properties.java.lang.String
getNodesKeyColumn()
name of primary key column in nodes tablejava.lang.String
getNodesLabelColumn()
column name for node labelGraphOptimizedFor
getOptimizedFor()
Indicates if the graph should use data-structures optimized for read-intensive scenarios or for fast updatesPartitionWhileLoading
getPartitionWhileLoading()
Indicates if the graph should be partitioned while loadingjava.lang.String
getPoint2d()
longitude and latitude as floating point values separated by a spacejava.lang.String
getSeparator()
a series of single-character separators for tokenizing.FileGraphStoringConfig
getStoring()
storing-specific configurationjava.util.List<java.lang.String>
getTimeFormat()
the time format to use when loading and storing time properties.java.util.List<java.lang.String>
getTimestampFormat()
the timestamp format to use when loading and storing timestamp properties.java.util.List<java.lang.String>
getTimestampWithTimezoneFormat()
the timestamp with timezone format to use when loading and storing timestamp with timezone properties.java.util.List<java.lang.String>
getTimeWithTimezoneFormat()
the time with timezone format to use when loading and storing time with timezone properties.java.lang.String
getToNidColumn()
column name for destination nodejava.util.Map<TwoTablesTextGraphConfig.Field,java.lang.Object>
getValues()
Gets the parsed values.java.util.Map<TwoTablesTextGraphConfig.Field,java.lang.Object>
getValuesWithoutDefaults()
Gets the values without defaults.java.lang.Character
getVectorComponentDelimiter()
delimiter for the different components of vector propertiesjava.lang.Object
getVertexIdColumn()
name or index (starting from 1) of column corresponding to vertex id (for CSV format only)IdStrategy
getVertexIdStrategy()
Indicates what ID strategy should be used for the vertices of this graph.IdType
getVertexIdType()
type of the vertex ID.java.lang.Object
getVertexLabelsColumn()
name or index (starting from 1) of column corresponding to vertex labels (for CSV format only)java.util.List<GraphPropertyConfig>
getVertexProps()
specification of vertex properties associated with graphjava.util.List<java.lang.String>
getVertexUris()
list of unified resource identifiersboolean
hasDefaultValue(TwoTablesTextGraphConfig.Field field)
Checks for default value.java.lang.Boolean
isDetectGzip()
enable/disable automatic gzip compression detection when loading graphsboolean
isEmpty()
Checks if it's empty.java.lang.Boolean
isHeader()
first line of file is meant for headers, e.g.static TwoTablesTextGraphConfig
parse(java.io.InputStream is, boolean strict, java.lang.String parentPath)
Parses an input stream.static TwoTablesTextGraphConfig
parse(java.util.Map<java.lang.String,java.lang.Object> raw, boolean strict, java.lang.String parentPath)
Parses a raw key/value mapping.static TwoTablesTextGraphConfig
parse(java.util.Properties props, boolean strict)
Parses a properties file.java.lang.String
toString()
java.lang.String
toString(boolean hideSensitiveData)
-
Methods inherited from class oracle.pgx.config.AbstractTwoTablesTextGraphConfig
hasEdgeKeys, hashCode, toGraphConfigBuilder
-
Methods inherited from class oracle.pgx.config.AbstractFileGraphConfig
getName, getStoringOptions, getUri, getUris
-
Methods inherited from class oracle.pgx.config.GraphConfig
getEdgePropertyDefault, getEdgePropertyDimension, getEdgePropertyName, getEdgePropertyType, getEdgePropertyTypes, getLoadingOptions, getNodeKeyType, getNodePropertyDefault, getNodePropertyDimension, getNodePropertyName, getNodePropertyType, getValidatedEdgeIdStrategy, getValidatedEdgeIdType, getValidatedVertexIdStrategy, getValidatedVertexIdType, 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, parseString, setSerializable
-
Methods inherited from interface oracle.pgx.config.CommonLoadableConfig
createLocalDateFormat, createTimeFormat, createTimestampFormat, createTimestampWithTimezoneFormat, createTimeWithTimezoneFormat
-
-
-
-
Method Detail
-
parse
public static TwoTablesTextGraphConfig parse(java.io.InputStream is, boolean strict, java.lang.String parentPath) throws java.io.IOException
Parses an input stream.- Parameters:
is
- the input streamstrict
- if true, parses in strict modeparentPath
- if not null, resolves relative paths against this parentPath- Returns:
- the parsed graph config
- Throws:
java.io.IOException
- Signals that an I/O exception has occurred.
-
parse
public static TwoTablesTextGraphConfig parse(java.util.Map<java.lang.String,java.lang.Object> raw, boolean strict, java.lang.String parentPath)
Parses a raw key/value mapping.- Parameters:
raw
- the raw key/value mapping to parsestrict
- if true, parses in strict modeparentPath
- if not null, resolves relative paths against this parentPath- Returns:
- the parsed graph config
-
parse
public static TwoTablesTextGraphConfig parse(java.util.Properties props, boolean strict)
Parses a properties file.- Parameters:
props
- the properties to parsestrict
- if true, parses in strict mode- Returns:
- the parsed graph config
-
getConfigFields
public static TwoTablesTextGraphConfig.Field[] getConfigFields()
-
getValues
public java.util.Map<TwoTablesTextGraphConfig.Field,java.lang.Object> getValues()
Gets the parsed values.- Specified by:
getValues
in classAbstractConfig
- Returns:
- the parsed values
-
isEmpty
public boolean isEmpty()
Checks if it's empty.- Returns:
- true, if the Map 'values' is empty.
-
hasDefaultValue
public boolean hasDefaultValue(TwoTablesTextGraphConfig.Field field)
Checks for default value.- Parameters:
field
- the field- Returns:
- true, if value for given field is the default value
-
getValuesWithoutDefaults
public java.util.Map<TwoTablesTextGraphConfig.Field,java.lang.Object> getValuesWithoutDefaults()
Gets the values without defaults.- Returns:
- the values without defaults
-
getLeftoverValues
public java.util.Map<java.lang.String,java.lang.Object> getLeftoverValues()
Gets the values that do not belong to any field.- Returns:
- the values that do not belong to any field
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toString
public java.lang.String toString(boolean hideSensitiveData)
-
getVertexUris
public java.util.List<java.lang.String> getVertexUris()
list of unified resource identifiers- Specified by:
getVertexUris
in classAbstractFileGraphConfig
- Returns:
- the list of URIs
-
getEdgeUris
public java.util.List<java.lang.String> getEdgeUris()
list of unified resource identifiers- Specified by:
getEdgeUris
in classAbstractFileGraphConfig
- Returns:
- the list of URIs
-
getVertexIdColumn
public java.lang.Object getVertexIdColumn()
name or index (starting from 1) of column corresponding to vertex id (for CSV format only)- Specified by:
getVertexIdColumn
in classAbstractFileGraphConfig
-
getEdgeIdColumn
public java.lang.Object getEdgeIdColumn()
name or index (starting from 1) of column corresponding to edge id (for CSV format only)- Specified by:
getEdgeIdColumn
in classAbstractFileGraphConfig
-
getEdgeSourceColumn
public java.lang.Object getEdgeSourceColumn()
name or index (starting from 1) of column corresponding to edge source (for CSV format only)- Specified by:
getEdgeSourceColumn
in classAbstractFileGraphConfig
-
getEdgeDestinationColumn
public java.lang.Object getEdgeDestinationColumn()
name or index (starting from 1) of column corresponding to edge destination (for CSV format only)- Specified by:
getEdgeDestinationColumn
in classAbstractFileGraphConfig
-
getVertexLabelsColumn
public java.lang.Object getVertexLabelsColumn()
name or index (starting from 1) of column corresponding to vertex labels (for CSV format only)- Specified by:
getVertexLabelsColumn
in classAbstractFileGraphConfig
-
getEdgeLabelColumn
public java.lang.Object getEdgeLabelColumn()
name or index (starting from 1) of column corresponding to edge label (for CSV format only)- Specified by:
getEdgeLabelColumn
in classAbstractFileGraphConfig
-
getSeparator
public java.lang.String getSeparator()
a series of single-character separators for tokenizing. The characters ", {, } and \n cannot be used as separators. Default value is "," for CSV files, and "\t " for other formats. The first character will be used as a separator when storing.- Specified by:
getSeparator
in classAbstractFileGraphConfig
- Returns:
- the separator
-
isHeader
public java.lang.Boolean isHeader()
first line of file is meant for headers, e.g. 'EdgeId, SourceId, DestId, EdgeProp1, EdgeProp2'- Specified by:
isHeader
in classAbstractFileGraphConfig
- Returns:
- Whether the file has a header or not
-
isDetectGzip
public java.lang.Boolean isDetectGzip()
enable/disable automatic gzip compression detection when loading graphs- Specified by:
isDetectGzip
in classAbstractFileGraphConfig
- Returns:
- true if GZip file automatic detection is enabled, false otherwise.
-
getStoring
public FileGraphStoringConfig getStoring()
storing-specific configuration
-
getOptimizedFor
public GraphOptimizedFor getOptimizedFor()
Indicates if the graph should use data-structures optimized for read-intensive scenarios or for fast updates- Specified by:
getOptimizedFor
in classGraphConfig
- Returns:
by_label
if the graph should be partitioned during loading,false
Indicates if the graph should use data-structures optimized for fast updates
-
getPartitionWhileLoading
public PartitionWhileLoading getPartitionWhileLoading()
Indicates if the graph should be partitioned while loading- Specified by:
getPartitionWhileLoading
in classGraphConfig
- Returns:
true
if the graph should be heterogenized during loading,false
ornull
otherwise
-
getVertexIdStrategy
public IdStrategy getVertexIdStrategy()
Indicates what ID strategy should be used for the vertices of this graph. If not specified (or set to null), the strategy will be automatically detected
-
getEdgeIdStrategy
public IdStrategy getEdgeIdStrategy()
Indicates what ID strategy should be used for the edges of this graph. If not specified (or set to null), the strategy will be determined during loading or using a default value
-
getVertexIdType
public IdType getVertexIdType()
type of the vertex ID. For homogeneous graphs, if not specified (or set to null), it will default to a specific value (depending on the origin of the data).- Specified by:
getVertexIdType
in classGraphConfig
- Returns:
- the vertex ID type
-
getEdgeIdType
public IdType getEdgeIdType()
type of the edge ID. For homogeneous graphs, if not specified (or set to null), it will default to long.- Overrides:
getEdgeIdType
in classGraphConfig
- Returns:
- the edge ID type
-
getFormat
public Format getFormat()
graph format- Returns:
- the format
-
getArrayCompactionThreshold
public java.lang.Double getArrayCompactionThreshold()
[only relevant if the graph is optimized for updates] threshold used to determined when to compact the delta-logs into a new array. If lower than the engine min_array_compaction_threshold value, min_array_compaction_threshold will be used instead- Specified by:
getArrayCompactionThreshold
in classGraphConfig
- Returns:
- the compaction threshold
-
getVertexProps
public java.util.List<GraphPropertyConfig> getVertexProps()
specification of vertex properties associated with graph- Specified by:
getVertexProps
in classGraphConfig
- Returns:
- the list of vertex properties
-
getEdgeProps
public java.util.List<GraphPropertyConfig> getEdgeProps()
specification of edge properties associated with graph- Specified by:
getEdgeProps
in classGraphConfig
- Returns:
- the list of vertex properties
-
getLoading
public GraphLoadingConfig getLoading()
loading-specific configuration
-
getExternalStores
public java.util.List<ExternalStoreConfig> getExternalStores()
Specification of the external stores where external string properties reside.- Specified by:
getExternalStores
in classAbstractFileGraphConfig
-
getErrorHandling
public GraphErrorHandlingConfig getErrorHandling()
error handling configuration- Returns:
- the error handling configuration
-
getLocalDateFormat
public java.util.List<java.lang.String> getLocalDateFormat()
array of local_date formats to use when loading and storing local_date properties. Please see DateTimeFormatter for a documentation of the format string- Returns:
- the date format
-
getTimeFormat
public java.util.List<java.lang.String> getTimeFormat()
the time format to use when loading and storing time properties. Please see DateTimeFormatter for a documentation of the format string- Returns:
- the time format
-
getTimestampFormat
public java.util.List<java.lang.String> getTimestampFormat()
the timestamp format to use when loading and storing timestamp properties. Please see DateTimeFormatter for a documentation of the format string- Returns:
- the timestamp format
-
getTimeWithTimezoneFormat
public java.util.List<java.lang.String> getTimeWithTimezoneFormat()
the time with timezone format to use when loading and storing time with timezone properties. Please see DateTimeFormatter for a documentation of the format string- Returns:
- the time with timezone format
-
getTimestampWithTimezoneFormat
public java.util.List<java.lang.String> getTimestampWithTimezoneFormat()
the timestamp with timezone format to use when loading and storing timestamp with timezone properties. Please see DateTimeFormatter for a documentation of the format string- Returns:
- the timestamp with timezone format
-
getVectorComponentDelimiter
public java.lang.Character getVectorComponentDelimiter()
delimiter for the different components of vector properties
-
getPoint2d
public java.lang.String getPoint2d()
longitude and latitude as floating point values separated by a space
-
getAttributes
public java.util.Map getAttributes()
additional attributes needed to read/write the graph data- Returns:
- the map of attributes
-
getKeystoreAlias
public java.lang.String getKeystoreAlias()
alias to the keystore to use when connecting to database- Returns:
- the keystore alias or null if underlying format does not require a keystore
-
getDatastore
public TwoTablesDatastore getDatastore()
underlying datastore- Returns:
- the datastore
-
getNodesKeyColumn
public java.lang.String getNodesKeyColumn()
name of primary key column in nodes table
-
getEdgesKeyColumn
public java.lang.String getEdgesKeyColumn()
name of primary key column in edges table
-
getFromNidColumn
public java.lang.String getFromNidColumn()
column name for source node
-
getToNidColumn
public java.lang.String getToNidColumn()
column name for destination node
-
getNodesLabelColumn
public java.lang.String getNodesLabelColumn()
column name for node label
-
getEdgesLabelColumn
public java.lang.String getEdgesLabelColumn()
column name for edge label
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classAbstractTwoTablesTextGraphConfig
-
-