Package com.darkcollective.relix.cost
Interface BoundednessSource
- All Known Implementing Classes:
GeneratorBoundednessSource,RelationBoundedness
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Supplies the
Boundedness of a leaf relation by name — the one
piece of boundedness that is not structural but depends on what the leaf
actually is.
Most leaves are Boundedness.BOUNDED — files, database tables, inline
and catalog relations, finite generators — and ALL_BOUNDED is the right
source for a caller that knows it reads only those. A generator source answers
for itself through this seam (GeneratorBoundednessSource):
Naturals and Primes report Boundedness.UNBOUNDED.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BoundednessSourceA source under which every leaf relation isBoundedness.BOUNDED. -
Method Summary
Modifier and TypeMethodDescriptionboundednessOf(String relationName) Returns the boundedness of the leaf relation namedrelationName.
-
Field Details
-
ALL_BOUNDED
A source under which every leaf relation isBoundedness.BOUNDED.
-
-
Method Details
-
boundednessOf
Returns the boundedness of the leaf relation namedrelationName.- Parameters:
relationName- the leaf relation name; never null- Returns:
- its boundedness; never null
-