@ThreadSafe public static class EventCollectionDAO.Factory extends Object implements DAOFactory
create()
and snapshot()
.Constructor and Description |
---|
EventCollectionDAO.Factory(Collection<? extends Event> ratings)
Construct a new factory.
|
Modifier and Type | Method and Description |
---|---|
EventCollectionDAO |
create()
Create a new DAO.
|
EventCollectionDAO |
snapshot()
Create a snapshot DAO.
|
static EventCollectionDAO.Factory |
wrap(DAOFactory base)
Wrap another factory by reading its event list.
|
public EventCollectionDAO.Factory(Collection<? extends Event> ratings)
ratings
- The event collection.public EventCollectionDAO create()
DAOFactory
create
in interface DAOFactory
public EventCollectionDAO snapshot()
DAOFactory
LenskitRecommenderEngineFactory
uses a snapshot DAO in to build
recommenders, and a normal DAO to create sessions.snapshot
in interface DAOFactory
public static EventCollectionDAO.Factory wrap(DAOFactory base)
base
- The underlying factory.Copyright © 2013 GroupLens Research. All Rights Reserved.