AttributeData Class Reference

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

List of all members.

Static Public Member Functions

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

Detailed Description

Class that offers static methods to read (binary) attribute data into SparseBooleanMatrix 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 SparseBooleanMatrix Read ( IDataReader  reader,
IEntityMapping  mapping 
) [inline, static]

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

Parameters:
reader an IDataReader to be read from
mapping the mapping object for the given entity type
Returns:
the attribute data
static SparseBooleanMatrix Read ( StreamReader  reader,
IEntityMapping  mapping 
) [inline, static]

Read binary attribute data from a StreamReader.

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

Parameters:
reader a StreamReader to be read from
mapping the mapping object for the given entity type
Returns:
the attribute data
static SparseBooleanMatrix Read ( string  filename,
IEntityMapping  mapping 
) [inline, static]

Read binary attribute data from a file.

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

Parameters:
filename the name of the file to be read from
mapping the mapping object for the given entity type
Returns:
the attribute data

The documentation for this class was generated from the following file:
Generated on Sat Oct 8 18:11:34 2011 for MyMediaLite by  doxygen 1.6.3