-
Notifications
You must be signed in to change notification settings - Fork 37
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
Add API guide #620
Add API guide #620
Conversation
@@ -0,0 +1,697 @@ | |||
# Java API Guide |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added Java API Guide for the new API.
|
||
Please see [Two-phase Commit Transactions](two-phase-commit-transactions.md). | ||
|
||
## Handle Exceptions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved the A Guide on How to Handle Exceptions
here.
docs/design.md
Outdated
### Clustering order | ||
|
||
As mentioned, records in Scalar DB are sorted by the clustering-key in a partition. | ||
You can specify the default sort orders of the clustering-key, that's called clustering orders, when you create tables. | ||
If the clustering-key consists of multiple columns, you can specify clustering order for each column. | ||
|
||
### Secondary index | ||
|
||
In Scalar DB, you can basically scan a table only using columns that are part of the primary key. | ||
Secondary Indexes in Scalar DB solve the need for querying columns that are not part of the primary key. | ||
You can create a secondary index on a single column on a table. | ||
Secondary indexes are used to scan a table using a column that is not normally queryable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added clustering order thing and secondary index thing here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, it looks good. It's a very complete and concise guide explaining Scalar DB capabilities.
I left some suggestions. Please have a look when you can.
Co-authored-by: Vincent Guilpain <vincent.guilpain@scalar-labs.com>
@Torch3333 Thank you for the suggestions! I fixed it based on your feedback in the latest commit. Please take a look again when you have time! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, LGTM.
I just left a last suggestion. Please take a look.
Co-authored-by: Vincent Guilpain <vincent.guilpain@scalar-labs.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looking good! Thank you!
Left minor comments.
docs/api-guide.md
Outdated
|
||
## Administrative operations | ||
|
||
This chapter explains how to execute administrative operations in Scalar DB. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This chapter explains how to execute administrative operations in Scalar DB. | |
This section explains how to execute administrative operations in Scalar DB. You can execute administrative operations programmatically as follows, but you can also execute those operations through [the Schema Loader](link). |
docs/api-guide.md
Outdated
@@ -0,0 +1,718 @@ | |||
# Java API Guide | |||
|
|||
This guide briefly explains how to use Scalar DB Java API. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's helpful to have indexes like below.
* [Administrative operations](link)
* [Transactional operations](link)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@brfrn169 Thank you for the update. But, the link seems not working.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@feeblefakie Sorry for that... 😞 I fixed the broken links. Please take a look again when you have time!
docs/api-guide.md
Outdated
|
||
## Transactional operations | ||
|
||
This chapter explains how to execute transactional operations in Scalar DB. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This chapter explains how to execute transactional operations in Scalar DB. | |
This section explains how to execute transactional operations in Scalar DB. |
@feeblefakie Thank you for taking a look at this! I fixed it based on your review. Please take a look again when you have time! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the update!
Sorry, I left additional comments that I realized in the second look.
@feeblefakie Thank you for the suggestions! I fixed it based on your feedback. Please take a look again when you have time! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left minor suggestions, but LGTM! Thank you!
Co-authored-by: Hiroyuki Yamada <mogwaing@gmail.com>
Since the next minor release (3.6) will have a lot of API changes (while preserving the backward compatibility), I think we should add an API guide for the new API. This PR adds it. Please take a look!