Class DatasetExportQuery
This is a pure data-shape specification: it answers which aspects of a dataset
should be included in an export, and optionally how file metadata nested within
that dataset should be shaped. It deliberately does not address which
datasets to operate on (that is a selection concern at a higher level), nor
how much data to retrieve per call — pagination is a separate,
orthogonal concern expressed via a PageRequest at the method level.
File metadata shaping is optional: if no FileExportQuery is provided at build time,
FileExportQuery.none() is included, resulting in file metadata addition being skipped.
Instances are immutable and must be constructed via builder().
Use defaults() for the standard query with no special filtering and skipping files.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic DatasetExportQuery.Builderbuilder()Returns a builder for creating new queries.static DatasetExportQuery.Builderbuilder(DatasetExportQuery source) Creates a newDatasetExportQuery.Builderpre-populated with the state of the given query.static DatasetExportQuerydefaults()Returns the default query, which includes all dataset metadata with no special filtering, and defers file metadata shaping to method-level defaults.booleanReturns theFileExportQuerythat controls how file metadata nested within this dataset export should be shaped.inthashCode()Returns the dataset metadata predicates that control which aspects of the dataset are included in the export.toString()
-
Method Details
-
builder
Returns a builder for creating new queries.- Returns:
- a new
DatasetExportQuery.Builderinstance
-
builder
Creates a newDatasetExportQuery.Builderpre-populated with the state of the given query. This is useful for deriving a modified copy of the query without altering the original.- Parameters:
source- theDatasetExportQueryinstance to copy from- Returns:
- a new
DatasetExportQuery.Builderinstance pre-configured with the same predicates and file query as the providedsource
-
defaults
Returns the default query, which includes all dataset metadata with no special filtering, and defers file metadata shaping to method-level defaults.- Returns:
- the shared default
DatasetExportQueryinstance
-
predicates
Returns the dataset metadata predicates that control which aspects of the dataset are included in the export.- Returns:
- an unmodifiable set of
DatasetMetadataPredicates; nevernull
-
fileQuery
Returns theFileExportQuerythat controls how file metadata nested within this dataset export should be shaped.The default value is
FileExportQuery.none(), resulting in no file metadata being queried.- Returns:
- an
Optionalcontaining the file export query
-
equals
-
hashCode
public int hashCode() -
toString
-