public class GenerateEntityFromDataset extends Object
Constructor and Description |
---|
GenerateEntityFromDataset() |
Modifier and Type | Method and Description |
---|---|
EntityDef |
createEntity(Dataset dataset) |
FieldDef |
createFieldDef(Column column) |
EntityDef |
generateEntity(DataReader reader) |
int |
getColumnStatsReaderThreads()
Indicates how many threads should be used to read and analyze the data in each column (defaults to 2).
|
String |
getEntityName() |
long |
getMaxWaitTimeMillis() |
long |
getMinRecords() |
boolean |
isUseInferredType()
Indicates if the most frequently inferred type should be used as the field type instead of the best fit of the actual types (defaults to true).
|
GenerateEntityFromDataset |
setColumnStatsReaderThreads(int columnStatsReaderThreads)
Indicates how many threads should be used to read and analyze the data in each column (defaults to 2).
|
GenerateEntityFromDataset |
setEntityName(String entityName) |
GenerateEntityFromDataset |
setMaxWaitTimeMillis(long maxWaitTimeMillis) |
GenerateEntityFromDataset |
setMinRecords(long minRecords) |
GenerateEntityFromDataset |
setUseInferredType(boolean useInferredType)
Indicates if the most frequently inferred type should be used as the field type instead of the best fit of the actual types (defaults to true).
|
public EntityDef generateEntity(DataReader reader)
public long getMinRecords()
public GenerateEntityFromDataset setMinRecords(long minRecords)
public long getMaxWaitTimeMillis()
public GenerateEntityFromDataset setMaxWaitTimeMillis(long maxWaitTimeMillis)
public String getEntityName()
public GenerateEntityFromDataset setEntityName(String entityName)
public int getColumnStatsReaderThreads()
public GenerateEntityFromDataset setColumnStatsReaderThreads(int columnStatsReaderThreads)
public boolean isUseInferredType()
* For example: if a column contains strings which appears to be dates the inferred field type for that column will be date and the best fit would be string.
public GenerateEntityFromDataset setUseInferredType(boolean useInferredType)
* For example: if a column contains strings which appears to be dates the inferred field type for that column will be date and the best fit would be string.
Copyright (c) 2006-2024 North Concepts Inc. All Rights Reserved.