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 ClassesModifier and TypeClassDescriptionstatic enumFields 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
Modifier and TypeMethodDescriptionboolean[only relevant if the graph is optimized for updates] threshold used to determined when to compact the delta-logs into a new array.additional attributes needed to read/write the graph datastatic TwoTablesTextGraphConfig.Field[]underlying datastorename or index (starting from 1) of column corresponding to edge destination (for CSV format only)name or index (starting from 1) of column corresponding to edge id (for CSV format only)Indicates what ID strategy should be used for the edges of this graph.type of the edge ID.name or index (starting from 1) of column corresponding to edge label (for CSV format only)specification of edge properties associated with graphname of primary key column in edges tablecolumn name for edge labelname or index (starting from 1) of column corresponding to edge source (for CSV format only)list of unified resource identifierserror handling configurationgraph formatcolumn name for source nodealias to the keystore to use when connecting to databaseGets the values that do not belong to any field.loading-specific configurationarray of local_date formats to use when loading and storing local_date properties.name of primary key column in nodes tablecolumn name for node labelIndicates if the graph should use data-structures optimized for read-intensive scenarios or for fast updatesIndicates if the graph should be partitioned while loadinglongitude and latitude as floating point values separated by a spacea series of single-character separators for tokenizing.storing-specific configurationthe time format to use when loading and storing time properties.the timestamp format to use when loading and storing timestamp properties.the timestamp with timezone format to use when loading and storing timestamp with timezone properties.the time with timezone format to use when loading and storing time with timezone properties.column name for destination nodeGets the parsed values.Gets the values without defaults.delimiter for the different components of vector propertiesname or index (starting from 1) of column corresponding to vertex id (for CSV format only)Indicates what ID strategy should be used for the vertices of this graph.type of the vertex ID.name or index (starting from 1) of column corresponding to vertex labels (for CSV format only)specification of vertex properties associated with graphlist of unified resource identifiersbooleanChecks for default value.enable/disable automatic gzip compression detection when loading graphsbooleanisEmpty()Checks if it's empty.isHeader()first line of file is meant for headers, e.g.static TwoTablesTextGraphConfigparse(InputStream is, boolean strict, String parentPath) Parses an input stream.static TwoTablesTextGraphConfigParses a raw key/value mapping.static TwoTablesTextGraphConfigparse(Properties props, boolean strict) Parses a properties file.toString()toString(boolean hideSensitiveData) Methods inherited from class oracle.pgx.config.AbstractTwoTablesTextGraphConfig
hasEdgeKeys, hashCode, toGraphConfigBuilderMethods inherited from class oracle.pgx.config.AbstractFileGraphConfig
getName, getUri, getUrisMethods inherited from class oracle.pgx.config.GraphConfig
getEdgePropertyDefault, getEdgePropertyDimension, getEdgePropertyName, getEdgePropertyType, getEdgePropertyTypes, 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, supportsVertexLabelsMethods inherited from class oracle.pgx.config.AbstractConfig
getDefault, getValueFromEnvironment, getValueFromEnvironment, parseString, setSerializableMethods inherited from interface oracle.pgx.config.CommonLoadableConfig
createLocalDateFormat, createTimeFormat, createTimestampFormat, createTimestampWithTimezoneFormat, createTimeWithTimezoneFormat
-
Method Details
-
parse
public static TwoTablesTextGraphConfig parse(InputStream is, boolean strict, String parentPath) throws 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:
IOException- Signals that an I/O exception has occurred.
-
parse
public static TwoTablesTextGraphConfig parse(Map<String, Object> raw, boolean strict, 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
Parses a properties file.- Parameters:
props- the properties to parsestrict- if true, parses in strict mode- Returns:
- the parsed graph config
-
getConfigFields
-
getValues
Gets the parsed values.- Specified by:
getValuesin classAbstractConfig- Returns:
- the parsed values
-
isEmpty
public boolean isEmpty()Checks if it's empty.- Returns:
- true, if the Map 'values' is empty.
-
hasDefaultValue
Checks for default value.- Parameters:
field- the field- Returns:
- true, if value for given field is the default value
-
getValuesWithoutDefaults
Gets the values without defaults.- Returns:
- the values without defaults
-
getLeftoverValues
Gets the values that do not belong to any field.- Returns:
- the values that do not belong to any field
-
toString
-
toString
-
getVertexUris
list of unified resource identifiers- Specified by:
getVertexUrisin classAbstractFileGraphConfig- Returns:
- the list of URIs
-
getEdgeUris
list of unified resource identifiers- Specified by:
getEdgeUrisin classAbstractFileGraphConfig- Returns:
- the list of URIs
-
getVertexIdColumn
name or index (starting from 1) of column corresponding to vertex id (for CSV format only)- Specified by:
getVertexIdColumnin classAbstractFileGraphConfig
-
getEdgeIdColumn
name or index (starting from 1) of column corresponding to edge id (for CSV format only)- Specified by:
getEdgeIdColumnin classAbstractFileGraphConfig
-
getEdgeSourceColumn
name or index (starting from 1) of column corresponding to edge source (for CSV format only)- Specified by:
getEdgeSourceColumnin classAbstractFileGraphConfig
-
getEdgeDestinationColumn
name or index (starting from 1) of column corresponding to edge destination (for CSV format only)- Specified by:
getEdgeDestinationColumnin classAbstractFileGraphConfig
-
getVertexLabelsColumn
name or index (starting from 1) of column corresponding to vertex labels (for CSV format only)- Specified by:
getVertexLabelsColumnin classAbstractFileGraphConfig
-
getEdgeLabelColumn
name or index (starting from 1) of column corresponding to edge label (for CSV format only)- Specified by:
getEdgeLabelColumnin classAbstractFileGraphConfig
-
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:
getSeparatorin classAbstractFileGraphConfig- Returns:
- the separator
-
isHeader
first line of file is meant for headers, e.g. 'EdgeId, SourceId, DestId, EdgeProp1, EdgeProp2'- Specified by:
isHeaderin classAbstractFileGraphConfig- Returns:
- Whether the file has a header or not
-
isDetectGzip
enable/disable automatic gzip compression detection when loading graphs- Specified by:
isDetectGzipin classAbstractFileGraphConfig- Returns:
- true if GZip file automatic detection is enabled, false otherwise.
-
getStoringOptions
storing-specific configuration- Specified by:
getStoringOptionsin classAbstractFileGraphConfig- Returns:
- the storing configuration
-
getOptimizedFor
Indicates if the graph should use data-structures optimized for read-intensive scenarios or for fast updates- Specified by:
getOptimizedForin classGraphConfig- Returns:
by_labelif the graph should be partitioned during loading,falseIndicates if the graph should use data-structures optimized for fast updates
-
getPartitionWhileLoading
Indicates if the graph should be partitioned while loading- Specified by:
getPartitionWhileLoadingin classGraphConfig- Returns:
trueif the graph should be heterogenized during loading,falseornullotherwise
-
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
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
type of the vertex ID. If not specified (or set to null), it will default to some type (depending on the origin of the data).- Specified by:
getVertexIdTypein classGraphConfig- Returns:
- the vertex ID type
-
getEdgeIdType
type of the edge ID. If not specified (or set to null), it will default to long.- Overrides:
getEdgeIdTypein classGraphConfig- Returns:
- the edge ID type
-
getFormat
graph format- Returns:
- the format
-
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:
getArrayCompactionThresholdin classGraphConfig- Returns:
- the compaction threshold
-
getVertexProps
specification of vertex properties associated with graph- Specified by:
getVertexPropsin classGraphConfig- Returns:
- the list of vertex properties
-
getEdgeProps
specification of edge properties associated with graph- Specified by:
getEdgePropsin classGraphConfig- Returns:
- the list of vertex properties
-
getLoadingOptions
loading-specific configuration- Specified by:
getLoadingOptionsin classGraphConfig- Returns:
- the loading configuration
-
getErrorHandling
error handling configuration- Returns:
- the error handling configuration
-
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
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
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
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
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
delimiter for the different components of vector properties -
getPoint2d
longitude and latitude as floating point values separated by a space -
getAttributes
additional attributes needed to read/write the graph data- Returns:
- the map of attributes
-
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
underlying datastore- Returns:
- the datastore
-
getNodesKeyColumn
name of primary key column in nodes table -
getEdgesKeyColumn
name of primary key column in edges table -
getFromNidColumn
column name for source node -
getToNidColumn
column name for destination node -
getNodesLabelColumn
column name for node label -
getEdgesLabelColumn
column name for edge label -
equals
- Overrides:
equalsin classAbstractTwoTablesTextGraphConfig
-