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(java.util.Set<E> columns)
Return a new instance with the give (reduced) set of columnsjava.util.Set<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> java.util.Optional<LocalProperty<T>>
translate(java.util.function.Function<E,java.util.Optional<T>> translator)
default java.util.Optional<LocalProperty<E>>
withConstants(java.util.Set<E> constants)
Simplfies this LocalProperty provided that the specified inputs are constants
-
-
-
Method Detail
-
translate
<T> java.util.Optional<LocalProperty<T>> translate(java.util.function.Function<E,java.util.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 java.util.Optional<LocalProperty<E>> withConstants(java.util.Set<E> constants)
Simplfies this LocalProperty provided that the specified inputs are constants
-
constrain
default LocalProperty<E> constrain(java.util.Set<E> columns)
Return a new instance with the give (reduced) set of columns
-
getColumns
java.util.Set<E> getColumns()
-
-