Package oracle.pgx.config
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
public abstract class AbstractFileEntityProviderConfig extends EntityProviderConfig
Abstract super-class for all file-based provider configs
-
-
Field Summary
-
Fields inherited from class oracle.pgx.config.AbstractConfig
ENV_SEPARATOR, ENV_VARIABLE_PREFIX, SYSTEM_PROPERTY_PREFIX
-
-
Constructor Summary
Constructors Constructor Description AbstractFileEntityProviderConfig()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)abstract java.util.MapgetAttributes()Get the file-system specific additional attributes needed to read/write the table dataabstract java.lang.ObjectgetDestinationColumn()name or index (starting from 1) of column corresponding to edge destination (for CSV format only)abstract java.util.List<? extends ForeignKeyColumnDescriptor>getDestinationKeyColumns()Get the destination key declaration associated with this entity provider config.abstract java.lang.ObjectgetKeyColumn()name or index (starting from 1) of column corresponding to keys (for CSV format only)java.lang.StringgetName()Get the name of this provider configurationabstract java.lang.StringgetSeparator()Get the separator of this table configurationabstract java.lang.ObjectgetSourceColumn()name or index (starting from 1) of column corresponding to edge source (for CSV format only)abstract java.util.List<? extends ForeignKeyColumnDescriptor>getSourceKeyColumns()Get the source key declaration associated with this entity provider config.FileGraphStoringConfiggetStoringOptions()Get the storing configurationabstract java.util.List<java.lang.String>getUris()Get the unified resource identifiers for the files with the table datajava.util.List<? extends ForeignKeyColumnDescriptor>getValidatedDestinationKeyColumns()Validate and get the source key declaration associated with this provider configuration.java.util.List<? extends ForeignKeyColumnDescriptor>getValidatedSourceKeyColumns()Validate and get the source key declaration associated with this provider configuration.inthashCode()abstract java.lang.BooleanisDetectGzip()Whether GZip file automatic detection is enabled or not.abstract java.lang.BooleanisHeader()Whether the file has a header.FileEntityProviderConfigBuildertoEntityProviderConfigBuilder()-
Methods inherited from class oracle.pgx.config.EntityProviderConfig
getDestinationVertexKeyType, getDestinationVertexProvider, getKeyColumns, getKeyType, getLabel, getLoading, getPropertyDefault, getPropertyDimension, getPropertyName, getPropertyType, getProps, getSourceVertexKeyType, getSourceVertexProvider, getValidatedKeyColumns, getValidatedLabel, hasKeys, isKeyMappingEnabled, isLabelLoadingEnabled, numProperties, supportsPropertyColumn, supportsPropertyColumn, supportsVectorProperties, supportsVectorProperties
-
Methods inherited from class oracle.pgx.config.AbstractConfig
getDefault, getValueFromEnvironment, getValueFromEnvironment, getValues, parseString, setSerializable
-
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface oracle.pgx.config.CommonLoadableConfig
createLocalDateFormat, createTimeFormat, createTimestampFormat, createTimestampWithTimezoneFormat, createTimeWithTimezoneFormat, getErrorHandling, getFormat, getKeystoreAlias, getLocalDateFormat, getTimeFormat, getTimestampFormat, getTimestampWithTimezoneFormat, getTimeWithTimezoneFormat, getVectorComponentDelimiter
-
-
-
-
Method Detail
-
getUris
public abstract java.util.List<java.lang.String> getUris()
Get the unified resource identifiers for the files with the table data- Returns:
- the list of URIs
-
getStoringOptions
public FileGraphStoringConfig getStoringOptions()
Get the storing configuration- Returns:
- the storing configuration
-
getAttributes
public abstract java.util.Map getAttributes()
Get the file-system specific additional attributes needed to read/write the table data- Returns:
- the map of attributes
-
getSeparator
public abstract java.lang.String getSeparator()
Get the separator of this table configuration- Returns:
- the separator
-
isDetectGzip
public abstract java.lang.Boolean isDetectGzip()
Whether GZip file automatic detection is enabled or not.- Returns:
- true if GZip file automatic detection is enabled, false otherwise.
-
isHeader
public abstract java.lang.Boolean 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
public abstract java.lang.Object getKeyColumn()
name or index (starting from 1) of column corresponding to keys (for CSV format only)- See Also:
validating version of this API
-
getSourceColumn
public abstract java.lang.Object getSourceColumn()
name or index (starting from 1) of column corresponding to edge source (for CSV format only)- See Also:
validating version of this API
-
getSourceKeyColumns
@BetaApi public abstract java.util.List<? extends ForeignKeyColumnDescriptor> 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
@BetaApi public java.util.List<? extends ForeignKeyColumnDescriptor> 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
public abstract java.lang.Object getDestinationColumn()
name or index (starting from 1) of column corresponding to edge destination (for CSV format only)- See Also:
validating version of this API
-
getDestinationKeyColumns
@BetaApi public abstract java.util.List<? extends ForeignKeyColumnDescriptor> 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
@BetaApi public java.util.List<? extends ForeignKeyColumnDescriptor> 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
public FileEntityProviderConfigBuilder toEntityProviderConfigBuilder()
-
getName
public java.lang.String 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
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classEntityProviderConfig
-
hashCode
public int hashCode()
- Overrides:
hashCodein classEntityProviderConfig
-
-