Class PathValue
- java.lang.Object
-
- com.apple.foundationdb.record.provider.foundationdb.keyspace.PathValue
-
@API(MAINTAINED) public class PathValue extends Object
A class to represent the value stored at a particular element of aKeySpacePath
. TheresolvedValue
is the object that will appear in theTuple
whenKeySpacePath.toTuple(com.apple.foundationdb.record.provider.foundationdb.FDBRecordContext)
is invoked. Themetadata
is left null byKeySpaceDirectory
but other implementations may make use of it (e.g.DirectoryLayerDirectory
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getMetadata()
If thePathValue
was returned by theDirectoryLayerDirectory
or some other directory type that involves aLocatableResolver
, this will return any metadata that is associated with the key in byLocatableResolver
.Object
getResolvedValue()
Returns the value that will be stored in the FDB row key for a path.
-
-
-
Method Detail
-
getResolvedValue
@Nullable public Object getResolvedValue()
Returns the value that will be stored in the FDB row key for a path.- Returns:
- the value that will be stored in the FDB row key
-
getMetadata
@Nullable public byte[] getMetadata()
If thePathValue
was returned by theDirectoryLayerDirectory
or some other directory type that involves aLocatableResolver
, this will return any metadata that is associated with the key in byLocatableResolver
.- Returns:
- metadata associated with the key in the
LocatableResolver
ornull
if no metadata exists or is applicable for the directory type
-
-