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