Module

IMu.Module

IMu.Module

Since: 1.0

Description

Provides access to an EMu module.

Constructors

Constructor

Details

Module(table, session)

Module(string table, Session session)

Creates an object which can be used to access the EMu module specified by table.

Parameters:

table (string)

Name of the EMu module to be accessed.

session (Session)

A Session object to be used to communicate with the IMu server.

Module(table)

Module(string table)

Creates an object which can be used to access the EMu module specified by table and the Session class's default host and port values.

Parameters:

table (string)

Name of the EMu module to be accessed.

Properties

Property

Details

Table

string Table

The name of the table associated with the Module object.

Methods

Method

Details

AddFetchSet(name, columns)

int AddFetchSet(string name, string columns)

Associates a set of columns with a logical name on the server. The name can be used instead of a column list when retrieving data using Fetch( ).

AddFetchSet(name, columns)

int AddFetchSet(string name, string[] columns)

Associates a set of columns with a logical name on the server. The name can be used instead of a column list when retrieving data using Fetch( ).

AddFetchSet(name, columns)

int AddFetchSet(string name, List<string> columns)

Associates a set of columns with a logical name on the server. The name can be used instead of a column list when retrieving data using Fetch( ).

AddFetchSets(sets)

int AddFetchSets(Map sets)

Associates several sets of columns with logical names on the server.

This is the equivalent of calling AddFetchSet( ) for each entry in the map but is more efficient.

AddSearchAlias(name, columns)

int AddSearchAlias(string name, string columns)

Associates a set of columns with a logical name on the server.

The name can be used when specifying search terms to be passed to FindTerms( ). The search becomes the equivalent of an OR search involving the columns.

AddSearchAlias(name, columns)

int AddSearchAlias(string name, string[] columns)

Associates a set of columns with a logical name on the server.

The name can be used when specifying search terms to be passed to FindTerms( ). The search becomes the equivalent of an OR search involving the columns.

AddSearchAlias(name, columns)

int AddSearchAlias(string name, List<string> columns)

Associates a set of columns with a logical name on the server.

The name can be used when specifying search terms to be passed to FindTerms( ). The search becomes the equivalent of an OR search involving the columns.

AddSearchAliases(aliases)

int AddSearchAliases(Map aliases)

Associates a set of columns with a logical name on the server.

This is the equivalent of calling AddSearchAlias( ) for each entry in the map but is more efficient.

AddSortSet(name, keys)

int AddSortSet(string name, string keys)

Associates a set of sort keys with a logical name on the server.

The name can be used instead of a sort key list when sorting the current result set using Sort( ).

AddSortSet(name, keys)

Associates a set of sort keys with a logical name on the server.

AddSortSet(name, keys)

int AddSortSet(string name, List<string> keys)

Associates a set of sort keys with a logical name on the server.

AddSortSets(sets)

Associates several sets of sort keys with logical names on the server.

Fetch(flag, offset, count, columns)

ModuleFetchResult Fetch(string flag, long offset, int count, string columns)

Fetches count records from the position described by a combination of flag and offset.

Fetch(flag, offset, count, columns)

ModuleFetchResult Fetch(string flag, long offset, int count, string[] columns)

Fetches count records from the position described by a combination of flag and offset.

Fetch(flag, offset, count, columns)

ModuleFetchResult Fetch(string flag, long offset, int count, List<string> columns)

Fetches count records from the position described by a combination of flag and offset.

Fetch(flag, offset, count)

ModuleFetchResult Fetch(string flag, long offset, int count)

Fetches count records from the position described by a combination of flag and offset.

FindKey(key)

long FindKey(long key)

Searches for a record with the key value key.

FindKeys(keys)

long FindKeys(long[] keys)

Searches for records with key values in the array keys.

FindKeys(keys)

long FindKeys(List<long> keys)

Searches for records with key values in the array keys.

FindTerms(terms)

long FindTerms(Terms terms)

Searches for records which match the search terms specified in terms.

FindWhere(where)

long FindWhere(string where)

Searches for records which match the TexQL WHERE clause.

RestoreFromFile(file)

long RestoreFromFile(string file)

Restores a set of records from a file on the server machine which contains a list of keys, one per line.

RestoreFromTemp(file)

long RestoreFromTemp(string file)

Restores a set of records from a temporary file on the server machine which contains a list of keys, one per line. Operates the same way as RestoreFromFile( ) except that the file parameter is relative to the server's temporary directory.

Sort(keys, flags)

ModuleSortResult Sort(string keys, string flags)

Sorts the current result set by the sort keys in keys. Each sort key is a column name optionally preceded by a + (for an ascending sort) or a - (for a descending sort).

Sort(keys, flags)

ModuleSortResult Sort(string keys, string[] flags)

Sorts the current result set by the sort keys in keys. Each sort key is a column name optionally preceded by a + (for an ascending sort) or a - (for a descending sort).

Sort(keys, flags)

ModuleSortResult Sort(string keys, List<string> flags)

Sorts the current result set by the sort keys in keys. Each sort key is a column name optionally preceded by a + (for an ascending sort) or a - (for a descending sort).

Sort(keys, flags)

ModuleSortResult Sort(string[] keys, string flags)

Sorts the current result set by the sort keys in keys. Each sort key is a column name optionally preceded by a + (for an ascending sort) or a - (for a descending sort).

Sort(keys, flags)

ModuleSortResult Sort(string[] keys, string[] flags)

Sorts the current result set by the sort keys in keys. Each sort key is a column name optionally preceded by a + (for an ascending sort) or a - (for a descending sort).

Sort(keys, flags)

ModuleSortResult Sort(string[] keys, List<string> flags)

Sorts the current result set by the sort keys in keys.

Each sort key is a column name optionally preceded by a + (for an ascending sort) or a - (for a descending sort).

Sort(keys, flags)

ModuleSortResult Sort(List<string> keys, string flags)

Sorts the current result set by the sort keys in keys. Each sort key is a column name optionally preceded by a + (for an ascending sort) or a - (for a descending sort).

Sort(keys, flags)

ModuleSortResult Sort(List<string> keys, string[] flags)

Sorts the current result set by the sort keys in keys. Each sort key is a column name optionally preceded by a + (for an ascending sort) or a - (for a descending sort).

Sort(keys, flags)

ModuleSortResult Sort(List<string> keys, List<string> flags)

Sorts the current result set by the sort keys in keys. Each sort key is a column name optionally preceded by a + (for an ascending sort) or a - (for a descending sort).