Package oracle.pgx.config
Class GraphPropertyConfig
java.lang.Object
oracle.pgx.config.AbstractConfig
oracle.pgx.config.AbstractGraphPropertyConfig
oracle.pgx.config.GraphPropertyConfig
- All Implemented Interfaces:
Serializable
@Generated("config_generator.py")
public class GraphPropertyConfig
extends AbstractGraphPropertyConfig
PGX Engine Graph Property Config
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumFields of PGX Engine Graph Property Config -
Field Summary
Fields inherited from class oracle.pgx.config.AbstractConfig
ENV_SEPARATOR, ENV_VARIABLE_PREFIX, SYSTEM_PROPERTY_PREFIX -
Method Summary
Modifier and TypeMethodDescriptionboolean[currently unsupported] which aggregation function to use, aggregation always happens by vertex keyname or index (starting from 1) of the column holding the property data.static GraphPropertyConfig.Field[]default value to be assigned to this property if datasource does not provide it.dimension of propertygetField()name of the JSON field holding the property data.array of formats of property[currently unsupported] can only be used if the property / key is part of the grouping expressionGets the values that do not belong to any field.[only relevant if string_pooling_strategy is indexed] amount of distinct strings per property after which to stop pooling.getName()name of propertywhich string pooling strategy to use.getType()type of property (Note: date is deprecated, use one of local_date / time / timestamp / time_with_timezone / timestamp_with_timezone instead).Gets the parsed values.Gets the values without defaults.booleanChecks for default value.[currently unsupported] indicating helper properties only used for aggregation, which are dropped after loadingbooleanisEmpty()Checks if it's empty.static GraphPropertyConfigparse(InputStream is, boolean strict, String parentPath) Parses an input stream.static GraphPropertyConfigParses a raw key/value mapping.static GraphPropertyConfigparse(Properties props, boolean strict) Parses a properties file.toString()toString(boolean hideSensitiveData) Methods inherited from class oracle.pgx.config.AbstractGraphPropertyConfig
getParsedDefaultValue, getSourceColumn, hashCode, isStringPoolEnabledMethods inherited from class oracle.pgx.config.AbstractConfig
getDefault, getValueFromEnvironment, getValueFromEnvironment, parseString, setSerializable
-
Method Details
-
parse
public static GraphPropertyConfig 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
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
-
getName
name of property- Specified by:
getNamein classAbstractGraphPropertyConfig
-
getDimension
dimension of property -
getFormat
array of formats of property- Specified by:
getFormatin classAbstractGraphPropertyConfig
-
getType
type of property (Note: date is deprecated, use one of local_date / time / timestamp / time_with_timezone / timestamp_with_timezone instead). vertex/edge are place-holders for the type specified in vertex_id_type/edge_id_type fields.- Specified by:
getTypein classAbstractGraphPropertyConfig
-
getDefault
default value to be assigned to this property if datasource does not provide it. In case of date type: string is expected to be formatted withyyyy-MM-dd HH:mm:ss. If no default is present (null), non-existent properties will contain default Java types (primitives) or empty string (string) or01.01.1970 00:00(date). -
getColumn
name or index (starting from 1) of the column holding the property data. If it is not specified, the loader will try to use the property name as column name (for CSV format only)- Specified by:
getColumnin classAbstractGraphPropertyConfig
-
getMaxDistinctStringsPerPool
[only relevant if string_pooling_strategy is indexed] amount of distinct strings per property after which to stop pooling. If the limit is reached an exception is thrown. If set to null, the default value from the global PGX configuration will be used. -
getStringPoolingStrategy
which string pooling strategy to use. If set to null, the default value from the global PGX configuration will be used. -
getAggregate
[currently unsupported] which aggregation function to use, aggregation always happens by vertex key -
getField
name of the JSON field holding the property data. Nesting is denoted by dot - separation. Field names containing dots are possible, in this case the dots need to be escaped using backslashes to resolve ambiguities. Only the exactly specified object are loaded, if they are non existent, the default value is used -
getGroupKey
[currently unsupported] can only be used if the property / key is part of the grouping expression -
isDropAfterLoading
[currently unsupported] indicating helper properties only used for aggregation, which are dropped after loading -
equals
- Overrides:
equalsin classAbstractGraphPropertyConfig
-