public class PackedDataSource extends Object implements DataSource
PackedDataSourceBuilder
Constructor and Description |
---|
PackedDataSource(String name,
File file,
PreferenceDomain dom) |
Modifier and Type | Method and Description |
---|---|
void |
configure(LenskitConfiguration config)
Configure LensKit to use this data set.
|
EventDAO |
getEventDAO()
Get an event DAO for this data source.
|
ItemDAO |
getItemDAO()
Get an item DAO for this data source.
|
ItemEventDAO |
getItemEventDAO()
Get a item-event DAO for this data source.
|
ItemNameDAO |
getItemNameDAO()
Get an item name DAO for this data source.
|
String |
getName()
Get the data source name.
|
File |
getPackedFile() |
PreferenceDomain |
getPreferenceDomain()
Get the preference domain of this data source.
|
UserDAO |
getUserDAO()
Get an user DAO for this data source.
|
UserEventDAO |
getUserEventDAO()
Get a user-event DAO for this data source.
|
long |
lastModified() |
public PackedDataSource(String name, File file, PreferenceDomain dom)
public String getName()
DataSource
getName
in interface DataSource
public File getPackedFile()
public PreferenceDomain getPreferenceDomain()
DataSource
getPreferenceDomain
in interface DataSource
public EventDAO getEventDAO()
DataSource
getEventDAO
in interface DataSource
public long lastModified()
lastModified
in interface DataSource
public UserEventDAO getUserEventDAO()
DataSource
getUserEventDAO
in interface DataSource
public ItemEventDAO getItemEventDAO()
DataSource
getItemEventDAO
in interface DataSource
public ItemDAO getItemDAO()
DataSource
getItemDAO
in interface DataSource
public UserDAO getUserDAO()
DataSource
getUserDAO
in interface DataSource
public ItemNameDAO getItemNameDAO()
DataSource
getItemNameDAO
in interface DataSource
public void configure(LenskitConfiguration config)
DataSource
configure
in interface DataSource
config
- A LensKit configuration. Bindings for this data source's data will be added
to this configuration.