Class DatasetStreamSource

  • All Implemented Interfaces:
    IDatasetSource

    public class DatasetStreamSource
    extends java.lang.Object
    implements IDatasetSource
    Internal A IDatasetSource that is uploaded from an underlying InputStream (e.g. FileInputStream).
    • Constructor Summary

      Constructors 
      Constructor Description
      DatasetStreamSource​(java.lang.String name, java.io.InputStream input)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getContentType()
      java.lang.String getName()
      java.io.InputStream getStream()  
      • Methods inherited from class java.lang.Object

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

      • DatasetStreamSource

        public DatasetStreamSource​(java.lang.String name,
                                   java.io.InputStream input)
        Parameters:
        name - The name of the stream (e.g. File Name)
        input - The input stream that will be used for learning.
    • Method Detail

      • getStream

        public java.io.InputStream getStream()
        Returns:
        The InputStream that will be used for learning.
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface IDatasetSource
        Returns:
        The name of the DataSource
      • getContentType

        public java.lang.String getContentType()
        Specified by:
        getContentType in interface IDatasetSource
        Returns:
        The Content-Type of the stream. Currently only text/csv is supported.