Class FileExportQuery

java.lang.Object
io.gdcc.spi.export.FileExportQuery

public final class FileExportQuery extends Object
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(). Use defaults() for the standard all-files query with no special filtering.

See Also:
  • Method Details

    • builder

      public static FileExportQuery.Builder builder()
      Returns a builder for creating new queries.
    • defaults

      public static FileExportQuery defaults()
      Returns a default query, which includes all files without filtering or detail restrictions.
    • getFilePredicates

      public Set<FileMetadataPredicates> getFilePredicates()
      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; never null
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object