-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from dsyzhu/app
Add PlanProgramCompileOptions so that customers can choose different strategies to fit their usage
- Loading branch information
Showing
8 changed files
with
118 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
...in/java/com/yahoo/yqlplus/engine/internal/compiler/streams/PlanProgramCompileOptions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package com.yahoo.yqlplus.engine.internal.compiler.streams; | ||
|
||
/** | ||
* Created by daisyzhu on 4/17/20. | ||
*/ | ||
public class PlanProgramCompileOptions { | ||
|
||
public static final PlanProgramCompileOptions DEFAULT_OPTIONS = new PlanProgramCompileOptions.PlanProgramOptionsBuilder().build(); | ||
|
||
private boolean keepMergeSequential; //enable this option merge tables will be sequential | ||
|
||
private PlanProgramCompileOptions(PlanProgramOptionsBuilder builder) { | ||
this.keepMergeSequential = builder.keepMergeSequential; | ||
} | ||
|
||
public boolean isKeepMergeSequential() { | ||
return keepMergeSequential; | ||
} | ||
|
||
public static final class PlanProgramOptionsBuilder { | ||
private boolean keepMergeSequential; | ||
public PlanProgramOptionsBuilder keepMergeSequential(boolean keepMergeSequential) { | ||
this.keepMergeSequential = keepMergeSequential; | ||
return this; | ||
} | ||
|
||
public PlanProgramCompileOptions build() { | ||
return new PlanProgramCompileOptions(this); | ||
} | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "PlanProgramCompileOptions{" + | ||
"keepMergeSequential=" + keepMergeSequential + | ||
'}'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters