[jira] [Created] (CARBONDATA-3092) Refactor dynamic configuration

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (CARBONDATA-3092) Refactor dynamic configuration

Akash R Nilugal (Jira)
xubo245 created CARBONDATA-3092:
-----------------------------------

             Summary: Refactor dynamic configuration
                 Key: CARBONDATA-3092
                 URL: https://issues.apache.org/jira/browse/CARBONDATA-3092
             Project: CarbonData
          Issue Type: Improvement
    Affects Versions: 1.5.1
            Reporter: xubo245
            Assignee: xubo245


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)