TextEventDAO
instead.@Deprecated public class SimpleFileRatingDAO extends Object implements EventDAO, Describable
Constructor and Description |
---|
SimpleFileRatingDAO(File file,
String delim)
Deprecated.
Create a DAO reading from the specified file and delimiter.
|
SimpleFileRatingDAO(File file,
String delim,
CompressionMode comp)
Deprecated.
use
create(File, String, CompressionMode) instead. |
Modifier and Type | Method and Description |
---|---|
static SimpleFileRatingDAO |
create(File file,
String delim)
Deprecated.
Create a DAO reading from the specified file and delimiter.
|
static SimpleFileRatingDAO |
create(File file,
String delim,
CompressionMode comp)
Deprecated.
Create a DAO reading from the specified file/URL and delimiter.
|
void |
describeTo(DescriptionWriter descr)
Deprecated.
Write this class's description to a sink.
|
File |
getSourceFile()
Deprecated.
|
Cursor<Event> |
streamEvents()
Deprecated.
Stream all events.
|
<E extends Event> |
streamEvents(Class<E> type)
Deprecated.
Stream all events of a given type.
|
<E extends Event> |
streamEvents(Class<E> type,
SortOrder order)
Deprecated.
Stream all events of a given type in a specified order.
|
@Deprecated public SimpleFileRatingDAO(File file, String delim, CompressionMode comp)
create(File, String, CompressionMode)
instead.file
- The file.delim
- The delimiter to look for in the file.comp
- Whether the input is compressed.@Inject public SimpleFileRatingDAO(@RatingFile File file, @FieldSeparator String delim)
file
- The file.delim
- The delimiter to look for in the file.public static SimpleFileRatingDAO create(File file, String delim, CompressionMode comp)
file
- The file.delim
- The delimiter to look for in the file.comp
- Whether the input is compressed.public static SimpleFileRatingDAO create(File file, String delim)
file
- The file.delim
- The delimiter to look for in the file.public File getSourceFile()
public Cursor<Event> streamEvents()
EventDAO
streamEvents
in interface EventDAO
public <E extends Event> Cursor<E> streamEvents(Class<E> type)
EventDAO
streamEvents
in interface EventDAO
type
- The event type.public <E extends Event> Cursor<E> streamEvents(Class<E> type, SortOrder order)
EventDAO
streamEvents
in interface EventDAO
type
- The event type.order
- The order.public void describeTo(DescriptionWriter descr)
Describable
describeTo
in interface Describable
descr
- The description writer to use.