C# Класс MyMediaLite.IO.RelationData

Class that offers static methods to read (binary) relation over entities into SparseBooleanMatrix objects
Показать файл Открыть проект

Открытые методы

Метод Описание
Read ( IDataReader reader, IEntityMapping mapping ) : SparseBooleanMatrix

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

Read ( StreamReader reader, IEntityMapping mapping ) : SparseBooleanMatrix

Read binary relation data from file

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

Read ( string filename, IEntityMapping mapping ) : SparseBooleanMatrix

Read binary attribute data from file

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

Описание методов

Read() публичный статический Метод

Read binary relation data from an IDataReader, e.g. a database via DbDataReader
public static Read ( IDataReader reader, IEntityMapping mapping ) : SparseBooleanMatrix
reader IDataReader an IDataReader to be read from
mapping IEntityMapping the mapping object for the given entity type
Результат MyMediaLite.DataType.SparseBooleanMatrix

Read() публичный статический Метод

Read binary relation data from file
The expected (sparse) line format is: ENTITY_ID whitespace ENTITY_ID for the relations that hold.
public static Read ( StreamReader reader, IEntityMapping mapping ) : SparseBooleanMatrix
reader System.IO.StreamReader a StreamReader to be read from
mapping IEntityMapping the mapping object for the given entity type
Результат MyMediaLite.DataType.SparseBooleanMatrix

Read() публичный статический Метод

Read binary attribute data from file
The expected (sparse) line format is: ENTITY_ID whitespace ENTITY_ID for the relations that hold.
public static Read ( string filename, IEntityMapping mapping ) : SparseBooleanMatrix
filename string the name of the file to be read from
mapping IEntityMapping the mapping object for the given entity type
Результат MyMediaLite.DataType.SparseBooleanMatrix