C# Class MyMediaLite.Data.EntityMapping

Inheritance: IEntityMapping, ISerializable
ファイルを表示 Open project: zenogantner/MML-KDD Class Usage Examples

Public Methods

Method Description
ToInternalID ( IList original_id_list ) : IList

Get internal IDs of a list of given entities

ToInternalID ( int original_id ) : int

Get internal ID of a given entity. If the given external ID is unknown, create a new internal ID for it and store the mapping.

ToOriginalID ( IList internal_id_list ) : IList

Get original (external) IDs of a list of given entities

ToOriginalID ( int internal_id ) : int

Get original (external) ID of a given entity, if the given internal ID is unknown, throw an exception.

Method Details

ToInternalID() public method

Get internal IDs of a list of given entities
public ToInternalID ( IList original_id_list ) : IList
original_id_list IList the list of original (external) IDs
return IList

ToInternalID() public method

Get internal ID of a given entity. If the given external ID is unknown, create a new internal ID for it and store the mapping.
public ToInternalID ( int original_id ) : int
original_id int the original (external) ID of the entity
return int

ToOriginalID() public method

Get original (external) IDs of a list of given entities
public ToOriginalID ( IList internal_id_list ) : IList
internal_id_list IList the list of internal IDs
return IList

ToOriginalID() public method

Get original (external) ID of a given entity, if the given internal ID is unknown, throw an exception.
public ToOriginalID ( int internal_id ) : int
internal_id int the internal ID of the entity
return int