C# Class FdbShell.BasicCommands

Mostrar archivo Open project: BedeGaming/foundationdb-dotnet-client Class Usage Examples

Public Methods

Method 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

Method 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 method

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
return Task

Count() public static method

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
return Task

CreateDirectory() public static method

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
return Task

Dir() public static method

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
return Task

Map() public static method

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
return Task

MoveDirectory() public static method

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
return Task

RemoveDirectory() public static method

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
return Task

Sampling() public static method

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
return Task

Shards() public static method

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
return Task

Show() public static method

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
return Task

ShowDirectoryLayer() public static method

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
return Task

Topology() public static method

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
return Task

Tree() public static method

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
return Task

TryOpenCurrentDirectoryAsync() public static method

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