Class AbstractDataFrameFactory

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      DataFrame<java.lang.Integer,​java.lang.String,​java.lang.Double> createRandomDataFrame​(int clusterCount, int rowCount, int columnCount)  
      <R,​V>
      DataFrame<R,​java.lang.Object,​V>
      fromColumnSeries​(Series<R,​V>... series)
      Creates a data frame using a combination of series.
      <R,​C,​V>
      DataFrame<R,​C,​V>
      fromDataFrame​(DataFrame<R,​C,​V> dataFrame)  
      DataFrame<java.lang.Integer,​java.lang.String,​java.lang.Object> fromJsonString​(java.lang.String json)
      Creates a data frame by loading a JSON encoded file.
      DataFrame<java.lang.Integer,​java.lang.String,​java.lang.Object> fromJsonString​(java.lang.String name, java.lang.String json)
      Creates a data frame by loading a JSON encoded file.
      DataFrame<java.lang.Integer,​java.lang.String,​java.lang.Object> fromJsonValue​(elemental.json.JsonValue root, java.lang.String name)  
      • Methods inherited from class java.lang.Object

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

      • AbstractDataFrameFactory

        public AbstractDataFrameFactory()
    • Method Detail

      • createRandomDataFrame

        public DataFrame<java.lang.Integer,​java.lang.String,​java.lang.Double> createRandomDataFrame​(int clusterCount,
                                                                                                                int rowCount,
                                                                                                                int columnCount)
        Specified by:
        createRandomDataFrame in interface DataFrameFactory
      • fromJsonString

        public DataFrame<java.lang.Integer,​java.lang.String,​java.lang.Object> fromJsonString​(java.lang.String json)
        Description copied from interface: DataFrameFactory
        Creates a data frame by loading a JSON encoded file.
        Specified by:
        fromJsonString in interface DataFrameFactory
        Parameters:
        json - the JSON content
        Returns:
        a newly created data frame
      • fromJsonString

        public DataFrame<java.lang.Integer,​java.lang.String,​java.lang.Object> fromJsonString​(java.lang.String name,
                                                                                                         java.lang.String json)
        Description copied from interface: DataFrameFactory
        Creates a data frame by loading a JSON encoded file.
        Specified by:
        fromJsonString in interface DataFrameFactory
        Parameters:
        name - the JSON property
        json - the JSON content
        Returns:
        a newly created data frame
      • fromJsonValue

        public DataFrame<java.lang.Integer,​java.lang.String,​java.lang.Object> fromJsonValue​(elemental.json.JsonValue root,
                                                                                                        java.lang.String name)
      • fromDataFrame

        public <R,​C,​V> DataFrame<R,​C,​V> fromDataFrame​(DataFrame<R,​C,​V> dataFrame)
      • fromColumnSeries

        public <R,​V> DataFrame<R,​java.lang.Object,​V> fromColumnSeries​(Series<R,​V>... series)
        Description copied from interface: DataFrameFactory
        Creates a data frame using a combination of series.
        Specified by:
        fromColumnSeries in interface DataFrameFactory
        Type Parameters:
        R - the type of row keys maintained used to query this data frame.
        V - the type of values
        Parameters:
        series - the series to combine
        Returns:
        a newly created data frame.