-
Notifications
You must be signed in to change notification settings - Fork 49
FEATURE: Support long type expiration time in v2 APIs
#1101
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
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,27 +40,28 @@ public class BTreeInsertAndGet<T> extends CollectionGet { | |
| private BKeyObject bKey; | ||
|
|
||
| public BTreeInsertAndGet(long bkey, byte[] eFlag, T value, boolean updateIfExist, | ||
| CollectionAttributes attributesForCreate) { | ||
| if (updateIfExist) { | ||
| this.collection = new BTreeUpsert<>(value, eFlag, RequestMode.GET_TRIM, attributesForCreate); | ||
| } else { | ||
| this.collection = new BTreeInsert<>(value, eFlag, RequestMode.GET_TRIM, attributesForCreate); | ||
| } | ||
| this.updateIfExist = updateIfExist; | ||
| this.bKey = new BKeyObject(bkey); | ||
| this.eHeadCount = 2; | ||
| this.eFlagIndex = 1; | ||
| CreateAttributes createAttributes) { | ||
| this(new BKeyObject(bkey), eFlag, value, updateIfExist, createAttributes); | ||
| } | ||
|
|
||
| public BTreeInsertAndGet(byte[] bkey, byte[] eFlag, T value, boolean updateIfExist, | ||
| CollectionAttributes attributesForCreate) { | ||
| CreateAttributes createAttributes) { | ||
| this(new BKeyObject(bkey), eFlag, value, updateIfExist, createAttributes); | ||
| } | ||
|
|
||
| private BTreeInsertAndGet(BKeyObject bKey, byte[] eFlag, T value, boolean updateIfExist, | ||
| CreateAttributes createOptionForCreate) { | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. μ 체μ μΌλ‘ CreateAttributesμ λ³μλͺ μ createAttributesλ‘ ν΅μΌ κ°λ₯νκ°μ?
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. λ€μ μκ°ν΄λ³΄λ attributesλ‘ ν΅μΌνλ κ² μ’μ κ² κ°μ΅λλ€. (CollectionAttributesμ μΆ©λ μμλ createAttributes μ¬μ©) |
||
| if (updateIfExist) { | ||
| this.collection = new BTreeUpsert<>(value, eFlag, RequestMode.GET_TRIM, attributesForCreate); | ||
| this.collection = new BTreeUpsert<>( | ||
| value, eFlag, RequestMode.GET_TRIM, createOptionForCreate | ||
| ); | ||
| } else { | ||
| this.collection = new BTreeInsert<>(value, eFlag, RequestMode.GET_TRIM, attributesForCreate); | ||
| this.collection = new BTreeInsert<>( | ||
| value, eFlag, RequestMode.GET_TRIM, createOptionForCreate | ||
| ); | ||
| } | ||
| this.updateIfExist = updateIfExist; | ||
| this.bKey = new BKeyObject(bkey); | ||
| this.bKey = bKey; | ||
| this.eHeadCount = 2; | ||
| this.eFlagIndex = 1; | ||
| } | ||
|
|
||
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.
javadoc μ λ ¬μ΄ νμν©λλ€. λ³κ²½ μ¬νλ€μ λν΄μλ§ νμΈν΄μ£ΌμΈμ
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.
μ¬κΈ°λ λ°μν΄μΌ ν©λλ€.