Class SentimentSampleTypeFilter

All Implemented Interfaces:
AutoCloseable, ObjectStream<SentimentSample>

public class SentimentSampleTypeFilter extends FilterObjectStream<SentimentSample,SentimentSample>
Class for creating a type filter.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • read

      public SentimentSample read() throws IOException
      Description copied from interface: ObjectStream
      Returns the next ObjectStream object. Calling this method repeatedly until it returns null will return each object from the underlying source exactly once.
      Returns:
      Reads and returns the next SentimentSample whose sentiment matches the configured types, or null if the stream is exhausted.
      Throws:
      IOException - Thrown if there is an error during reading.