-
Notifications
You must be signed in to change notification settings - Fork 22
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
Support table concept in core module #155
Conversation
senyer
commented
Sep 2, 2019
- Design table concept structure
- implements createTable()
- implements append() //TODO:need to improve
- implements getTableByName()
- implements query() //TODO:need to improve
- implements drop()
- implements verifyLegitimacy()
- implements clearTable()
- implements clear()
Reduce duplicate code
# Conflicts: # server/src/main/java/org/dst/server/service/DstListServiceImpl.java # server/src/main/proto/list_pb.proto # test/src/test/java/test/org/dst/core/KVStoreTest.java # test/src/test/java/test/org/dst/core/operator/KVSListTest.java
# Conflicts: # test/src/test/java/test/org/dst/core/KVStoreTest.java
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.
- Add comments for you public class to explain about more details of the classes, like some exception classes.
common/src/main/java/org/dst/exception/IncorrectRecordFormatException.java
Outdated
Show resolved
Hide resolved
common/src/main/java/org/dst/exception/IncorrectRecordFormatException.java
Outdated
Show resolved
Hide resolved
common/src/main/java/org/dst/exception/IncorrectRecordFormatException.java
Outdated
Show resolved
Hide resolved
common/src/main/java/org/dst/exception/IncorrectRecordFormatException.java
Outdated
Show resolved
Hide resolved
common/src/main/java/org/dst/exception/PrimaryKeyNotUniqueException.java
Outdated
Show resolved
Hide resolved
common/src/main/java/org/dst/exception/DuplicatedPrimaryKeyException.java
Outdated
Show resolved
Hide resolved
common/src/main/java/org/dst/exception/IncorrectRecordFormatException.java
Outdated
Show resolved
Hide resolved
common/src/main/java/org/dst/exception/IncorrectTableFormatException.java
Outdated
Show resolved
Hide resolved
common/src/main/java/org/dst/exception/RepeatCreateTableException.java
Outdated
Show resolved
Hide resolved
common/src/main/java/org/dst/exception/TableNotFoundException.java
Outdated
Show resolved
Hide resolved
|
||
private boolean index = false; | ||
|
||
public Field() { |
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.
Why we need this ctor?
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.
If not explicitly declared ,we can't use this structure function
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 left some comments about the doc comments. Please also address other comments.
# Conflicts: # common/src/main/java/org/dst/common/protobuf/common_pb.proto # core/src/main/java/org/dst/core/operatorImpl/DstTableImpl.java
common/src/main/java/org/dst/common/exception/DuplicatedPrimaryKeyException.java
Outdated
Show resolved
Hide resolved
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.
Looks very good to me now. Nice job!