C# Class FdbShell.BasicCommands

Afficher le fichier Open project: BedeGaming/foundationdb-dotnet-client Class Usage Examples

Méthodes publiques

Méthode Description
ChangeDirectoryLayer ( string path, string layer, IFdbTuple extras, IFdbDatabase db, TextWriter log, CancellationToken ct ) : Task
Count ( string path, IFdbTuple extras, IFdbDatabase db, TextWriter log, CancellationToken ct ) : Task

Counts the number of keys inside a directory

CreateDirectory ( string path, IFdbTuple extras, IFdbDatabase db, TextWriter log, CancellationToken ct ) : Task

Creates a new directory

Dir ( string path, IFdbTuple extras, DirectoryBrowseOptions options, IFdbDatabase db, TextWriter log, CancellationToken ct ) : Task
Map ( string path, IFdbTuple extras, IFdbDatabase db, TextWriter log, CancellationToken ct ) : Task
MoveDirectory ( string srcPath, string dstPath, IFdbTuple extras, IFdbDatabase db, TextWriter log, CancellationToken ct ) : Task

Move/Rename a directory

RemoveDirectory ( string path, IFdbTuple extras, IFdbDatabase db, TextWriter log, CancellationToken ct ) : Task

Remove a directory and all its data

Sampling ( string path, IFdbTuple extras, IFdbDatabase db, TextWriter log, CancellationToken ct ) : Task
Shards ( string path, IFdbTuple extras, IFdbDatabase db, TextWriter log, CancellationToken ct ) : Task
Show ( string path, IFdbTuple extras, bool reverse, IFdbDatabase db, TextWriter log, CancellationToken ct ) : Task

Shows the first few keys of a directory

ShowDirectoryLayer ( string path, IFdbTuple extras, IFdbDatabase db, TextWriter log, CancellationToken ct ) : Task
Topology ( string path, IFdbTuple extras, IFdbDatabase db, TextWriter log, CancellationToken ct ) : Task

Find the DCs, machines and processes in the cluster

Tree ( string path, IFdbTuple extras, IFdbDatabase db, TextWriter log, CancellationToken ct ) : Task

Display a tree of a directory's children

TryOpenCurrentDirectoryAsync ( string path, IFdbDatabase db, CancellationToken ct ) : Task

Private Methods

Méthode Description
FormatSize ( long size, CultureInfo ci = null ) : string
TreeDirectoryWalk ( FdbDirectorySubspace folder, List last, IFdbDatabase db, TextWriter stream, CancellationToken ct ) : Task

Method Details

ChangeDirectoryLayer() public static méthode

public static ChangeDirectoryLayer ( string path, string layer, IFdbTuple extras, IFdbDatabase db, TextWriter log, CancellationToken ct ) : Task
path string
layer string
extras IFdbTuple
db IFdbDatabase
log System.IO.TextWriter
ct System.Threading.CancellationToken
Résultat Task

Count() public static méthode

Counts the number of keys inside a directory
public static Count ( string path, IFdbTuple extras, IFdbDatabase db, TextWriter log, CancellationToken ct ) : Task
path string
extras IFdbTuple
db IFdbDatabase
log System.IO.TextWriter
ct System.Threading.CancellationToken
Résultat Task

CreateDirectory() public static méthode

Creates a new directory
public static CreateDirectory ( string path, IFdbTuple extras, IFdbDatabase db, TextWriter log, CancellationToken ct ) : Task
path string
extras IFdbTuple
db IFdbDatabase
log System.IO.TextWriter
ct System.Threading.CancellationToken
Résultat Task

Dir() public static méthode

public static Dir ( string path, IFdbTuple extras, DirectoryBrowseOptions options, IFdbDatabase db, TextWriter log, CancellationToken ct ) : Task
path string
extras IFdbTuple
options DirectoryBrowseOptions
db IFdbDatabase
log System.IO.TextWriter
ct System.Threading.CancellationToken
Résultat Task

Map() public static méthode

public static Map ( string path, IFdbTuple extras, IFdbDatabase db, TextWriter log, CancellationToken ct ) : Task
path string
extras IFdbTuple
db IFdbDatabase
log System.IO.TextWriter
ct System.Threading.CancellationToken
Résultat Task

MoveDirectory() public static méthode

Move/Rename a directory
public static MoveDirectory ( string srcPath, string dstPath, IFdbTuple extras, IFdbDatabase db, TextWriter log, CancellationToken ct ) : Task
srcPath string
dstPath string
extras IFdbTuple
db IFdbDatabase
log System.IO.TextWriter
ct System.Threading.CancellationToken
Résultat Task

RemoveDirectory() public static méthode

Remove a directory and all its data
public static RemoveDirectory ( string path, IFdbTuple extras, IFdbDatabase db, TextWriter log, CancellationToken ct ) : Task
path string
extras IFdbTuple
db IFdbDatabase
log System.IO.TextWriter
ct System.Threading.CancellationToken
Résultat Task

Sampling() public static méthode

public static Sampling ( string path, IFdbTuple extras, IFdbDatabase db, TextWriter log, CancellationToken ct ) : Task
path string
extras IFdbTuple
db IFdbDatabase
log System.IO.TextWriter
ct System.Threading.CancellationToken
Résultat Task

Shards() public static méthode

public static Shards ( string path, IFdbTuple extras, IFdbDatabase db, TextWriter log, CancellationToken ct ) : Task
path string
extras IFdbTuple
db IFdbDatabase
log System.IO.TextWriter
ct System.Threading.CancellationToken
Résultat Task

Show() public static méthode

Shows the first few keys of a directory
public static Show ( string path, IFdbTuple extras, bool reverse, IFdbDatabase db, TextWriter log, CancellationToken ct ) : Task
path string
extras IFdbTuple
reverse bool
db IFdbDatabase
log System.IO.TextWriter
ct System.Threading.CancellationToken
Résultat Task

ShowDirectoryLayer() public static méthode

public static ShowDirectoryLayer ( string path, IFdbTuple extras, IFdbDatabase db, TextWriter log, CancellationToken ct ) : Task
path string
extras IFdbTuple
db IFdbDatabase
log System.IO.TextWriter
ct System.Threading.CancellationToken
Résultat Task

Topology() public static méthode

Find the DCs, machines and processes in the cluster
public static Topology ( string path, IFdbTuple extras, IFdbDatabase db, TextWriter log, CancellationToken ct ) : Task
path string
extras IFdbTuple
db IFdbDatabase
log System.IO.TextWriter
ct System.Threading.CancellationToken
Résultat Task

Tree() public static méthode

Display a tree of a directory's children
public static Tree ( string path, IFdbTuple extras, IFdbDatabase db, TextWriter log, CancellationToken ct ) : Task
path string
extras IFdbTuple
db IFdbDatabase
log System.IO.TextWriter
ct System.Threading.CancellationToken
Résultat Task

TryOpenCurrentDirectoryAsync() public static méthode

public static TryOpenCurrentDirectoryAsync ( string path, IFdbDatabase db, CancellationToken ct ) : Task
path string
db IFdbDatabase
ct System.Threading.CancellationToken
Résultat Task