Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HOTFIX] Optimize the code style in csdk/sdk markdown doc #3030

Closed
wants to merge 3 commits into from
Closed

[HOTFIX] Optimize the code style in csdk/sdk markdown doc #3030

wants to merge 3 commits into from

Conversation

lamberken
Copy link
Member

Be sure to do all of the following checklist to help us incorporate
your contribution quickly and easily:

  • Any interfaces changed? NO

  • Any backward compatibility impacted? NO

  • Document update required? YES

  • Testing done YES
    Please provide details on
    - Whether new unit test cases have been added or why no new tests are required?
    - How it is tested? Please attach test report.
    - Is it a performance related change? Please attach the performance test report.
    - Any additional information to help reviewers in testing this change.

  • For large changes, please consider breaking it into sub-tasks under an umbrella JIRA. OK

@CarbonDataQA
Copy link

Build Failed with Spark 2.2.1, Please check CI http://95.216.28.178:8080/job/ApacheCarbonPRBuilder1/2253/

@CarbonDataQA
Copy link

Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/2046/

@CarbonDataQA
Copy link

Build Success with Spark 2.3.2, Please check CI http://136.243.101.176:8080/job/carbondataprbuilder2.3/10298/

@xubo245
Copy link
Contributor

xubo245 commented Dec 28, 2018

retest this please

@CarbonDataQA
Copy link

Build Success with Spark 2.2.1, Please check CI http://95.216.28.178:8080/job/ApacheCarbonPRBuilder1/2265/

@CarbonDataQA
Copy link

Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/2061/

@CarbonDataQA
Copy link

Build Success with Spark 2.3.2, Please check CI http://136.243.101.176:8080/job/carbondataprbuilder2.3/10314/


```
/**
* Updates the hadoop configuration with the given key value
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please optimize it。

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please optimize it。

thanks 👍

*/
jobjectArray readNextBatchRow();
/**
* read Next Batch Row
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please optimize this one.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please optimize this one.

thanks for review, I can not get your point,

@xubo245
Copy link
Contributor

xubo245 commented Dec 29, 2018

add to whitelist

@CarbonDataQA
Copy link

Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/2073/

@CarbonDataQA
Copy link

Build Success with Spark 2.2.1, Please check CI http://95.216.28.178:8080/job/ApacheCarbonPRBuilder1/2278/

@CarbonDataQA
Copy link

Build Success with Spark 2.3.2, Please check CI http://136.243.101.176:8080/job/carbondataprbuilder2.3/10327/

@chenliang613
Copy link
Contributor

LGTM

@CarbonDataQA
Copy link

Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/2080/

@CarbonDataQA
Copy link

Build Success with Spark 2.3.2, Please check CI http://136.243.101.176:8080/job/carbondataprbuilder2.3/10334/

@CarbonDataQA
Copy link

Build Success with Spark 2.2.1, Please check CI http://95.216.28.178:8080/job/ApacheCarbonPRBuilder1/2285/

*/
jobject builder(JNIEnv *env, char *path, char *tableName);
/**
* create a CarbonReaderBuilder object for building carbonReader,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

create to Create

jobject builder(JNIEnv *env, char *path, char *tableName);
/**
* create a CarbonReaderBuilder object for building carbonReader,
* CarbonReaderBuilder object can configure different parameter
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove one blank before 'can'

* */
void builder(JNIEnv *env, char *path);
/**
* create a CarbonReaderBuilder object for building carbonReader,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

create to Create

**/
jobject withHadoopConf(int argc, char *argv[]);
/**
* build carbon reader with argument vector
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

build to Build

jobject withHadoopConf(int argc, char *argv[]);
/**
* build carbon reader with argument vector
* it support multiple parameter
Copy link
Contributor

@zzcclp zzcclp Dec 29, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

support to supports
parameter to paramters

jobject build();
/**
* build carbonReader object for reading data
* it support read data from load disk
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

build to Build
recommend: it supports to read data from load disk

*/
jobject readNextRow();
/**
* read next carbonRow from data
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

read to Read

*/
jboolean close();
/**
* close the carbon reader
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

close to Close

*/
void withLoadOption(char *key, char *value);
/**
* create a CarbonWriterBuilder object for building carbonWriter,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

create to Create


```
/**
* sets the list of columns that needs to be in sorted order
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sets to Set


```
/**
* configure the schema with json style schema
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

configure to Configure

*/
void taskNo(long taskNo);
/**
* sets the taskNo for the writer. CSDKs concurrently running
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sets to Set

*/
void uniqueIdentifier(long timestamp);
/**
* to set the timestamp in the carbondata and carbonindex index files
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'to set' to Set

*/
void build();
/**
* build carbonWriter object for writing data
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

build to Build

@zzcclp
Copy link
Contributor

zzcclp commented Dec 29, 2018

There are some other capitalization problems, please check and fix.

@lamberken
Copy link
Member Author

There are some other capitalization problems, please check and fix.

thanks for detail review. I have update the doc

@CarbonDataQA
Copy link

Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/2083/

@CarbonDataQA
Copy link

Build Success with Spark 2.2.1, Please check CI http://95.216.28.178:8080/job/ApacheCarbonPRBuilder1/2288/

@CarbonDataQA
Copy link

Build Success with Spark 2.3.2, Please check CI http://136.243.101.176:8080/job/carbondataprbuilder2.3/10337/

@xubo245
Copy link
Contributor

xubo245 commented Jan 4, 2019

LGTM! Thanks for your contribution!

@asfgit asfgit closed this in 81bf02f Jan 4, 2019
asfgit pushed a commit that referenced this pull request Jan 21, 2019
optimize backoff csdk-guide & sdk-guide doc code style

This closes #3030
qiuchenjian pushed a commit to qiuchenjian/carbondata that referenced this pull request Jun 14, 2019
optimize backoff csdk-guide & sdk-guide doc code style

This closes apache#3030
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants