Diff
checker
文本
文本
圖像
文檔
Excel
文件夾
Legal
Enterprise
桌面版
定價
登入
下載 Diffchecker 桌面版
比較文本
尋找兩個文字檔案之間的差異
工具
歷史
即時編輯器
摺疊未變更行
關閉換行
檢視
拆分
統一
比對精度
智能
單詞
字符
語法突出顯示
選擇語法
忽略
文字轉換
前往第一個差異
編輯輸入
Diffchecker Desktop
執行Diffchecker最安全的方式。取得Diffchecker桌面應用程式:您的差異永遠不會離開您的電腦!
取得桌面版
Update rule change
建立於
5 年前
差異永不過期
清除
匯出
分享
解釋
16 刪除
行
總計
刪除
字符
總計
刪除
要繼續使用此功能,請升級到
Diff
checker
Pro
查看價格
60 行
全部複製
12 新增
行
總計
新增
字符
總計
新增
要繼續使用此功能,請升級到
Diff
checker
Pro
查看價格
58 行
全部複製
複製
已複製
複製
已複製
@Value.Immutable
public interface Config extends RelRule.Config {
public interface Config extends RelRule.Config {
複製
已複製
複製
已複製
Config DEFAULT =
EMPTY.as(Config.class
)
Config DEFAULT =
ImmutableProjectFilterTransposeRule.of(
)
.withOperandFor(LogicalProject.class, LogicalFilter.class)
.withOperandFor(LogicalProject.class, LogicalFilter.class)
.withPreserveExprCondition(expr -> false)
.withPreserveExprCondition(expr -> false)
.withWholeProject(false)
.withWholeProject(false)
.withWholeFilter(false);
.withWholeFilter(false);
Config PROJECT = DEFAULT.withWholeProject(true);
Config PROJECT = DEFAULT.withWholeProject(true);
Config PROJECT_FILTER = PROJECT.withWholeFilter(true);
Config PROJECT_FILTER = PROJECT.withWholeFilter(true);
@Override default ProjectFilterTransposeRule toRule() {
@Override default ProjectFilterTransposeRule toRule() {
return new ProjectFilterTransposeRule(this);
return new ProjectFilterTransposeRule(this);
}
}
/** Expressions that should be preserved in the projection. */
/** Expressions that should be preserved in the projection. */
複製
已複製
複製
已複製
@ImmutableBeans.Property
PushProjector.ExprCondition preserveExprCondition();
PushProjector.ExprCondition preserveExprCondition();
/** Sets {@link #preserveExprCondition()}. */
/** Sets {@link #preserveExprCondition()}. */
Config withPreserveExprCondition(PushProjector.ExprCondition condition);
Config withPreserveExprCondition(PushProjector.ExprCondition condition);
/** Whether to push whole expressions from the project;
/** Whether to push whole expressions from the project;
* if false (the default), only pushes references. */
* if false (the default), only pushes references. */
複製
已複製
複製
已複製
@
ImmutableBeans.Property
@
Value.
Default
default
boolean isWholeProject()
{
@ImmutableBeans.Boolean
Default
(false)
return false;
boolean isWholeProject()
;
}
/** Sets {@link #isWholeProject()}. */
/** Sets {@link #isWholeProject()}. */
Config withWholeProject(boolean wholeProject);
Config withWholeProject(boolean wholeProject);
/** Whether to push whole expressions from the filter;
/** Whether to push whole expressions from the filter;
* if false (the default), only pushes references. */
* if false (the default), only pushes references. */
複製
已複製
複製
已複製
@
ImmutableBeans.Property
@
Value.
Default
default
boolean isWholeFilter()
{
@ImmutableBeans.Boolean
Default
(false)
return false;
boolean isWholeFilter()
;
}
/** Sets {@link #isWholeFilter()}. */
/** Sets {@link #isWholeFilter()}. */
Config withWholeFilter(boolean wholeFilter);
Config withWholeFilter(boolean wholeFilter);
/** Defines an operand tree for the given classes. */
/** Defines an operand tree for the given classes. */
default Config withOperandFor(Class<? extends Project> projectClass,
default Config withOperandFor(Class<? extends Project> projectClass,
Class<? extends Filter> filterClass) {
Class<? extends Filter> filterClass) {
return withOperandSupplier(b0 ->
return withOperandSupplier(b0 ->
b0.operand(projectClass).oneInput(b1 ->
b0.operand(projectClass).oneInput(b1 ->
複製
已複製
複製
已複製
b1.operand(filterClass).anyInputs()))
b1.operand(filterClass).anyInputs()))
;
.as(Config.class)
;
}
}
/** Defines an operand tree for the given 3 classes. */
/** Defines an operand tree for the given 3 classes. */
default Config withOperandFor(Class<? extends Project> projectClass,
default Config withOperandFor(Class<? extends Project> projectClass,
Class<? extends Filter> filterClass,
Class<? extends Filter> filterClass,
Class<? extends RelNode> inputClass) {
Class<? extends RelNode> inputClass) {
return withOperandSupplier(b0 ->
return withOperandSupplier(b0 ->
b0.operand(projectClass).oneInput(b1 ->
b0.operand(projectClass).oneInput(b1 ->
b1.operand(filterClass).oneInput(b2 ->
b1.operand(filterClass).oneInput(b2 ->
複製
已複製
複製
已複製
b2.operand(inputClass).anyInputs())))
b2.operand(inputClass).anyInputs())))
;
.as(Config.class)
;
}
}
}
}
已保存差異
原始文本
開啟檔案
public interface Config extends RelRule.Config { Config DEFAULT = EMPTY.as(Config.class) .withOperandFor(LogicalProject.class, LogicalFilter.class) .withPreserveExprCondition(expr -> false) .withWholeProject(false) .withWholeFilter(false); Config PROJECT = DEFAULT.withWholeProject(true); Config PROJECT_FILTER = PROJECT.withWholeFilter(true); @Override default ProjectFilterTransposeRule toRule() { return new ProjectFilterTransposeRule(this); } /** Expressions that should be preserved in the projection. */ @ImmutableBeans.Property PushProjector.ExprCondition preserveExprCondition(); /** Sets {@link #preserveExprCondition()}. */ Config withPreserveExprCondition(PushProjector.ExprCondition condition); /** Whether to push whole expressions from the project; * if false (the default), only pushes references. */ @ImmutableBeans.Property @ImmutableBeans.BooleanDefault(false) boolean isWholeProject(); /** Sets {@link #isWholeProject()}. */ Config withWholeProject(boolean wholeProject); /** Whether to push whole expressions from the filter; * if false (the default), only pushes references. */ @ImmutableBeans.Property @ImmutableBeans.BooleanDefault(false) boolean isWholeFilter(); /** Sets {@link #isWholeFilter()}. */ Config withWholeFilter(boolean wholeFilter); /** Defines an operand tree for the given classes. */ default Config withOperandFor(Class<? extends Project> projectClass, Class<? extends Filter> filterClass) { return withOperandSupplier(b0 -> b0.operand(projectClass).oneInput(b1 -> b1.operand(filterClass).anyInputs())) .as(Config.class); } /** Defines an operand tree for the given 3 classes. */ default Config withOperandFor(Class<? extends Project> projectClass, Class<? extends Filter> filterClass, Class<? extends RelNode> inputClass) { return withOperandSupplier(b0 -> b0.operand(projectClass).oneInput(b1 -> b1.operand(filterClass).oneInput(b2 -> b2.operand(inputClass).anyInputs()))) .as(Config.class); } }
更改後文本
開啟檔案
@Value.Immutable public interface Config extends RelRule.Config { Config DEFAULT = ImmutableProjectFilterTransposeRule.of() .withOperandFor(LogicalProject.class, LogicalFilter.class) .withPreserveExprCondition(expr -> false) .withWholeProject(false) .withWholeFilter(false); Config PROJECT = DEFAULT.withWholeProject(true); Config PROJECT_FILTER = PROJECT.withWholeFilter(true); @Override default ProjectFilterTransposeRule toRule() { return new ProjectFilterTransposeRule(this); } /** Expressions that should be preserved in the projection. */ PushProjector.ExprCondition preserveExprCondition(); /** Sets {@link #preserveExprCondition()}. */ Config withPreserveExprCondition(PushProjector.ExprCondition condition); /** Whether to push whole expressions from the project; * if false (the default), only pushes references. */ @Value.Default default boolean isWholeProject() { return false; } /** Sets {@link #isWholeProject()}. */ Config withWholeProject(boolean wholeProject); /** Whether to push whole expressions from the filter; * if false (the default), only pushes references. */ @Value.Default default boolean isWholeFilter() { return false; } /** Sets {@link #isWholeFilter()}. */ Config withWholeFilter(boolean wholeFilter); /** Defines an operand tree for the given classes. */ default Config withOperandFor(Class<? extends Project> projectClass, Class<? extends Filter> filterClass) { return withOperandSupplier(b0 -> b0.operand(projectClass).oneInput(b1 -> b1.operand(filterClass).anyInputs())); } /** Defines an operand tree for the given 3 classes. */ default Config withOperandFor(Class<? extends Project> projectClass, Class<? extends Filter> filterClass, Class<? extends RelNode> inputClass) { return withOperandSupplier(b0 -> b0.operand(projectClass).oneInput(b1 -> b1.operand(filterClass).oneInput(b2 -> b2.operand(inputClass).anyInputs()))); } }
尋找差異