Package io.gdcc.spi.export
Class FileExportQuery
java.lang.Object
io.gdcc.spi.export.FileExportQuery
Defines what file metadata to retrieve and at what level of detail
for file-oriented export operations.
This is a pure data-shape specification: it answers which files should be included
and how much detail about them should be fetched. It deliberately does not address
how much data to retrieve per call — pagination is a separate,
orthogonal concern expressed via a PageRequest at the method level.
A FileExportQuery may be used standalone in file-centric export methods,
or composed inside a DatasetExportQuery to specify how file metadata
should be shaped within a dataset export.
Instances are immutable and must be constructed via builder() or cloned using builder(FileExportQuery).
Use all() for the standard "all files" query with no special filtering.
Use none() for the standard "no files" query.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic FileExportQueryall()Get a simple query: "include all files without filtering any nor including special details"static FileExportQuery.Builderbuilder()Returns a builder for creating new queries.static FileExportQuery.Builderbuilder(FileExportQuery source) Creates a newBuilderinstance initialized with the properties of the givenFileExportQuery.booleaninthashCode()static FileExportQuerynone()Get a simple query: "skip all files"Returns the file metadata predicates that control which files are included and what level of detail is fetched for each.booleanrequires(FileMetadataPredicates predicate) Determine if this query was built requiring a certainFileMetadataPredicates.toString()
-
Method Details
-
builder
Returns a builder for creating new queries. -
builder
Creates a newBuilderinstance initialized with the properties of the givenFileExportQuery.- Parameters:
source- theFileExportQueryinstance from which to copy properties- Returns:
- a new
Builderinstance with properties copied from the provided query
-
all
Get a simple query: "include all files without filtering any nor including special details"- Returns:
ALL
-
none
Get a simple query: "skip all files"- Returns:
NONE
-
predicates
Returns the file metadata predicates that control which files are included and what level of detail is fetched for each.- Returns:
- an unmodifiable set of
FileMetadataPredicates; nevernull
-
requires
Determine if this query was built requiring a certainFileMetadataPredicates.- Parameters:
predicate- to check for- Returns:
- true if required, false otherwise
-
equals
-
hashCode
public int hashCode() -
toString
-