Package com.macrofocus.molap.dataframe
Class AbstractDataFrameFactory
- java.lang.Object
-
- com.macrofocus.molap.dataframe.AbstractDataFrameFactory
-
- All Implemented Interfaces:
DataFrameFactory
- Direct Known Subclasses:
CPDataFrameFactory
public abstract class AbstractDataFrameFactory extends java.lang.Object implements DataFrameFactory
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.macrofocus.molap.dataframe.DataFrameFactory
DataFrameFactory.Callback
-
-
Constructor Summary
Constructors Constructor Description 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
-
Methods inherited from interface com.macrofocus.molap.dataframe.DataFrameFactory
fromJson
-
-
-
-
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 interfaceDataFrameFactory
-
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 interfaceDataFrameFactory
- 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 interfaceDataFrameFactory
- Parameters:
name
- the JSON propertyjson
- 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)
-
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 interfaceDataFrameFactory
- 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.
-
-