@Override public boolean equals(Object obj) { if (obj != null && obj instanceof ExtendedDirectoryLayer) { ExtendedDirectoryLayer that = (ExtendedDirectoryLayer)obj; return baseSubspace.equals(that.baseSubspace) && this.database.equals(that.database); } return false; }
public KeyValueCursor build() { if (lowBytes == null) { lowBytes = subspace.pack(); } if (highBytes == null) { highBytes = subspace.pack(); } if (lowEndpoint == null) { lowEndpoint = EndpointType.TREE_START; } if (highEndpoint == null) { highEndpoint = EndpointType.TREE_END; } return new KeyValueCursor(context, subspace, lowBytes, highBytes, lowEndpoint, highEndpoint, continuation, scanProperties); }
/** * Converts the tuple produced for this path to a subspace. * * @param context the context in which to resolve the path * @return The subspace from the resolved path. */ default Subspace toSubspace(FDBRecordContext context) { return new Subspace(toTuple(context)); }
@Override public ResolverResult deserializeValue(byte[] value) { return new ResolverResult(contentSubspace.unpack(value).getLong(0)); }
@Override public String toString() { return ByteArrayUtil2.loggable(subspace.pack()); } }
private static CompletableFuture<Boolean> hasConflictAtRoot(Transaction context, Long value) { return hasConflictInSubspace(context, new Subspace(), value); }
@Override public ResolverResult deserializeValue(byte[] value) { Tuple unpacked = contentSubspace.unpack(value); return unpacked.size() == 1 ? new ResolverResult(unpacked.getLong(0), null) : new ResolverResult(unpacked.getLong(0), unpacked.getBytes(1)); }
@Override public boolean equals(Object obj) { if (obj != null && obj instanceof ScopedInterningLayer) { ScopedInterningLayer that = (ScopedInterningLayer) obj; return baseSubspace.equals(that.baseSubspace) && this.database.equals(that.database); } return false; }
public void setWindow(long count) { transaction.mutate(MutationType.ADD, counterSubspace.pack(count), LITTLE_ENDIAN_LONG_ONE); }
public static void deleteStore(FDBRecordContext context, KeySpacePath path) { final Subspace subspace = new Subspace(path.toTuple(context)); deleteStore(context, subspace); }
@Override public boolean equals(Object obj) { if (obj != null && obj instanceof ScopedDirectoryLayer) { ScopedDirectoryLayer that = (ScopedDirectoryLayer) obj; return baseSubspace.equals(that.baseSubspace) && this.database.equals(that.database); } return false; }