Package org.apache.sysds.api.mlcontext
Class FrameSchema
java.lang.Object
org.apache.sysds.api.mlcontext.FrameSchema
The frame schema, stored as a list of
ValueType values.-
Constructor Summary
ConstructorsConstructorDescriptionFrameSchema(String schema) Constructor that specifies the schema as a comma-separated string.FrameSchema(List<Types.ValueType> schema) Constructor that specifies the schema as a list ofValueTypevalues. -
Method Summary
Modifier and TypeMethodDescriptionObtain the frame schemaObtain the schema as a comma-separated stringvoidsetSchema(List<Types.ValueType> schema) Set the frame schemavoidsetSchemaAsString(String schema) Set the frame schema, specifying the frame schema as a comma-separated string
-
Constructor Details
-
FrameSchema
public FrameSchema() -
FrameSchema
Constructor that specifies the schema as a list ofValueTypevalues.- Parameters:
schema- the frame schema
-
FrameSchema
Constructor that specifies the schema as a comma-separated string.- Parameters:
schema- the frame schema as a string
-
-
Method Details
-
getSchema
Obtain the frame schema- Returns:
- the frame schema as a list of
ValueTypevalues
-
setSchema
Set the frame schema- Parameters:
schema- the frame schema
-
setSchemaAsString
Set the frame schema, specifying the frame schema as a comma-separated string- Parameters:
schema- the frame schema as a string
-
getSchemaAsString
Obtain the schema as a comma-separated string- Returns:
- the frame schema as a string
-