Package io.trino.spi.connector
Class ConstantProperty<E>
- java.lang.Object
-
- io.trino.spi.connector.ConstantProperty<E>
-
- All Implemented Interfaces:
LocalProperty<E>
public final class ConstantProperty<E> extends Object implements LocalProperty<E>
-
-
Constructor Summary
Constructors Constructor Description ConstantProperty(E column)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
E
getColumn()
Set<E>
getColumns()
int
hashCode()
boolean
isOrderSensitive()
Returns true if reordering breaks this LocalPropertyboolean
isSimplifiedBy(LocalProperty<E> known)
Return true if the actual LocalProperty can be used to simplify this LocalPropertyString
toString()
<T> Optional<LocalProperty<T>>
translate(Function<E,Optional<T>> translator)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.trino.spi.connector.LocalProperty
constrain, withConstants
-
-
-
-
Constructor Detail
-
ConstantProperty
public ConstantProperty(E column)
-
-
Method Detail
-
isOrderSensitive
public boolean isOrderSensitive()
Description copied from interface:LocalProperty
Returns true if reordering breaks this LocalProperty- Specified by:
isOrderSensitive
in interfaceLocalProperty<E>
-
getColumn
public E getColumn()
-
getColumns
public Set<E> getColumns()
- Specified by:
getColumns
in interfaceLocalProperty<E>
-
translate
public <T> Optional<LocalProperty<T>> translate(Function<E,Optional<T>> translator)
- Specified by:
translate
in interfaceLocalProperty<E>
-
isSimplifiedBy
public boolean isSimplifiedBy(LocalProperty<E> known)
Description copied from interface:LocalProperty
Return true if the actual LocalProperty can be used to simplify this LocalProperty- Specified by:
isSimplifiedBy
in interfaceLocalProperty<E>
-
-