Package dev.vortex.api
Interface DataSource.ByteSize
- All Known Implementing Classes:
DataSource.ByteSize.Estimate,DataSource.ByteSize.Exact,DataSource.ByteSize.Unknown
- Enclosing class:
- DataSource
public static sealed interface DataSource.ByteSize
permits DataSource.ByteSize.Unknown, DataSource.ByteSize.Estimate, DataSource.ByteSize.Exact
Precision-aware byte size. See
DataSource.byteSize().-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordEstimated byte size; the actual value may differ.static final recordExact byte size.static final classByte size is not known. -
Method Summary
Modifier and TypeMethodDescriptionReturns the byte size as a long, orOptionalLong.empty()when unknown.
-
Method Details
-
asOptional
OptionalLong asOptional()Returns the byte size as a long, orOptionalLong.empty()when unknown.
-