Package oracle.pgx.config
Class FileEntityProviderConfig
- java.lang.Object
-
- oracle.pgx.config.AbstractConfig
-
- oracle.pgx.config.EntityProviderConfig
-
- oracle.pgx.config.AbstractFileEntityProviderConfig
-
- oracle.pgx.config.FileEntityProviderConfig
-
- All Implemented Interfaces:
CommonLoadableConfig<ProviderFormat>,oracle.pgx.config.internal.ConvertibleToEntityProviderConfigBuilder
@Generated("config_generator.py") public class FileEntityProviderConfig extends AbstractFileEntityProviderConfigPGX Engine File Entity Provider Config
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFileEntityProviderConfig.FieldFields of PGX Engine File Entity Provider 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 booleanequals(java.lang.Object obj)java.util.MapgetAttributes()additional attributes needed to read/write the graph datastatic FileEntityProviderConfig.Field[]getConfigFields()java.lang.ObjectgetDestinationColumn()name or index (starting from 1) of column corresponding to edge destination (for CSV format only)java.lang.StringgetDestinationVertexProvider()name of the destination vertex provider to be used for this edge providerGraphErrorHandlingConfiggetErrorHandling()error handling configurationProviderFormatgetFormat()provider formatjava.lang.ObjectgetKeyColumn()name or index (starting from 1) of column corresponding to keys (for CSV format only)java.lang.StringgetKeystoreAlias()alias to the keystore to use when connecting to databaseIdTypegetKeyType()type of the keysjava.lang.StringgetLabel()label for the entities loaded from this providerjava.util.Map<java.lang.String,java.lang.Object>getLeftoverValues()Gets the values that do not belong to any field.ProviderLoadingConfiggetLoading()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.StringgetName()entity provider namejava.lang.StringgetPoint2d()longitude and latitude as floating point values separated by a spacejava.util.List<GraphPropertyConfig>getProps()specification of the properties associated with this entity providerjava.lang.StringgetSeparator()a series of single-character separators for tokenizing.java.lang.ObjectgetSourceColumn()name or index (starting from 1) of column corresponding to edge source (for CSV format only)java.lang.StringgetSourceVertexProvider()name of the source vertex provider to be used for this edge providerFileGraphStoringConfiggetStoring()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.util.List<java.lang.String>getUris()list of unified resource identifiersjava.util.Map<FileEntityProviderConfig.Field,java.lang.Object>getValues()Gets the parsed values.java.util.Map<FileEntityProviderConfig.Field,java.lang.Object>getValuesWithoutDefaults()Gets the values without defaults.java.lang.CharactergetVectorComponentDelimiter()delimiter for the different components of vector propertiesbooleanhasDefaultValue(FileEntityProviderConfig.Field field)Checks for default value.java.lang.BooleanhasKeys()indicates if the provided entities data have keysjava.lang.BooleanisDetectGzip()enable/disable automatic gzip compression detection when loading graphsbooleanisEmpty()Checks if it's empty.java.lang.BooleanisHeader()first line of file is meant for headers, e.g.static FileEntityProviderConfigparse(java.io.InputStream is, boolean strict, java.lang.String parentPath)Parses an input stream.static FileEntityProviderConfigparse(java.util.Map<java.lang.String,java.lang.Object> raw, boolean strict, java.lang.String parentPath)Parses a raw key/value mapping.static FileEntityProviderConfigparse(java.util.Properties props, boolean strict)Parses a properties file.java.lang.StringtoString()java.lang.StringtoString(boolean hideSensitiveData)-
Methods inherited from class oracle.pgx.config.AbstractFileEntityProviderConfig
getStoringOptions, hashCode, toEntityProviderConfigBuilder
-
Methods inherited from class oracle.pgx.config.EntityProviderConfig
getDestinationVertexKeyType, getPropertyDefault, getPropertyDimension, getPropertyName, getPropertyType, getSourceVertexKeyType, getValidatedLabel, isKeyMappingEnabled, isLabelLoadingEnabled, numProperties, supportsPropertyColumn, supportsPropertyColumn, supportsVectorProperties, supportsVectorProperties
-
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 FileEntityProviderConfig 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 FileEntityProviderConfig 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 FileEntityProviderConfig 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 FileEntityProviderConfig.Field[] getConfigFields()
-
getValues
public java.util.Map<FileEntityProviderConfig.Field,java.lang.Object> 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
public boolean hasDefaultValue(FileEntityProviderConfig.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<FileEntityProviderConfig.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:
toStringin classjava.lang.Object
-
toString
public java.lang.String toString(boolean hideSensitiveData)
-
getUris
public java.util.List<java.lang.String> getUris()
list of unified resource identifiers- Specified by:
getUrisin classAbstractFileEntityProviderConfig- Returns:
- the list of URIs
-
getKeyColumn
public java.lang.Object getKeyColumn()
name or index (starting from 1) of column corresponding to keys (for CSV format only)- Specified by:
getKeyColumnin classAbstractFileEntityProviderConfig
-
getSourceColumn
public java.lang.Object getSourceColumn()
name or index (starting from 1) of column corresponding to edge source (for CSV format only)- Specified by:
getSourceColumnin classAbstractFileEntityProviderConfig
-
getDestinationColumn
public java.lang.Object getDestinationColumn()
name or index (starting from 1) of column corresponding to edge destination (for CSV format only)- Specified by:
getDestinationColumnin classAbstractFileEntityProviderConfig
-
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:
getSeparatorin classAbstractFileEntityProviderConfig- 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:
isHeaderin classAbstractFileEntityProviderConfig- 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:
isDetectGzipin classAbstractFileEntityProviderConfig- Returns:
- true if GZip file automatic detection is enabled, false otherwise.
-
getStoring
public FileGraphStoringConfig getStoring()
storing-specific configuration
-
getName
public java.lang.String getName()
entity provider name- Specified by:
getNamein interfaceCommonLoadableConfig<ProviderFormat>- Overrides:
getNamein classAbstractFileEntityProviderConfig- Returns:
- the name of the provider
-
getLabel
public java.lang.String getLabel()
label for the entities loaded from this provider- Specified by:
getLabelin classEntityProviderConfig- Returns:
- the custom label
-
getFormat
public ProviderFormat getFormat()
provider format- Returns:
- the format
-
getProps
public java.util.List<GraphPropertyConfig> getProps()
specification of the properties associated with this entity provider- Specified by:
getPropsin classEntityProviderConfig- Returns:
- the list of vertex properties
-
getKeyType
public IdType getKeyType()
type of the keys- Specified by:
getKeyTypein classEntityProviderConfig- Returns:
- the key type
-
getSourceVertexProvider
public java.lang.String getSourceVertexProvider()
name of the source vertex provider to be used for this edge provider- Specified by:
getSourceVertexProviderin classEntityProviderConfig- Returns:
- the name of the source vertex provider
-
getDestinationVertexProvider
public java.lang.String getDestinationVertexProvider()
name of the destination vertex provider to be used for this edge provider- Specified by:
getDestinationVertexProviderin classEntityProviderConfig- Returns:
- the name of the destination vertex provider
-
getLoading
public ProviderLoadingConfig getLoading()
loading-specific configuration- Specified by:
getLoadingin classEntityProviderConfig- Returns:
- the loading configuration
-
hasKeys
public java.lang.Boolean hasKeys()
indicates if the provided entities data have keys- Specified by:
hasKeysin classEntityProviderConfig
-
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- Specified by:
getAttributesin interfaceCommonLoadableConfig<ProviderFormat>- Specified by:
getAttributesin classAbstractFileEntityProviderConfig- 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
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classAbstractFileEntityProviderConfig
-
-