Last active
November 17, 2015 17:00
-
-
Save guobingkun/9e273ca1e80563c37319 to your computer and use it in GitHub Desktop.
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
public class DruidCoordinatorConfig | |
{ | |
// | |
// skipping other exisiting configs | |
// | |
/* | |
I was thinking JsonConfigProvider.bind("druid.coordinator", DruidCoordinatorConfig.class) | |
could magically recursively deserialize DruidCoordinatorHadoopMergeConfig using properties | |
starting with "druid.coordinator.hadoopMerge". | |
*/ | |
@JsonProperty("hadoopMerge") | |
private DruidCoordinatorHadoopMergeConfig coordinatorHadoopMergeConfig; | |
} |
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
public class DruidCoordinatorHadoopMergeConfig | |
{ | |
@JsonProperty("on") | |
private boolean on = false; | |
@JsonProperty("keepGap") | |
private boolean keepGap = false; | |
@JsonProperty("tuningConfig") | |
private Map<String, Object> tuningConfig; | |
public boolean isOn() | |
{ | |
return on; | |
} | |
public boolean isKeepGap() | |
{ | |
return keepGap; | |
} | |
public Map<String, Object> getTuningConfig() | |
{ | |
return tuningConfig; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment