Interface Collectors
public interface Collectors
Stream collectors for Dataset, DataFrame, and Matrix.
-
Method Summary
Static MethodsModifier and TypeMethodDescriptiontoDataFrame(Class<T> clazz) Returns a stream collector that accumulates objects into a DataFrame.toDataFrame(StructType schema) Returns a stream collector that accumulates tuples into a DataFrame.static <D,T> Collector <SampleInstance<D, T>, List<SampleInstance<D, T>>, Dataset<D, T>> Returns a stream collector that accumulates elements into a Dataset.toMatrix()Returns a stream collector that accumulates tuples into a Matrix.
-
Method Details
-
toDataset
Returns a stream collector that accumulates elements into a Dataset.- Type Parameters:
D- the data type.T- the target type.- Returns:
- the stream collector.
-
toDataFrame
-
toDataFrame
-
toMatrix
-