Class AbstractFileEntityProviderConfig
java.lang.Object
oracle.pgx.config.AbstractConfig
oracle.pgx.config.EntityProviderConfig
oracle.pgx.config.AbstractFileEntityProviderConfig
- All Implemented Interfaces:
CommonLoadableConfig<ProviderFormat>, oracle.pgx.config.internal.ConvertibleToEntityProviderConfigBuilder
- Direct Known Subclasses:
FileEntityProviderConfig
Abstract super-class for all file-based provider configs
-
Field Summary
Fields inherited from class AbstractConfig
ENV_SEPARATOR, ENV_VARIABLE_PREFIX, SYSTEM_PROPERTY_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanabstract MapGet the file-system specific additional attributes needed to read/write the table dataabstract Objectname or index (starting from 1) of column corresponding to edge destination (for CSV format only)abstract List<? extends ForeignKeyColumnDescriptor> Get the destination key declaration associated with this entity provider config.abstract Objectname or index (starting from 1) of column corresponding to keys (for CSV format only)getName()Get the name of this provider configurationabstract StringGet the separator of this table configurationabstract Objectname or index (starting from 1) of column corresponding to edge source (for CSV format only)abstract List<? extends ForeignKeyColumnDescriptor> Get the source key declaration associated with this entity provider config.abstract FileGraphStoringConfigGet the storing configurationgetUris()Get the unified resource identifiers for the files with the table dataList<? extends ForeignKeyColumnDescriptor> Validate and get the source key declaration associated with this provider configuration.List<? extends ForeignKeyColumnDescriptor> Validate and get the source key declaration associated with this provider configuration.inthashCode()abstract BooleanWhether GZip file automatic detection is enabled or not.abstract BooleanisHeader()Whether the file has a header.Methods inherited from class EntityProviderConfig
getDestinationVertexKeyType, getDestinationVertexProvider, getKeyColumns, getKeyType, getLabel, getLoading, getPropertyDefault, getPropertyDimension, getPropertyName, getPropertyType, getProps, getSourceVertexKeyType, getSourceVertexProvider, getValidatedKeyColumns, getValidatedLabel, hasKeys, isKeyMappingEnabled, isLabelLoadingEnabled, numProperties, supportsPropertyColumn, supportsPropertyColumn, supportsVectorProperties, supportsVectorPropertiesMethods inherited from class AbstractConfig
getDefault, getValueFromEnvironment, getValueFromEnvironment, getValues, parseString, setSerializableMethods inherited from interface CommonLoadableConfig
createLocalDateFormat, createTimeFormat, createTimestampFormat, createTimestampWithTimezoneFormat, createTimeWithTimezoneFormat, getErrorHandling, getFormat, getKeystoreAlias, getLocalDateFormat, getTimeFormat, getTimestampFormat, getTimestampWithTimezoneFormat, getTimeWithTimezoneFormat, getVectorComponentDelimiter
-
Constructor Details
-
AbstractFileEntityProviderConfig
public AbstractFileEntityProviderConfig()
-
-
Method Details
-
getUris
-
getStoringOptions
Get the storing configuration- Returns:
- the storing configuration
-
getAttributes
Get the file-system specific additional attributes needed to read/write the table data- Returns:
- the map of attributes
-
getSeparator
Get the separator of this table configuration- Returns:
- the separator
-
isDetectGzip
Whether GZip file automatic detection is enabled or not.- Returns:
- true if GZip file automatic detection is enabled, false otherwise.
-
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
-
getKeyColumn
name or index (starting from 1) of column corresponding to keys (for CSV format only)- See Also:
-
getSourceColumn
name or index (starting from 1) of column corresponding to edge source (for CSV format only)- See Also:
-
getSourceKeyColumns
Get the source key declaration associated with this entity provider config. A source key is composed of one or more source key columns, each referring to one key column of the source vertex provider. UsegetValidatedSourceKeyColumns()()} instead of this function, as that function will also consider legacy configs.- Returns:
- Source key columns declared in the config.
- Since:
- 25.2.0
-
getValidatedSourceKeyColumns
Validate and get the source key declaration associated with this provider configuration. This function will use the source key returned by eithergetSourceKeyColumns()or legacy function.- Returns:
- A list of validated foreign key column descriptors.
- Since:
- 25.2.0
-
getDestinationColumn
name or index (starting from 1) of column corresponding to edge destination (for CSV format only)- See Also:
-
getDestinationKeyColumns
Get the destination key declaration associated with this entity provider config. A destination key is composed of one or more destination key columns, each referring to one key column of the destination vertex provider. UsegetValidatedDestinationKeyColumns()instead of this function, as that function will also consider legacy configs.- Returns:
- Destination key columns declared in the config.
- Since:
- 25.2.0
-
getValidatedDestinationKeyColumns
Validate and get the source key declaration associated with this provider configuration. This function will use the source key returned by eithergetDestinationKeyColumns()or legacy function.- Returns:
- A list of validated foreign key column descriptors.
- Since:
- 25.2.0
-
toEntityProviderConfigBuilder
-
getName
Description copied from class:EntityProviderConfigGet the name of this provider configuration- Specified by:
getNamein interfaceCommonLoadableConfig<ProviderFormat>- Specified by:
getNamein classEntityProviderConfig- Returns:
- the name of the provider
-
equals
- Overrides:
equalsin classEntityProviderConfig
-
hashCode
public int hashCode()- Overrides:
hashCodein classEntityProviderConfig
-