Package io.prestosql.spi.connector
Interface LocalProperty<E>
-
- All Known Implementing Classes:
ConstantProperty
,GroupingProperty
,SortingProperty
public interface LocalProperty<E>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default LocalProperty<E>
constrain(Set<E> columns)
Return a new instance with the give (reduced) set of columnsSet<E>
getColumns()
boolean
isOrderSensitive()
Returns true if reordering breaks this LocalPropertyboolean
isSimplifiedBy(LocalProperty<E> actual)
Return true if the actual LocalProperty can be used to simplify this LocalProperty<T> Optional<LocalProperty<T>>
translate(Function<E,Optional<T>> translator)
default Optional<LocalProperty<E>>
withConstants(Set<E> constants)
Simplfies this LocalProperty provided that the specified inputs are constants
-
-
-
Method Detail
-
translate
<T> Optional<LocalProperty<T>> translate(Function<E,Optional<T>> translator)
-
isOrderSensitive
boolean isOrderSensitive()
Returns true if reordering breaks this LocalProperty
-
isSimplifiedBy
boolean isSimplifiedBy(LocalProperty<E> actual)
Return true if the actual LocalProperty can be used to simplify this LocalProperty
-
withConstants
default Optional<LocalProperty<E>> withConstants(Set<E> constants)
Simplfies this LocalProperty provided that the specified inputs are constants
-
constrain
default LocalProperty<E> constrain(Set<E> columns)
Return a new instance with the give (reduced) set of columns
-
-