|
Kinetica C# API
Version 7.2.3.1
|
Main class for handling file operations with Kinetica's KiFS (Kinetica File System). More...
Collaboration diagram for KineticaFileHandler:Classes | |
| class | Options |
| Options for configuring the KineticaFileHandler behavior. More... | |
Public Member Functions | |
| KineticaFileHandler (Kinetica db) | |
| Constructs a KineticaFileHandler with the specified Kinetica connection. More... | |
| KineticaFileHandler (Kinetica db, Options options) | |
| Constructs a KineticaFileHandler with the specified Kinetica connection and options. More... | |
| void | Upload (string fileName, string remoteDirName) |
| Uploads a single file to a KiFS directory using default options. More... | |
| void | Upload (string fileName, string remoteDirName, UploadOptions? uploadOptions, IFileUploadListener? callback) |
| Uploads a single file to a KiFS directory. More... | |
| void | Upload (IList< string > fileNames, string remoteDirName) |
| Uploads multiple files to a KiFS directory using default options. More... | |
| void | Upload (IList< string > fileNames, string remoteDirName, UploadOptions? uploadOptions, IFileUploadListener? callback) |
| Uploads multiple files to a KiFS directory. More... | |
| async Task | UploadAsync (IList< string > fileNames, string remoteDirName, UploadOptions? uploadOptions=null, IFileUploadListener? callback=null) |
| Uploads files asynchronously to a KiFS directory. More... | |
| void | Download (string fileName, string localDirName) |
| Downloads a single file from KiFS to a local directory using default options. More... | |
| void | Download (string fileName, string localDirName, DownloadOptions? downloadOptions, IFileDownloadListener? callback) |
| Downloads a single file from KiFS to a local directory. More... | |
| void | Download (IList< string > fileNames, string localDirName) |
| Downloads multiple files from KiFS to a local directory using default options. More... | |
| void | Download (IList< string > fileNames, string localDirName, DownloadOptions? downloadOptions, IFileDownloadListener? callback) |
| Downloads multiple files from KiFS to a local directory. More... | |
| void | DownloadDirectory (string remoteDirName, string localDirName, DownloadOptions? downloadOptions=null, IFileDownloadListener? callback=null) |
| Downloads all files in a KiFS directory to a local directory. More... | |
| async Task | DownloadAsync (IList< string > fileNames, string localDirName, DownloadOptions? downloadOptions=null, IFileDownloadListener? callback=null) |
| Downloads files asynchronously from KiFS to a local directory. More... | |
| void | CreateDirectory (string remoteDirName) |
| Creates a KiFS directory, suppressing error if it already exists. More... | |
| void | CreateDirectory (string remoteDirName, bool noErrorIfExists) |
| Creates a KiFS directory. More... | |
| void | DeleteDirectory (string remoteDirName) |
| Deletes a KiFS directory and all files under it, suppressing error if it doesn't exist. More... | |
| void | DeleteDirectory (string remoteDirName, bool recursive, bool noErrorIfNotExists) |
| Deletes a KiFS directory. More... | |
| IList< KifsDirectoryInfo > | ShowDirectories (IList< string > remoteDirNames) |
| Returns statistics about the given KiFS directories. More... | |
| IList< KifsDirectoryInfo > | ShowDirectory (string remoteDirName) |
| Returns statistics about a single KiFS directory. More... | |
| IList< KifsDirectoryInfo > | ShowAllDirectories () |
| Returns statistics about all KiFS directories. More... | |
| void | DeleteFiles (IList< string > fileNames) |
| Deletes files from KiFS, suppressing error if files don't exist. More... | |
| void | DeleteFiles (IList< string > fileNames, bool noErrorIfNotExists) |
| Deletes files from KiFS. More... | |
| void | DeleteFilesInDirectory (string remoteDirName) |
| Deletes all files in a KiFS directory. More... | |
| void | DeleteFilesInDirectory (string remoteDirName, bool noErrorIfNotExists) |
| Deletes all files in a KiFS directory. More... | |
| IList< KifsFileInfo > | ShowFiles (IList< string > remotePaths) |
| Returns statistics about the given KiFS files. More... | |
| bool | KifsDirectoryExists (string dirName) |
| Checks whether a KiFS directory exists. More... | |
| bool | KifsDirectoriesExist (ISet< string > dirNames) |
| Checks whether multiple KiFS directories exist. More... | |
| bool | KifsFileExists (string fileName) |
| Checks whether a KiFS file exists. More... | |
Public Attributes | |
| const string | KifsPathSeparator = "/" |
| Separator character between a KiFS directory and file name. More... | |
| const string | KifsPathPrefix = "kifs://" |
| Prefix to use when referencing KiFS files (e.g., for file ingest). More... | |
| const string | RemoteUserHomeDirPrefix = "~" |
| Alias for a user's home directory. More... | |
| const long | DefaultFileSizeToSplit = 62914560 |
| Default file size threshold for multi-part uploads (60 MB). More... | |
| const int | DefaultThreadPoolSize = 5 |
| Default thread pool size for file operations. More... | |
| Options | FileHandlerOptions => _options |
| Gets the options for this file handler. More... | |
Main class for handling file operations with Kinetica's KiFS (Kinetica File System).
Provides methods to upload, download, and manage files and directories in KiFS.
This class exposes the KiFS API for file operations including:
Supported file path patterns include standard Glob syntax (e.g., *.csv, data/**, file_?.txt).
Definition at line 26 of file KineticaFileHandler.cs.
|
inline |
Constructs a KineticaFileHandler with the specified Kinetica connection.
| db | The Kinetica instance used to access KiFS. |
Definition at line 61 of file KineticaFileHandler.cs.
Constructs a KineticaFileHandler with the specified Kinetica connection and options.
| db | The Kinetica instance used to access KiFS. |
| options | Options for configuring file transfer behavior. |
Definition at line 70 of file KineticaFileHandler.cs.
|
inline |
Creates a KiFS directory, suppressing error if it already exists.
| remoteDirName | Name of the KiFS directory to create. |
Definition at line 490 of file KineticaFileHandler.cs.
|
inline |
Creates a KiFS directory.
| remoteDirName | Name of the KiFS directory to create. |
| noErrorIfExists | Whether to suppress error if directory already exists. |
Definition at line 500 of file KineticaFileHandler.cs.
|
inline |
Deletes a KiFS directory and all files under it, suppressing error if it doesn't exist.
| remoteDirName | Name of the KiFS directory to delete. |
Definition at line 516 of file KineticaFileHandler.cs.
|
inline |
Deletes a KiFS directory.
| remoteDirName | Name of the KiFS directory to delete. |
| recursive | Whether to delete all files and subdirectories. |
| noErrorIfNotExists | Whether to suppress error if directory doesn't exist. |
Definition at line 527 of file KineticaFileHandler.cs.
|
inline |
Deletes files from KiFS, suppressing error if files don't exist.
| fileNames | List of KiFS file paths to delete. |
Definition at line 634 of file KineticaFileHandler.cs.
|
inline |
Deletes files from KiFS.
| fileNames | List of KiFS file paths to delete. |
| noErrorIfNotExists | Whether to suppress error if files don't exist. |
Definition at line 644 of file KineticaFileHandler.cs.
|
inline |
Deletes all files in a KiFS directory.
| remoteDirName | Name of the KiFS directory containing files to delete. |
Definition at line 660 of file KineticaFileHandler.cs.
|
inline |
Deletes all files in a KiFS directory.
| remoteDirName | Name of the KiFS directory containing files to delete. |
| noErrorIfNotExists | Whether to suppress error if directory doesn't exist. |
Definition at line 670 of file KineticaFileHandler.cs.
|
inline |
Downloads a single file from KiFS to a local directory using default options.
| fileName | Path of the KiFS file to download. |
| localDirName | Path of the local directory to download to. |
Definition at line 379 of file KineticaFileHandler.cs.
|
inline |
Downloads a single file from KiFS to a local directory.
| fileName | Path of the KiFS file to download. |
| localDirName | Path of the local directory to download to. |
| downloadOptions | Options for the download operation. |
| callback | Optional callback for download progress notifications. |
Definition at line 391 of file KineticaFileHandler.cs.
|
inline |
Downloads multiple files from KiFS to a local directory using default options.
| fileNames | Paths of the KiFS files to download. |
| localDirName | Path of the local directory to download to. |
Definition at line 401 of file KineticaFileHandler.cs.
|
inline |
Downloads multiple files from KiFS to a local directory.
| fileNames | Paths of the KiFS files to download. |
| localDirName | Path of the local directory to download to. |
| downloadOptions | Options for the download operation. |
| callback | Optional callback for download progress notifications. |
Definition at line 413 of file KineticaFileHandler.cs.
|
inline |
Downloads files asynchronously from KiFS to a local directory.
| fileNames | Paths of the KiFS files to download. |
| localDirName | Path of the local directory to download to. |
| downloadOptions | Options for the download operation. |
| callback | Optional callback for download progress notifications. |
Definition at line 477 of file KineticaFileHandler.cs.
|
inline |
Downloads all files in a KiFS directory to a local directory.
| remoteDirName | Path of the KiFS directory to download. |
| localDirName | Path of the local directory to download to. |
| downloadOptions | Options for the download operation. |
| callback | Optional callback for download progress notifications. |
Definition at line 457 of file KineticaFileHandler.cs.
|
inline |
Checks whether multiple KiFS directories exist.
| dirNames | Set of full KiFS directory paths to check. |
Definition at line 734 of file KineticaFileHandler.cs.
|
inline |
Checks whether a KiFS directory exists.
| dirName | Full KiFS directory path to check. |
Definition at line 713 of file KineticaFileHandler.cs.
|
inline |
Checks whether a KiFS file exists.
| fileName | Full KiFS file path to check. |
Definition at line 756 of file KineticaFileHandler.cs.
|
inline |
Returns statistics about all KiFS directories.
Definition at line 607 of file KineticaFileHandler.cs.
|
inline |
Returns statistics about the given KiFS directories.
| remoteDirNames | List of KiFS directory names. |
Definition at line 547 of file KineticaFileHandler.cs.
|
inline |
Returns statistics about a single KiFS directory.
| remoteDirName | Name of the KiFS directory. |
Definition at line 581 of file KineticaFileHandler.cs.
|
inline |
Returns statistics about the given KiFS files.
| remotePaths | List of KiFS file or directory paths. |
Definition at line 681 of file KineticaFileHandler.cs.
|
inline |
Uploads a single file to a KiFS directory using default options.
| fileName | Name and path of the local file (or glob pattern) to upload. |
| remoteDirName | Name of the KiFS directory to upload to. |
Definition at line 88 of file KineticaFileHandler.cs.
|
inline |
Uploads a single file to a KiFS directory.
| fileName | Name and path of the local file (or glob pattern) to upload. |
| remoteDirName | Name of the KiFS directory to upload to. |
| uploadOptions | Options for the upload operation. |
| callback | Optional callback for upload progress notifications. |
Definition at line 100 of file KineticaFileHandler.cs.
|
inline |
Uploads multiple files to a KiFS directory using default options.
| fileNames | Names and paths of the local files (or glob patterns) to upload. |
| remoteDirName | Name of the KiFS directory to upload to. |
Definition at line 110 of file KineticaFileHandler.cs.
|
inline |
Uploads multiple files to a KiFS directory.
| fileNames | Names and paths of the local files (or glob patterns) to upload. |
| remoteDirName | Name of the KiFS directory to upload to. |
| uploadOptions | Options for the upload operation. |
| callback | Optional callback for upload progress notifications. |
Definition at line 122 of file KineticaFileHandler.cs.
|
inline |
Uploads files asynchronously to a KiFS directory.
| fileNames | Names and paths of the local files (or glob patterns) to upload. |
| remoteDirName | Name of the KiFS directory to upload to. |
| uploadOptions | Options for the upload operation. |
| callback | Optional callback for upload progress notifications. |
Definition at line 188 of file KineticaFileHandler.cs.
| const long KineticaFileHandler.DefaultFileSizeToSplit = 62914560 |
Default file size threshold for multi-part uploads (60 MB).
Files larger than this will be uploaded in parts.
Definition at line 47 of file KineticaFileHandler.cs.
| const int KineticaFileHandler.DefaultThreadPoolSize = 5 |
Default thread pool size for file operations.
Definition at line 52 of file KineticaFileHandler.cs.
| Options KineticaFileHandler.FileHandlerOptions => _options |
Gets the options for this file handler.
Definition at line 79 of file KineticaFileHandler.cs.
| const string KineticaFileHandler.KifsPathPrefix = "kifs://" |
Prefix to use when referencing KiFS files (e.g., for file ingest).
Definition at line 36 of file KineticaFileHandler.cs.
| const string KineticaFileHandler.KifsPathSeparator = "/" |
Separator character between a KiFS directory and file name.
Definition at line 31 of file KineticaFileHandler.cs.
| const string KineticaFileHandler.RemoteUserHomeDirPrefix = "~" |
Alias for a user's home directory.
Definition at line 41 of file KineticaFileHandler.cs.