Class RhsRewriteCandidate
- java.lang.Object
-
- org.apache.druid.segment.join.filter.rewrite.RhsRewriteCandidate
-
public class RhsRewriteCandidate extends Object
A candidate is an RHS column that appears in a filter, along with the value being filtered on, plus the joinable clause associated with the table that the RHS column is from.
-
-
Constructor Summary
Constructors Constructor Description RhsRewriteCandidate(JoinableClause joinableClause, String rhsColumn, String valueForRewrite, boolean isDirectRewrite)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
JoinableClause
getJoinableClause()
String
getRhsColumn()
String
getValueForRewrite()
int
hashCode()
boolean
isDirectRewrite()
A direct rewrite occurs when we filter on an RHS column that is also part of a join equicondition.
-
-
-
Constructor Detail
-
RhsRewriteCandidate
public RhsRewriteCandidate(@Nonnull JoinableClause joinableClause, String rhsColumn, @Nullable String valueForRewrite, boolean isDirectRewrite)
-
-
Method Detail
-
getJoinableClause
@Nonnull public JoinableClause getJoinableClause()
-
getRhsColumn
public String getRhsColumn()
-
isDirectRewrite
public boolean isDirectRewrite()
A direct rewrite occurs when we filter on an RHS column that is also part of a join equicondition. For example, if we have the filter (j.x = 'hello') and the join condition is (y = j.x), we can directly rewrite the j.x filter to (y = 'hello').
-
-