MyMediaLite  3.07
Static Public Member Functions
AttributeData Class Reference

Class that offers static methods to read (binary) attribute data into IBooleanMatrix objects. More...

List of all members.

Static Public Member Functions

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

Detailed Description

Class that offers static methods to read (binary) attribute data into IBooleanMatrix objects.

The expected (sparse) line format is: ENTITY_ID SEPARATOR ATTRIBUTE_ID for attributes that are set. SEPARATOR can be space, tab, or comma.


Member Function Documentation

static IBooleanMatrix Read ( string  filename,
IMapping  mapping 
) [inline, static]

Read binary attribute data from a file.

The expected (sparse) line format is: ENTITY_ID tab/space/comma ATTRIBUTE_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 attribute data
static IBooleanMatrix Read ( StreamReader  reader,
IMapping  mapping 
) [inline, static]

Read binary attribute data from a StreamReader.

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

Parameters:
readera StreamReader to be read from
mappingthe mapping object for the given entity type
Returns:
the attribute data
static IBooleanMatrix Read ( IDataReader  reader,
IMapping  mapping 
) [inline, static]

Read binary attribute 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 attribute data

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