loadTable#
- swordfish.function.loadTable()#
For a DFS table: return a table object with only the metadata.
For a partitioned table in the local file system: if memoryMode = true, load all partitions (or selected partitions if parameter partitions is specified) into memory as a partitioned table; if memoryMode = false, only load metadata into memory.
- Parameters:
database (Constant) – Either a database handle, or the absolute path of the folder where the database is stored. The database can be located in the local file system, or the distributed file system.
tableName (Constant) – A string indicating the name of the table on disk.
partitions (Constant) – A scalar or vector indicating which partitions of the table to load into memory.
memoryMode (Constant) – A Boolean value indicating whether to load only metadata into memory (memoryMode = false). If memoryMode = true, load all data or selected partitions into memory. Please note that this parameter only takes effect for local databases on disk. For DFS databases, only the metadata is loaded into memory.