Property | Type | Description | |
---|---|---|---|
ChangeLayerInternalAsync | System.Threading.Tasks.Task | ||
CheckReadVersionAsync | System.Threading.Tasks.Task | ||
CheckVersion | void | ||
CheckWriteVersionAsync | System.Threading.Tasks.Task | ||
ContentsOfNode | |||
Create | |||
Create | |||
Create | |||
Create | |||
CreateOrOpenInternalAsync | Task |
||
ExistsInternalAsync | Task |
||
FdbDirectoryLayer | FoundationDB.Client | ||
FindAsync | Task |
||
GetPartitionForNode | |||
GetSubDirKey | Slice | ||
IFdbDirectory | Task |
||
IFdbDirectory | void | ||
InitializeDirectory | void | ||
IsPrefixFree | Task |
||
ListInternalAsync | Task
|
||
MoveInternalAsync | Task |
||
NodeContainingKey | Task |
||
NodeWithPrefix | FdbSubspace | ||
ParsePath | IFdbTuple | ||
ParsePath | IFdbTuple | ||
PartitionSubPath | IFdbTuple | ||
RemoveFromParent | Task |
||
RemoveInternalAsync | Task |
||
RemoveRecursive | System.Threading.Tasks.Task | ||
SetLayer | void | ||
SubdirNamesAndNodes | FdbSubspace>>.IFdbAsyncEnumerable | ||
ToAbsolutePath | IReadOnlyList |
||
ToRelativePath | IFdbTuple | ||
VerifyPath | IFdbTuple |
Method | Description | |
---|---|---|
ChangeLayerAsync ( [ trans, [ |
Change the layer id of the directory at
|
|
Combine ( IEnumerable |
||
Combine ( IEnumerable |
||
Combine ( IEnumerable |
||
CreateAsync ( IFdbTransaction trans, IEnumerable |
Creates a directory with the given path (creating parent directories if necessary). An exception is thrown if the given directory already exists.
|
|
CreateOrOpenAsync ( IFdbTransaction trans, IEnumerable |
Opens the directory with the given path. If the directory does not exist, it is created (creating parent directories if necessary).
|
|
ExistsAsync ( IFdbReadOnlyTransaction trans, IEnumerable |
Checks if a directory already exists
|
|
FormatPath ( IEnumerable |
||
ListAsync ( IFdbReadOnlyTransaction trans ) : Task
|
Returns the list of subdirectories of the root directory
|
|
ListAsync ( IFdbReadOnlyTransaction trans, IEnumerable
|
Returns the list of subdirectories of directory at path
|
|
MoveAsync ( IFdbTransaction trans, IEnumerable |
Moves the directory found at oldPath to newPath. There is no effect on the physical prefix of the given directory, or on clients that already have the directory open. An error is raised if the old directory does not exist, a directory already exists at `new_path`, or the parent directory of `new_path` does not exist.
|
|
MoveToAsync ( IFdbTransaction trans, IEnumerable |
||
OpenAsync ( IFdbReadOnlyTransaction trans, IEnumerable |
Opens the directory with the given path. An exception is thrown if the directory does not exist, or if a layer is specified and a different layer was specified when the directory was created.
|
|
Parse ( string path ) : string[] | ||
ParsePath ( IFdbTuple path ) : string[] |
Convert a tuple representing a path, into a string array
|
|
RegisterAsync ( IFdbTransaction trans, IEnumerable |
Registers an existing prefix as a directory with the given path (creating parent directories if necessary). This method is only indented for advanced use cases.
|
|
RemoveAsync ( IFdbTransaction trans, IEnumerable |
Removes the directory, its contents, and all subdirectories. Warning: Clients that have already opened the directory might still insert data into its contents after it is removed.
|
|
ToString ( ) : string | ||
TryCreateAsync ( IFdbTransaction trans, IEnumerable |
Attempts to create a directory with the given path (creating parent directories if necessary).
|
|
TryListAsync ( IFdbReadOnlyTransaction trans ) : Task
|
||
TryListAsync ( IFdbReadOnlyTransaction trans, IEnumerable
|
Returns the list of subdirectories of directory at path, if it exists.
|
|
TryMoveAsync ( IFdbTransaction trans, IEnumerable |
Attempts to move the directory found at oldPath to newPath. There is no effect on the physical prefix of the given directory, or on clients that already have the directory open. Returns null if the old directory does not exist, a directory already exists at `new_path`, or the parent directory of `new_path` does not exist.
|
|
TryMoveToAsync ( IFdbTransaction trans, IEnumerable |
||
TryOpenAsync ( IFdbReadOnlyTransaction trans, IEnumerable |
Attempts to open the directory with the given path.
|
|
TryRegisterAsync ( IFdbTransaction trans, IEnumerable |
Attempts to register an existing prefix as a directory with the given path (creating parent directories if necessary). This method is only indented for advanced use cases.
|
|
TryRemoveAsync ( IFdbTransaction trans, IEnumerable |
Attempts to remove the directory, its contents, and all subdirectories. Warning: Clients that have already opened the directory might still insert data into its contents after it is removed.
|
Method | Description | |
---|---|---|
ChangeLayerInternalAsync ( [ trans, [ path, Slice newLayer ) : System.Threading.Tasks.Task | ||
CheckReadVersionAsync ( [ trans ) : System.Threading.Tasks.Task | ||
CheckVersion ( Slice value, bool writeAccess ) : void | ||
CheckWriteVersionAsync ( [ trans ) : System.Threading.Tasks.Task | ||
ContentsOfNode ( FdbSubspace node, IFdbTuple relativePath, Slice layer ) : |
Returns a new Directory Subspace given its node subspace, path and layer id
|
|
Create ( ) : |
||
Create ( FdbSubspace nodeSubspace, FdbSubspace contentSubspace, IEnumerable |
||
Create ( FdbSubspace subspace, IEnumerable |
||
Create ( Slice prefix, IEnumerable |
||
CreateOrOpenInternalAsync ( IFdbReadOnlyTransaction readTrans, IFdbTransaction trans, [ path, Slice layer, Slice prefix, bool allowCreate, bool allowOpen, bool throwOnError ) : Task |
||
ExistsInternalAsync ( [ trans, [ path ) : Task |
||
FdbDirectoryLayer ( FdbSubspace nodeSubspace, FdbSubspace contentSubspace, IFdbTuple location ) : FoundationDB.Client |
Creates a new instance that will manages directories in FoudnationDB.
|
|
FindAsync ( IFdbReadOnlyTransaction tr, IFdbTuple path ) : Task |
Finds a node subspace, given its path, by walking the tree from the root.
|
|
GetPartitionForNode ( Node node ) : |
||
GetSubDirKey ( FdbSubspace parent, string path ) : Slice | ||
IFdbDirectory ( IFdbTransaction trans, Slice newLayer ) : Task |
||
IFdbDirectory ( Slice layer ) : void | ||
InitializeDirectory ( IFdbTransaction trans ) : void | ||
IsPrefixFree ( IFdbReadOnlyTransaction tr, Slice prefix ) : Task |
||
ListInternalAsync ( [ trans, [ path, bool throwIfMissing ) : Task
|
||
MoveInternalAsync ( [ trans, [ oldPath, [ newPath, bool throwOnError ) : Task |
||
NodeContainingKey ( IFdbReadOnlyTransaction tr, Slice key ) : Task |
||
NodeWithPrefix ( Slice prefix ) : FdbSubspace |
Returns the subspace to a node metadata, given its prefix
|
|
ParsePath ( IEnumerable |
||
ParsePath ( [ name, string argName = null ) : IFdbTuple | ||
PartitionSubPath ( IFdbTuple path = null ) : IFdbTuple |
Convert a relative path in this Directory Layer, into an absolute path from the root of partition of the database
|
|
RemoveFromParent ( IFdbTransaction tr, IFdbTuple path ) : Task |
Remove an existing node from its parents
|
|
RemoveInternalAsync ( [ trans, [ path, bool throwIfMissing ) : Task |
||
RemoveRecursive ( IFdbTransaction tr, FdbSubspace node ) : System.Threading.Tasks.Task |
Resursively remove a node (including the content), all its children
|
|
SetLayer ( [ trans, [ subspace, Slice layer ) : void | ||
SubdirNamesAndNodes ( IFdbReadOnlyTransaction tr, FdbSubspace node ) : FdbSubspace>>.IFdbAsyncEnumerable |
Returns the list of names and nodes of all children of the specified node
|
|
ToAbsolutePath ( [ path ) : IReadOnlyList |
||
ToRelativePath ( [ path ) : IFdbTuple | ||
VerifyPath ( [ path, string argName = null ) : IFdbTuple |
public ChangeLayerAsync ( [ trans, [ |
||
trans | [ | Transaction to use for the operation |
path | [ |
Path of the directory to change |
newLayer | Slice | New layer id of the directory |
return | Task |
public static Combine ( IEnumerable |
||
parent | IEnumerable |
|
return | string[] |
public static Combine ( IEnumerable |
||
parent | IEnumerable |
|
paths | IEnumerable |
|
return | string[] |
public static Combine ( IEnumerable |
||
parent | IEnumerable |
|
path | string | |
return | string[] |
public CreateAsync ( IFdbTransaction trans, IEnumerable |
||
trans | IFdbTransaction | Transaction to use for the operation |
path | IEnumerable |
Path of the directory to create |
layer | Slice | If |
return | Task |
public CreateOrOpenAsync ( IFdbTransaction trans, IEnumerable |
||
trans | IFdbTransaction | Transaction to use for the operation |
path | IEnumerable |
Path of the directory to create or open |
layer | Slice | If layer is specified, it is checked against the layer of an existing directory or set as the layer of a new directory. |
return | Task |
public ExistsAsync ( IFdbReadOnlyTransaction trans, IEnumerable |
||
trans | IFdbReadOnlyTransaction | Transaction to use for the operation |
path | IEnumerable |
Path of the directory to remove (including any subdirectories) |
return | Task |
public static FormatPath ( IEnumerable |
||
paths | IEnumerable |
|
return | string |
public ListAsync ( IFdbReadOnlyTransaction trans ) : Task
|
||
trans | IFdbReadOnlyTransaction | Transaction to use for the operation |
return | Task
|
public ListAsync ( IFdbReadOnlyTransaction trans, IEnumerable
|
||
trans | IFdbReadOnlyTransaction | Transaction to use for the operation |
path | IEnumerable |
Path of the directory to list |
return | Task
|
public MoveAsync ( IFdbTransaction trans, IEnumerable |
||
trans | IFdbTransaction | Transaction to use for the operation |
oldPath | IEnumerable |
Path of the directory to move |
newPath | IEnumerable |
New path of the directory |
return | Task |
public MoveToAsync ( IFdbTransaction trans, IEnumerable |
||
trans | IFdbTransaction | |
newAbsolutePath | IEnumerable |
|
return | Task |
public OpenAsync ( IFdbReadOnlyTransaction trans, IEnumerable |
||
trans | IFdbReadOnlyTransaction | Transaction to use for the operation |
path | IEnumerable |
Path of the directory to open. |
layer | Slice | Optional layer id of the directory. If it is different than the layer specified when creating the directory, an exception will be thrown. |
return | Task |
public static Parse ( string path ) : string[] | ||
path | string | |
return | string[] |
public static ParsePath ( IFdbTuple path ) : string[] | ||
path | IFdbTuple | Tuple that should only contain strings |
return | string[] |
public RegisterAsync ( IFdbTransaction trans, IEnumerable |
||
trans | IFdbTransaction | Transaction to use for the operation |
path | IEnumerable |
Path of the directory to create |
layer | Slice | If |
prefix | Slice | The directory will be created with the given physical prefix; otherwise a prefix is allocated automatically. |
return | Task |
public RemoveAsync ( IFdbTransaction trans, IEnumerable |
||
trans | IFdbTransaction | Transaction to use for the operation |
path | IEnumerable |
Path of the directory to remove (including any subdirectories) |
return | System.Threading.Tasks.Task |
public TryCreateAsync ( IFdbTransaction trans, IEnumerable |
||
trans | IFdbTransaction | Transaction to use for the operation |
path | IEnumerable |
Path of the directory to create |
layer | Slice | If |
return | Task |
public TryListAsync ( IFdbReadOnlyTransaction trans ) : Task
|
||
trans | IFdbReadOnlyTransaction | |
return | Task
|
public TryListAsync ( IFdbReadOnlyTransaction trans, IEnumerable
|
||
trans | IFdbReadOnlyTransaction | Transaction to use for the operation |
path | IEnumerable |
Path of the directory to list |
return | Task
|
public TryMoveAsync ( IFdbTransaction trans, IEnumerable |
||
trans | IFdbTransaction | Transaction to use for the operation |
oldPath | IEnumerable |
Path of the directory to move |
newPath | IEnumerable |
New path of the directory |
return | Task |
public TryMoveToAsync ( IFdbTransaction trans, IEnumerable |
||
trans | IFdbTransaction | |
newAbsolutePath | IEnumerable |
|
return | Task |
public TryOpenAsync ( IFdbReadOnlyTransaction trans, IEnumerable |
||
trans | IFdbReadOnlyTransaction | Transaction to use for the operation |
path | IEnumerable |
Path of the directory to open. |
layer | Slice | Optional layer id of the directory. If it is different than the layer specified when creating the directory, an exception will be thrown. |
return | Task |
public TryRegisterAsync ( IFdbTransaction trans, IEnumerable |
||
trans | IFdbTransaction | Transaction to use for the operation |
path | IEnumerable |
Path of the directory to create |
layer | Slice | If |
prefix | Slice | The directory will be created with the given physical prefix; otherwise a prefix is allocated automatically. |
return | Task |
public TryRemoveAsync ( IFdbTransaction trans, IEnumerable |
||
trans | IFdbTransaction | Transaction to use for the operation |
path | IEnumerable |
Path of the directory to remove (including any subdirectories) |
return | Task |