Méthode | Description | |
---|---|---|
GenericDataModel ( FastByIDMap |
Creates a new GenericDataModel from the given users (and their preferences). This IDataModel retains all this information in memory and is effectively immutable.
|
|
GenericDataModel ( FastByIDMap |
Creates a new GenericDataModel from the given users (and their preferences). This IDataModel retains all this information in memory and is effectively immutable.
|
|
GenericDataModel ( IDataModel dataModel ) : System |
Creates a new GenericDataModel containing an immutable copy of the data from another given IDataModel.
|
|
GetItemIDs ( ) : IEnumerator |
||
GetItemIDsFromUser ( long userID ) : FastIDSet | ||
GetNumItems ( ) : int | ||
GetNumUsers ( ) : int | ||
GetNumUsersWithPreferenceFor ( long itemID ) : int | ||
GetNumUsersWithPreferenceFor ( long itemID1, long itemID2 ) : int | ||
GetPreferenceTime ( long userID, long itemID ) : DateTime? | ||
GetPreferenceValue ( long userID, long itemID ) : float? | ||
GetPreferencesForItem ( long itemID ) : IPreferenceArray | ||
GetPreferencesFromUser ( long userID ) : IPreferenceArray | ||
GetRawItemData ( ) : FastByIDMap |
This is used mostly internally to the framework, and shouldn't be relied upon otherwise.
|
|
GetRawUserData ( ) : FastByIDMap |
This is used mostly internally to the framework, and shouldn't be relied upon otherwise.
|
|
GetUserIDs ( ) : IEnumerator |
||
HasPreferenceValues ( ) : bool | ||
Refresh ( IList |
||
RemovePreference ( long userID, long itemID ) : void | ||
SetPreference ( long userID, long itemID, float value ) : void | ||
ToDataMap ( FastByIDMap |
Swaps, in-place, IList
|
|
ToDataMap ( IDataModel dataModel ) : FastByIDMap |
Exports the simple user IDs and preferences in the data model.
|
|
ToString ( ) : string |
public GenericDataModel ( FastByIDMap |
||
userData | FastByIDMap |
userData users to include; (see also |
Résultat | System |
public GenericDataModel ( FastByIDMap |
||
userData | FastByIDMap |
users to include; (see also |
timestamps | FastByIDMap |
timestamps optionally, provided timestamps of preferences as milliseconds since the epoch. User IDs are mapped to maps of item IDs to long timestamps. |
Résultat | System |
public GenericDataModel ( IDataModel dataModel ) : System | ||
dataModel | IDataModel | dataModel |
Résultat | System |
public GetItemIDsFromUser ( long userID ) : FastIDSet | ||
userID | long | |
Résultat | FastIDSet |
public GetNumUsersWithPreferenceFor ( long itemID ) : int | ||
itemID | long | |
Résultat | int |
public GetNumUsersWithPreferenceFor ( long itemID1, long itemID2 ) : int | ||
itemID1 | long | |
itemID2 | long | |
Résultat | int |
public GetPreferenceTime ( long userID, long itemID ) : DateTime? | ||
userID | long | |
itemID | long | |
Résultat | DateTime? |
public GetPreferenceValue ( long userID, long itemID ) : float? | ||
userID | long | |
itemID | long | |
Résultat | float? |
public GetPreferencesForItem ( long itemID ) : IPreferenceArray | ||
itemID | long | |
Résultat | IPreferenceArray |
public GetPreferencesFromUser ( long userID ) : IPreferenceArray | ||
userID | long | |
Résultat | IPreferenceArray |
public Refresh ( IList |
||
alreadyRefreshed | IList |
|
Résultat | void |
public RemovePreference ( long userID, long itemID ) : void | ||
userID | long | |
itemID | long | |
Résultat | void |
public SetPreference ( long userID, long itemID, float value ) : void | ||
userID | long | |
itemID | long | |
value | float | |
Résultat | void |
public static ToDataMap ( FastByIDMap |
||
data | FastByIDMap |
|
byUser | bool | |
Résultat | FastByIDMap |
public static ToDataMap ( IDataModel dataModel ) : FastByIDMap |
||
dataModel | IDataModel | |
Résultat | FastByIDMap |