You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by "xubo245 (JIRA)" <ji...@apache.org> on 2018/11/12 08:36:00 UTC

[jira] [Updated] (CARBONDATA-3093) Provide property builder for carbon properties.

     [ https://issues.apache.org/jira/browse/CARBONDATA-3093?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

xubo245 updated CARBONDATA-3093:
--------------------------------
    Summary: Provide property builder for carbon properties.  (was: Refactor dynamic configuration)

> Provide property builder for carbon properties.
> -----------------------------------------------
>
>                 Key: CARBONDATA-3093
>                 URL: https://issues.apache.org/jira/browse/CARBONDATA-3093
>             Project: CarbonData
>          Issue Type: Sub-task
>    Affects Versions: 1.5.1
>            Reporter: xubo245
>            Assignee: xubo245
>            Priority: Major
>
> Optimize the String implementation, we can provide property builder for it, then can use it in CarbonCommonConstant to replace current String implementation. 
> {code:java}
> class Property<T> { 
>    String name; 
>    T value; 
>    T default; 
>    String doc; 
>    boolean dynamicConfigurable; 
>    static PropertyBuilder<String> buildStringProperty() {…} 
> } 
> {code}
> For example 
> {code:java}
> public static final Property CARBON_BAD_RECORDS_ACTION = Property.buildStringProperty(). 
>         .name(“carbon.bad.records.action”) 
>         .default(“FAIL”) 
>         .doc(“keep the same description as .md file”) 
>         .dynamic(true) 
>         .build() 
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)