Interface LinkPredictionFormat.Writer<U>

Type Parameters:
U - type of the users
All Superinterfaces:
java.lang.AutoCloseable, java.io.Closeable, java.util.function.Consumer<Prediction<U>>
All Known Implementing Classes:
TuplesLinkPredictionFormat.Writer
Enclosing interface:
LinkPredictionFormat<U>

public static interface LinkPredictionFormat.Writer<U>
extends java.io.Closeable, java.util.function.Consumer<Prediction<U>>
Link prediction writer.
  • Method Summary

    Modifier and Type Method Description
    default void accept​(Prediction<U> prediction)  
    void write​(Prediction<U> prediction)
    Writes the prediction.

    Methods inherited from interface java.io.Closeable

    close

    Methods inherited from interface java.util.function.Consumer

    andThen
  • Method Details

    • write

      void write​(Prediction<U> prediction) throws java.io.IOException
      Writes the prediction.
      Parameters:
      prediction - to be written
      Throws:
      java.io.IOException - when IO error
    • accept

      default void accept​(Prediction<U> prediction)
      Specified by:
      accept in interface java.util.function.Consumer<U>