Package oracle.pgx.config
Enum ProviderFormat
- java.lang.Object
-
- java.lang.Enum<ProviderFormat>
-
- oracle.pgx.config.ProviderFormat
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ProviderFormat>
public enum ProviderFormat extends java.lang.Enum<ProviderFormat>
Data Format for an entity provider.- See Also:
- "the documentation for detailed specifications of each format."
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isFileFormat()
Check if format is a file format.boolean
isTextFormat()
Check if format is a text format.static ProviderFormat
parseFormat(java.lang.String input)
Parses a provider format given as stringboolean
supportsPropertyColumn()
Check if format support having a column indication for propertiesboolean
supportsPropertyConversion()
boolean
supportsVectorProperties()
Check if format support having vector properties or notjava.lang.String
toKey()
java.lang.String
toString()
static ProviderFormat
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ProviderFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PGB
public static final ProviderFormat PGB
PGX Binary File Format
-
RDBMS
public static final ProviderFormat RDBMS
Relational database Format
-
CSV
public static final ProviderFormat CSV
Comma-Separated Values (CSV) Format
-
ES
public static final ProviderFormat ES
Elasticsearch database Format
-
-
Method Detail
-
values
public static ProviderFormat[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ProviderFormat c : ProviderFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProviderFormat valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
isFileFormat
public boolean isFileFormat()
Check if format is a file format.- Returns:
- true if the format is loading the data from files
-
isTextFormat
public boolean isTextFormat()
Check if format is a text format.- Returns:
- whether the format is a text format
-
supportsVectorProperties
public boolean supportsVectorProperties()
Check if format support having vector properties or not- Returns:
true
if the format supports vector properties,false
otherwise
-
supportsPropertyColumn
public boolean supportsPropertyColumn()
Check if format support having a column indication for properties- Returns:
true
if the format supports property columns,false
otherwise
-
supportsPropertyConversion
public boolean supportsPropertyConversion()
-
toKey
public java.lang.String toKey()
- Returns:
- JSON key representation of this format
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<ProviderFormat>
-
parseFormat
public static ProviderFormat parseFormat(java.lang.String input)
Parses a provider format given as string- Parameters:
input
- the input string- Returns:
- the format
-
-