MyMediaLite
3.09
|
Class to map external entity IDs to internal ones to ensure that there are no gaps in the numbering. More...
Public Member Functions | |
void | GetObjectData (SerializationInfo info, StreamingContext context) |
Mapping () | |
default constructor | |
Mapping (SerializationInfo info, StreamingContext context) | |
int | ToInternalID (string original_id) |
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. | |
IList< int > | ToInternalID (IList< string > original_id_list) |
Get internal IDs of a list of given entities. | |
string | ToOriginalID (int internal_id) |
Get original (external) ID of a given entity, if the given internal ID is unknown, throw an exception. | |
IList< string > | ToOriginalID (IList< int > internal_id_list) |
Get original (external) IDs of a list of given entities. | |
Properties | |
ICollection< int > | InternalIDs [get] |
all internal entity IDs | |
int | NumberOfEntities [get] |
the number of entities | |
ICollection< string > | OriginalIDs [get] |
all original (external) entity IDs |
Class to map external entity IDs to internal ones to ensure that there are no gaps in the numbering.
Mapping | ( | ) | [inline] |
default constructor
int ToInternalID | ( | string | original_id | ) | [inline] |
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.
original_id | the original (external) ID of the entity |
Implements IMapping.
IList<int> ToInternalID | ( | IList< string > | original_id_list | ) | [inline] |
Get internal IDs of a list of given entities.
original_id_list | the list of original (external) IDs |
Implements IMapping.
string ToOriginalID | ( | int | internal_id | ) | [inline] |
Get original (external) ID of a given entity, if the given internal ID is unknown, throw an exception.
internal_id | the internal ID of the entity |
Implements IMapping.
IList<string> ToOriginalID | ( | IList< int > | internal_id_list | ) | [inline] |
Get original (external) IDs of a list of given entities.
internal_id_list | the list of internal IDs |
Implements IMapping.
ICollection<int> InternalIDs [get] |
int NumberOfEntities [get] |
the number of entities
Implements IMapping.
ICollection<string> OriginalIDs [get] |