Package smile.data

Interface DataFrame.Collectors

Enclosing interface:
DataFrame

public static interface DataFrame.Collectors
Stream collectors.
  • Method Details

    • collect

      static <T> Collector<T,List<T>,DataFrame> collect(Class<T> clazz)
      Returns a stream collector that accumulates objects into a DataFrame.
      Type Parameters:
      T - the type of input elements to the reduction operation
      Parameters:
      clazz - The class type of elements.
      Returns:
      the stream collector.
    • collect

      static Collector<Tuple,List<Tuple>,DataFrame> collect()
      Returns a stream collector that accumulates tuples into a DataFrame.
      Returns:
      the stream collector.
    • matrix

      static Collector<Tuple,List<Tuple>,Matrix> matrix()
      Returns a stream collector that accumulates tuples into a Matrix.
      Returns:
      the stream collector.