use of com.apple.foundationdb.record.provider.foundationdb.keyspace.ResolvedKeySpacePath in project fdb-record-layer by FoundationDB.
the class FDBReverseDirectoryCacheTest method createRandomDirectoryScope.
private LocatableResolver createRandomDirectoryScope() {
final String name = String.format("name-%d", Math.abs(random.nextLong()));
KeySpace keySpace = new KeySpace(new KeySpaceDirectory(name, KeySpaceDirectory.KeyType.STRING, name));
ResolvedKeySpacePath path;
try (FDBRecordContext context = fdb.openContext()) {
path = keySpace.resolveFromKey(context, Tuple.from(name));
}
return new ScopedDirectoryLayer(fdb, path);
}
Aggregations