Package io.gdcc.spi.export
Enum Class FileMetadataPredicates
- All Implemented Interfaces:
Serializable,Comparable<FileMetadataPredicates>,Constable
Enum representing predicates for filtering file metadata during export operations.
Each predicate defines criteria for including or excluding specific types of files.
Conflicts between predicates are explicitly defined to prevent ambiguous or contradictory filtering rules.
Any predicates should follow the pattern (SKIP|ONLY|INCLUDE)_[ADJECTIVE]_[OBJECT].
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIncludes metadata for all files without restriction.For tabular data files, control if variable details are included or not.Only include files with public visibility.Only include tabular data files.Excludes metadata for all files. -
Method Summary
Modifier and TypeMethodDescriptionstatic Set<FileMetadataPredicates>checkConflicts(Set<FileMetadataPredicates> predicates) Checks for conflicts among the given set of export file predicates.booleanstatic FileMetadataPredicatesReturns the enum constant of this class with the specified name.static FileMetadataPredicates[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALL_FILES
Includes metadata for all files without restriction. Conflicts with any other predicate selecting files. -
SKIP_FILES
Excludes metadata for all files. Conflicts with any other file selecting predicate. -
ONLY_PUBLIC_FILES
Only include files with public visibility. Conflicts withALL_FILESandSKIP_FILES. -
ONLY_TABULAR_FILES
Only include tabular data files. Conflicts withALL_FILESandSKIP_FILES. -
INCLUDE_TABULAR_DATA_VARIABLES
For tabular data files, control if variable details are included or not. (That can be huge and heterogeneous data with slow DB queries!) It has no conflicting predicates, as it is about detail inclusion, not file selection.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
conflictsWith
-
checkConflicts
Checks for conflicts among the given set of export file predicates. A predicate is considered conflicting if it has a conflict relationship with any other predicate defined in theFileMetadataPredicatesenum.- Parameters:
predicates- the set of predicates to check for conflicts- Returns:
- an unmodifiable set of predicates from the input that conflict with at least one other predicate (empty if no conflict)
-