Package com.macrofocus.molap.dataframe
Interface DataFrameFactory
-
- All Known Implementing Classes:
AbstractDataFrameFactory
,CPDataFrameFactory
,JavaDataFrameFactory
,SwingDataFrameFactory
public interface DataFrameFactory
Factory for supporting the most common ways of instantiatingDataFrame
object.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
DataFrameFactory.Callback
-
Method Summary
All Methods Instance Methods Abstract 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.void
fromJson(java.lang.String url, DataFrameFactory.Callback callback)
Creates a data frame by loading a JSON encoded file.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.
-
-
-
Method Detail
-
createRandomDataFrame
DataFrame<java.lang.Integer,java.lang.String,java.lang.Double> createRandomDataFrame(int clusterCount, int rowCount, int columnCount)
-
fromJsonString
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.- Parameters:
json
- the JSON content- Returns:
- a newly created data frame
-
fromJsonString
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.- Parameters:
name
- the JSON propertyjson
- the JSON content- Returns:
- a newly created data frame
-
fromJson
void fromJson(java.lang.String url, DataFrameFactory.Callback callback) throws java.io.IOException
Creates a data frame by loading a JSON encoded file.- Parameters:
url
- the URL of the filecallback
- call back method- Throws:
java.io.IOException
-
fromColumnSeries
<R,V> DataFrame<R,java.lang.Object,V> fromColumnSeries(Series<R,V>... series)
Creates a data frame using a combination of series.- 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.
-
-