Class SampleWriter

  • All Implemented Interfaces:
    java.io.Closeable , java.lang.AutoCloseable

    
    public abstract class SampleWriter
     implements Closeable
                        

    Describes sample writer basic operations. Basically a sample writer is able to write samples to an unknown destination and close itself.

    Since:

    3.0

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      SampleWriter()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract long write(Sample sample) Write a sample to the underlying destination
      • Methods inherited from class java.io.Closeable

        close
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SampleWriter

        SampleWriter()
    • Method Detail

      • write

         abstract long write(Sample sample)

        Write a sample to the underlying destination

        Parameters:
        sample - The sample to be written (Must not be null)
        Returns:

        The number of samples written at this time to the underlying destination