public class BasicEntityFactory extends Object implements EntityFactory
| Constructor and Description |
|---|
BasicEntityFactory() |
| Modifier and Type | Method and Description |
|---|---|
Entity |
createEntity(Entity.DATA_FORM form,
Entity.DATA_TYPE type,
ExtendedDataInput in,
boolean extended) |
Matrix |
createMatrixWithDefaultValue(Entity.DATA_TYPE type,
int rows,
int columns) |
Vector |
createPairWithDefaultValue(Entity.DATA_TYPE type) |
static Entity |
createScalar(Entity.DATA_TYPE dataType,
Object object) |
Scalar |
createScalarWithDefaultValue(Entity.DATA_TYPE type) |
Vector |
createVectorWithDefaultValue(Entity.DATA_TYPE type,
int size) |
static EntityFactory |
instance() |
public static EntityFactory instance()
public Entity createEntity(Entity.DATA_FORM form, Entity.DATA_TYPE type, ExtendedDataInput in, boolean extended) throws IOException
createEntity in interface EntityFactoryIOExceptionpublic Matrix createMatrixWithDefaultValue(Entity.DATA_TYPE type, int rows, int columns)
createMatrixWithDefaultValue in interface EntityFactorypublic Vector createVectorWithDefaultValue(Entity.DATA_TYPE type, int size)
createVectorWithDefaultValue in interface EntityFactorypublic Vector createPairWithDefaultValue(Entity.DATA_TYPE type)
createPairWithDefaultValue in interface EntityFactorypublic Scalar createScalarWithDefaultValue(Entity.DATA_TYPE type)
createScalarWithDefaultValue in interface EntityFactorypublic static Entity createScalar(Entity.DATA_TYPE dataType, Object object) throws Exception
ExceptionCopyright © 2022 DolphinDB. All rights reserved.