public class DelimitedTextRatingCursor extends AbstractEventCursor<Rating>
Compatibility: Public
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger |
Constructor and Description |
---|
DelimitedTextRatingCursor(BufferedReader s)
Construct a rating cursor from a reader.
|
DelimitedTextRatingCursor(BufferedReader s,
String name,
String delimiter)
Construct a rating cursor from a reader.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
No-op implementation of the
Cursor.close() method. |
Rating |
poll()
Return the next element in this Cursor, or null if there are no more
elements.
|
copy
fastNext, hasNext, next
fast, getRowCount, iterator
public DelimitedTextRatingCursor(@WillCloseWhenClosed@Nonnull BufferedReader s)
s
- The reader to read.public DelimitedTextRatingCursor(@WillCloseWhenClosed@Nonnull BufferedReader s, @Nullable String name, @Nonnull String delimiter)
s
- The reader to read.name
- The file name (for error messages).delimiter
- The delimiter.public void close()
AbstractCursor
Cursor.close()
method.close
in interface Closeable
close
in interface AutoCloseable
close
in interface Cursor<Rating>
close
in class AbstractCursor<Rating>
public Rating poll()
AbstractPollingCursor
AbstractPollingCursor.copy(Object)
copies objects.poll
in class AbstractPollingCursor<Rating>
Copyright © 2013 GroupLens Research. All Rights Reserved.