MyMediaLite  3.11
Static Public Member Functions | List of all members
RelationData Class Reference

Class that offers static methods to read (binary) relation over entities into IBooleanMatrix objects More...

Static Public Member Functions

static IBooleanMatrix Read (string filename, IMapping mapping)
 Read binary relations from file More...
 
static IBooleanMatrix Read (StreamReader reader, IMapping mapping)
 Read binary relation data from file More...
 
static IBooleanMatrix Read (IDataReader reader, IMapping mapping)
 Read binary relation data from an IDataReader, e.g. a database via DbDataReader More...
 

Detailed Description

Class that offers static methods to read (binary) relation over entities into IBooleanMatrix objects

Member Function Documentation

static IBooleanMatrix Read ( string  filename,
IMapping  mapping 
)
inlinestatic

Read binary relations from file

The expected (sparse) line format is: ENTITY_ID space/tab/comma ENTITY_ID for the relations that hold.

Parameters
filenamethe name of the file to be read from
mappingthe mapping object for the given entity type
Returns
the relation data
static IBooleanMatrix Read ( StreamReader  reader,
IMapping  mapping 
)
inlinestatic

Read binary relation data from file

The expected (sparse) line format is: ENTITY_ID space/tab/comma ENTITY_ID for the relations that hold.

Parameters
readera StreamReader to be read from
mappingthe mapping object for the given entity type
Returns
the relation data
static IBooleanMatrix Read ( IDataReader  reader,
IMapping  mapping 
)
inlinestatic

Read binary relation data from an IDataReader, e.g. a database via DbDataReader

Parameters
readeran IDataReader to be read from
mappingthe mapping object for the given entity type
Returns
the relation data

The documentation for this class was generated from the following file: