public class KeySpaceCountTree extends com.apple.foundationdb.clientlog.TupleKeyCountTree
Modifier and Type | Class and Description |
---|---|
static class |
KeySpaceCountTree.Resolved
The resolved interpretation of the node value.
|
static class |
KeySpaceCountTree.ResolvedIndexKeyspace
A resolved index keyspace.
|
static class |
KeySpaceCountTree.ResolvedKeyField
A resolved field of a record primary key or index key.
|
static class |
KeySpaceCountTree.ResolvedPath
|
static class |
KeySpaceCountTree.ResolvedPrefixRoot
KeySpaceCountTree.ResolvedRoot with a prefix object. |
static class |
KeySpaceCountTree.ResolvedRecordStoreKeyspace
A resolved record store keyspace, such as records or indexes.
|
static class |
KeySpaceCountTree.ResolvedRecordTypeKeyspace
A resolved record type key prefix keyspace.
|
static class |
KeySpaceCountTree.ResolvedRoot
KeySpaceCountTree.Resolved to a KeySpace root. |
com.apple.foundationdb.clientlog.TupleKeyCountTree.Printer
Constructor and Description |
---|
KeySpaceCountTree(KeySpace keySpace) |
KeySpaceCountTree(KeySpaceCountTree parent,
byte[] bytes,
Object object) |
add, add, addPrefixChild, getBytes, getChildren, getCount, getObject, getParent, hasObject, hideLessThanFraction, isVisible, printTree, printTree, setVisible
public KeySpaceCountTree(@Nullable KeySpaceCountTree parent, @Nonnull byte[] bytes, @Nullable Object object)
@Nonnull protected com.apple.foundationdb.clientlog.TupleKeyCountTree newChild(@Nonnull byte[] childBytes, @Nonnull Object object)
newChild
in class com.apple.foundationdb.clientlog.TupleKeyCountTree
@Nonnull protected com.apple.foundationdb.clientlog.TupleKeyCountTree newPrefixChild(@Nonnull byte[] prefixBytes, @Nonnull Object prefix)
newPrefixChild
in class com.apple.foundationdb.clientlog.TupleKeyCountTree
public CompletableFuture<Void> resolveVisibleChildren(@Nonnull FDBRecordContext context)
protected CompletableFuture<Void> resolve(@Nonnull FDBRecordContext context, @Nonnull KeySpaceCountTree.Resolved resolvedParent)
protected CompletableFuture<KeySpaceCountTree.Resolved> resolve(@Nonnull FDBRecordContext context, @Nonnull KeySpaceCountTree.Resolved resolvedParent, @Nullable Object object)
protected CompletableFuture<KeySpaceCountTree.Resolved> resolveNonDirectory(@Nonnull FDBRecordContext context, @Nonnull KeySpaceCountTree.Resolved resolvedParent, @Nullable Object object)
KeySpaceDirectory
node.context
- an open transaction to use to read from the databaseresolvedParent
- the resolved parent nodeobject
- the Tuple
element for this nodeKeySpaceCountTree.Resolved
or null
protected List<KeyExpression> indexStoredKeys(@Nonnull Index index)
protected boolean isRecordStoreLeaf(@Nonnull FDBRecordContext context, @Nonnull KeySpaceCountTree.Resolved resolvedParent, @Nullable Object object)
KeySpaceDirectory
tree is the root of a FDBRecordStore
.
Override this if whether a leaf directory can be determined from the KeySpaceCountTree.Resolved
; for example, because they
use a specific KeySpacePathWrapper
class.context
- an open transaction to use to read from the databaseresolvedParent
- the resolved parent nodeobject
- the Tuple
element for this nodetrue
if this path stores a record storeprotected CompletableFuture<RecordMetaData> getRecordStoreMetaData(@Nonnull FDBRecordContext context, @Nonnull KeySpaceCountTree.Resolved resolvedParent, @Nullable Object object)
isRecordStoreLeaf(com.apple.foundationdb.record.provider.foundationdb.FDBRecordContext, com.apple.foundationdb.record.provider.foundationdb.clientlog.KeySpaceCountTree.Resolved, java.lang.Object)
is true
, get the record store's meta-data.
Override this method if the meta-data can be determined from the KeySpaceCountTree.Resolved
tree.context
- an open transaction to use to read from the databaseresolvedParent
- the resolved parent nodeobject
- the Tuple
element for this nodenull
protected CompletableFuture<KeySpaceCountTree.Resolved> resolvePrimaryKeyField(@Nonnull FDBRecordContext context, @Nonnull KeySpaceCountTree.Resolved resolvedParent, @Nullable Object object, @Nonnull KeyExpression fieldKey, int fieldIndex)
protected CompletableFuture<KeySpaceCountTree.Resolved> resolveIndexField(@Nonnull FDBRecordContext context, @Nonnull KeySpaceCountTree.Resolved resolvedParent, @Nullable Object object, @Nonnull Index index, @Nonnull KeyExpression fieldKey, int fieldIndex)
protected CompletableFuture<KeySpaceCountTree.Resolved> resolveKeyField(@Nonnull FDBRecordContext context, @Nonnull KeySpaceCountTree.Resolved resolvedParent, @Nullable Object object, @Nonnull KeyExpression fieldKey)
public String toString()
toString
in class com.apple.foundationdb.clientlog.TupleKeyCountTree