Class ListOptions
Options that require an unsupported service capability fail with OpenDALException.Code.Unsupported. When globbing is supported, invalid glob patterns fail with OpenDALException.Code.ConfigInvalid. limit is a pagination hint that services may ignore even when Capability.listWithLimit is supported.
Optional reference fields default to null.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanInclude delete markers; defaultfalse.final StringFilter entries with a case-sensitive Unix shell style glob pattern.final longMaximum results per request (backend hint) to control memory and throttling.final booleanWhether to list recursively under the prefix; defaultfalse.final StringStart listing after this key, excluding the key itself.final booleanInclude object versions; defaultfalse. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
recursive
public final boolean recursiveWhether to list recursively under the prefix; defaultfalse.- See Also:
-
limit
public final long limitMaximum results per request (backend hint) to control memory and throttling.Services may ignore this pagination hint even when
Capability.listWithLimitis supported. The default of-1Lleaves the limit unset. Positive values must fit the native platform's unsigned pointer-sized integer.0L, other negative values, and values that do not fit fail withOpenDALException.Code.Unexpected.- See Also:
-
startAfter
-
versions
public final boolean versionsInclude object versions; defaultfalse.- See Also:
-
deleted
public final boolean deletedInclude delete markers; defaultfalse.- See Also:
-
glob
Filter entries with a case-sensitive Unix shell style glob pattern.The pattern is relative to the listed directory, or to the parent directory when the list path is a prefix without a trailing slash. Entries must also satisfy the list prefix. The pattern determines which depths can match, independently of
recursive.Requires
Capability.listWithGlob. OpenDAL simulates glob matching client-side when the service lacks native support. A simulated pattern spanning multiple directories also requiresCapability.listWithRecursivewhen combined withstartAfter,versions, ordeleted. Missing required capabilities fail withOpenDALException.Code.Unsupported. When globbing is supported, empty or malformed patterns fail withOpenDALException.Code.ConfigInvalid.- See Also:
-
-
Constructor Details
-
ListOptions
public ListOptions()
-