Class TuplesLinkPredictionFormat.Reader
java.lang.Object
es.uam.eps.ir.relison.links.linkprediction.io.TuplesLinkPredictionFormat.Reader
- All Implemented Interfaces:
LinkPredictionFormat.Reader<U>
,java.util.function.Supplier<Prediction<U>>
- Enclosing class:
- TuplesLinkPredictionFormat<U>
protected class TuplesLinkPredictionFormat.Reader extends java.lang.Object implements LinkPredictionFormat.Reader<U>
The reader for the format.
-
Field Summary
Fields Modifier and Type Field Description private java.io.InputStream
in
An input stream. -
Constructor Summary
Constructors Constructor Description Reader(java.io.InputStream in)
Constructor. -
Method Summary
Modifier and Type Method Description Prediction<U>
read()
Reads the predictionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface es.uam.eps.ir.relison.links.linkprediction.io.LinkPredictionFormat.Reader
get
-
Field Details
-
in
private final java.io.InputStream inAn input stream.
-
-
Constructor Details
-
Reader
public Reader(java.io.InputStream in)Constructor.- Parameters:
in
- input stream where to read the link prediction.
-
-
Method Details
-
read
Description copied from interface:LinkPredictionFormat.Reader
Reads the prediction- Specified by:
read
in interfaceLinkPredictionFormat.Reader<U>
- Returns:
- a stream of recommendations
-