-
Notifications
You must be signed in to change notification settings - Fork 47
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
INTERNAL: Remove reverse arg in bopGet and bopExtendedGet #861
Conversation
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.
리뷰 완료입니다.
0fa50c6
to
1296d7b
Compare
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.
리뷰 완료
@@ -26,6 +26,7 @@ public class BTreeGet extends CollectionGet { | |||
protected int offset = -1; | |||
protected int count = -1; | |||
protected ElementFlagFilter elementFlagFilter; | |||
private boolean reverse; |
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.
offset, count 필드처럼 reverse 필드는 false로 초기화
@@ -36,6 +37,7 @@ private BTreeGet(String range, | |||
this.elementFlagFilter = elementFlagFilter; | |||
this.eHeadCount = 2; | |||
this.eFlagIndex = 1; | |||
this.reverse = false; |
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.
앞에서 초기화하였으므로, 이 코드는 없어도 됨
@@ -52,24 +54,30 @@ public BTreeGet(byte[] bkey, | |||
|
|||
private BTreeGet(String range, int offset, int count, | |||
boolean delete, boolean dropIfEmpty, | |||
ElementFlagFilter elementFlagFilter) { | |||
ElementFlagFilter elementFlagFilter, boolean reverse) { |
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.
range, reverse, offset, count, .... 순서이면 좋겠습니다.
from, to 값을 <String 타입의 range 값, boolean 타입의 reverse 값>
으로 변환하여 보관한다고 보면 될 것 같습니다.
43fc516
to
09347eb
Compare
🔗 Related Issue
https://github.com/jam2in/arcus-works/issues/656
⌨️ What I did
private 접근 제어인 asyncBopGet, asyncBopExtendedGet의
reverse 인자를 제거하고
이를 BopGet 인스턴스의 isReverse로 대체한다.