xuchuanyin created CARBONDATA-2890:
--------------------------------------
Summary: Use CarbonLoadModelBuilder instead of new CarbonLoadModel instance
Key: CARBONDATA-2890
URL:
https://issues.apache.org/jira/browse/CARBONDATA-2890 Project: CarbonData
Issue Type: Sub-task
Reporter: xuchuanyin
Currently to get an instance of CarbonLoadModel, we can:
1. directly new an instance and set the member one by one;
2. or use the CarbonLoadModelBuilder to build an instance
However some of the members of CarbonLoadModel (such as ColumnCompressor, tableName) are required in the following procedure.
For the 1st method, these members may be forgotten to initialize. While for the 2nd method, we can validate these members in the build method to ensure that these members are initialized.
So here I proposed to only use the CarbonLoadModelBuilder to instantiate a CarbonLoadModel.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)