Package io.trino.spi.connector
Interface LocalProperty<E>
- All Known Implementing Classes:
ConstantProperty,GroupingProperty,SortingProperty
public sealed interface LocalProperty<E>
permits GroupingProperty<E>, SortingProperty<E>, ConstantProperty<E>
-
Method Summary
Modifier and TypeMethodDescriptiondefault LocalProperty<E>Return a new instance with the give (reduced) set of columnsbooleanReturns true if reordering breaks this LocalPropertybooleanisSimplifiedBy(LocalProperty<E> actual) Return true if the actual LocalProperty can be used to simplify this LocalProperty<T> Optional<LocalProperty<T>>default Optional<LocalProperty<E>>withConstants(Set<E> constants) Simplfies this LocalProperty provided that the specified inputs are constants
-
Method Details
-
translate
-
isOrderSensitive
boolean isOrderSensitive()Returns true if reordering breaks this LocalProperty -
isSimplifiedBy
Return true if the actual LocalProperty can be used to simplify this LocalProperty -
withConstants
Simplfies this LocalProperty provided that the specified inputs are constants -
constrain
Return a new instance with the give (reduced) set of columns -
getColumns
-