public BTreeDelete(byte[] bkey, boolean noreply, boolean dropIfEmpty, ElementMultiFlagsFilter elementMultiFlagsFilter) { this.range = BTreeUtil.toHex(bkey); this.noreply = noreply; this.dropIfEmpty = dropIfEmpty; this.elementFlagFilter = (ElementFlagFilter) elementMultiFlagsFilter; }
/** * get bkey * * @return bkey by hex (e.g. 0x01) */ public String getBkeyByHex() { return BTreeUtil.toHex(bkey); }
@Override public String toString() { return "SMGetElement {KEY:" + key + ", BKEY:" + ((bytebkey == null) ? bkey : BTreeUtil.toHex(bytebkey)) + ", VALUE:" + value + "}"; }
public BTreeGet(byte[] from, byte[] to, int offset, int count, boolean delete, boolean dropIfEmpty, ElementFlagFilter elementFlagFilter) { this.headerCount = 2; this.range = BTreeUtil.toHex(from) + ".." + BTreeUtil.toHex(to); this.offset = offset; this.count = count; this.delete = delete; this.dropIfEmpty = dropIfEmpty; this.elementFlagFilter = elementFlagFilter; }
public BTreeDelete(byte[] from, byte[] to, int count, boolean noreply, boolean dropIfEmpty, ElementMultiFlagsFilter elementMultiFlagsFilter) { this.range = BTreeUtil.toHex(from) + ".." + BTreeUtil.toHex(to); this.count = count; this.noreply = noreply; this.dropIfEmpty = dropIfEmpty; this.elementFlagFilter = (ElementFlagFilter) elementMultiFlagsFilter; }
public String getElementFlagByHex() { return BTreeUtil.toHex(elementFlag); } }
public BTreeSMGetWithByteTypeBkey(List<String> keyList, byte[] from, byte[] to, ElementFlagFilter eFlagFilter, int count, SMGetMode smgetMode) { this.keyList = keyList; this.range = BTreeUtil.toHex(from) + ".." + BTreeUtil.toHex(to); this.eFlagFilter = eFlagFilter; this.count = count; this.smgetMode = smgetMode; this.reverse = BTreeUtil.compareByteArraysInLexOrder(from, to) > 0; }
public BTreeSMGetWithByteTypeBkeyOld(List<String> keyList, byte[] from, byte[] to, ElementFlagFilter eFlagFilter, int offset, int count) { this.keyList = keyList; this.range = BTreeUtil.toHex(from) + ".." + BTreeUtil.toHex(to); this.eFlagFilter = eFlagFilter; this.offset = offset; this.count = count; this.reverse = BTreeUtil.compareByteArraysInLexOrder(from, to) > 0; }
protected BTreeGetBulkImpl(List<String> keyList, byte[] from, byte[] to, ElementFlagFilter eFlagFilter, int offset, int count) { this.keyList = keyList; this.range = BTreeUtil.toHex(from) + ".." + BTreeUtil.toHex(to); this.eFlagFilter = eFlagFilter; this.offset = offset; this.count = count; this.reverse = BTreeUtil.compareByteArraysInLexOrder(from, to) > 0; }
public String getBKeyAsString() { if (BKeyType.LONG == type) { return String.valueOf(longBKey); } else if (BKeyType.BYTEARRAY == type) { return BTreeUtil.toHex(byteArrayBKey.getBytes()); } else { return null; } }
@Override public CollectionFuture<Boolean> asyncBopInsert(String key, byte[] bkey, byte[] eFlag, Object value, CollectionAttributes attributesForCreate) { BTreeStore<Object> bTreeStore = new BTreeStore<Object>(value, eFlag, (attributesForCreate != null), null, attributesForCreate); return asyncCollectionStore(key, BTreeUtil.toHex(bkey), bTreeStore, collectionTranscoder); }
@Override public CollectionFuture<Long> asyncBopDecr(String key, byte[] subkey, int by) { CollectionMutate collectionMutate = new BTreeMutate(Mutator.decr, by); return asyncCollectionMutate(key, BTreeUtil.toHex(subkey), collectionMutate); }
@Override public <T> CollectionFuture<Boolean> asyncBopUpsert(String key, byte[] bkey, byte[] elementFlag, T value, CollectionAttributes attributesForCreate, Transcoder<T> tc) { BTreeUpsert<T> bTreeStore = new BTreeUpsert<T>(value, elementFlag, (attributesForCreate != null), null, attributesForCreate); return asyncCollectionUpsert(key, BTreeUtil.toHex(bkey), bTreeStore, tc); }
@Override public CollectionFuture<Long> asyncBopIncr(String key, byte[] subkey, int by) { CollectionMutate collectionMutate = new BTreeMutate(Mutator.incr, by); return asyncCollectionMutate(key, BTreeUtil.toHex(subkey), collectionMutate); }
@Override public CollectionFuture<Long> asyncBopIncr(String key, byte[] subkey, int by, long initial, byte[] eFlag) { CollectionMutate collectionMutate = new BTreeMutate(Mutator.incr, by, initial, eFlag); return asyncCollectionMutate(key, BTreeUtil.toHex(subkey), collectionMutate); }
@Override public CollectionFuture<Boolean> asyncBopUpdate(String key, byte[] bkey, ElementFlagUpdate eFlagUpdate, Object value) { BTreeUpdate<Object> collectionUpdate = new BTreeUpdate<Object>( value, eFlagUpdate, false); return asyncCollectionUpdate(key, BTreeUtil.toHex(bkey), collectionUpdate, collectionTranscoder); }
@Override public <T> CollectionFuture<Boolean> asyncBopUpdate(String key, byte[] bkey, ElementFlagUpdate eFlagUpdate, T value, Transcoder<T> tc) { BTreeUpdate<T> collectionUpdate = new BTreeUpdate<T>(value, eFlagUpdate, false); return asyncCollectionUpdate(key, BTreeUtil.toHex(bkey), collectionUpdate, tc); }
@Override public CollectionFuture<Boolean> asyncBopUpsert(String key, byte[] bkey, byte[] elementFlag, Object value, CollectionAttributes attributesForCreate) { BTreeUpsert<Object> bTreeStore = new BTreeUpsert<Object>(value, elementFlag, (attributesForCreate != null), null, attributesForCreate); return asyncCollectionUpsert(key, BTreeUtil.toHex(bkey), bTreeStore, collectionTranscoder); }