org.grouplens.lenskit.data.text
.@Deprecated public class DelimitedTextRatingCursor extends AbstractPollingCursor<Rating>
Rating
objects.Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger
Deprecated.
|
Constructor and Description |
---|
DelimitedTextRatingCursor(BufferedReader s,
String name,
String delimiter)
Deprecated.
Inheriting from this class is deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Deprecated.
No-op implementation of the
Cursor.close() method. |
Rating |
copy(Rating r)
Deprecated.
Construct a copy of an object.
|
static Cursor<Rating> |
open(BufferedReader s,
String delimiter)
Deprecated.
|
Rating |
poll()
Deprecated.
Return the next element in this Cursor, or null if there are no more
elements.
|
fastNext, hasNext, next
fast, getRowCount, iterator
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
@Deprecated 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 static Cursor<Rating> open(@WillCloseWhenClosed @Nonnull BufferedReader s, @Nonnull String 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. If this
method returns a fresh object every time, then AbstractPollingCursor.copy(Object)
should be a no-op.poll
in class AbstractPollingCursor<Rating>
public Rating copy(Rating r)
AbstractPollingCursor
AbstractPollingCursor.poll()
method, and override this method to create a new copy of an object for when
AbstractPollingCursor.next()
is called. Subclasses which return fresh objects on each
call to AbstractPollingCursor.poll()
do not need to override this method.copy
in class AbstractPollingCursor<Rating>
r
- The object to copy.obj
.