C# Класс FdbShell.BasicCommands

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
FormatSize ( long size, CultureInfo ci = null ) : string
TreeDirectoryWalk ( FdbDirectorySubspace folder, List last, IFdbDatabase db, TextWriter stream, CancellationToken ct ) : Task

Описание методов

ChangeDirectoryLayer() публичный статический Метод

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
Результат Task

Count() публичный статический Метод

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
Результат Task

CreateDirectory() публичный статический Метод

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
Результат Task

Dir() публичный статический Метод

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
Результат Task

Map() публичный статический Метод

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
Результат Task

MoveDirectory() публичный статический Метод

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
Результат Task

RemoveDirectory() публичный статический Метод

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
Результат Task

Sampling() публичный статический Метод

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
Результат Task

Shards() публичный статический Метод

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
Результат Task

Show() публичный статический Метод

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
Результат Task

ShowDirectoryLayer() публичный статический Метод

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
Результат Task

Topology() публичный статический Метод

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
Результат Task

Tree() публичный статический Метод

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
Результат Task

TryOpenCurrentDirectoryAsync() публичный статический Метод

public static TryOpenCurrentDirectoryAsync ( string path, IFdbDatabase db, CancellationToken ct ) : Task
path string
db IFdbDatabase
ct System.Threading.CancellationToken
Результат Task