Package org.dashbuilder.dataset.def
Class DataSetDef
- java.lang.Object
-
- org.dashbuilder.dataset.def.DataSetDef
-
- Direct Known Subclasses:
BeanDataSetDef,CSVDataSetDef,ElasticSearchDataSetDef,KafkaDataSetDef,PrometheusDataSetDef,SQLDataSetDef,StaticDataSetDef
public class DataSetDef extends Object
This class is used to define the origin, structure and runtime behaviour of a data set instance.
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description DataSetDef()
-
Method Summary
-
-
-
Field Detail
-
UUID
@NotNull(groups=DataSetDefBasicAttributesGroup.class) @Size(min=1, groups=DataSetDefBasicAttributesGroup.class) protected @NotNull(groups=DataSetDefBasicAttributesGroup.class) @Size(min=1,groups=DataSetDefBasicAttributesGroup.class) String UUID
-
name
@NotNull(groups=DataSetDefBasicAttributesGroup.class) @Size(min=1, groups=DataSetDefBasicAttributesGroup.class) protected @NotNull(groups=DataSetDefBasicAttributesGroup.class) @Size(min=1,groups=DataSetDefBasicAttributesGroup.class) String name
-
provider
@NotNull(groups=DataSetDefProviderTypeGroup.class) protected @NotNull(groups=DataSetDefProviderTypeGroup.class) DataSetProviderType provider
-
columns
protected List<DataColumnDef> columns
-
dataSetFilter
protected DataSetFilter dataSetFilter
-
isPublic
protected boolean isPublic
-
pushEnabled
protected boolean pushEnabled
-
pushMaxSize
@NotNull(groups=DataSetDefPushSizeValidation.class) @Max(4096L) protected @NotNull(groups=DataSetDefPushSizeValidation.class) @Max(4096L) Integer pushMaxSize
-
cacheEnabled
protected boolean cacheEnabled
-
cacheMaxRows
@NotNull(groups=DataSetDefCacheRowsValidation.class) @Max(10000L) protected @NotNull(groups=DataSetDefCacheRowsValidation.class) @Max(10000L) Integer cacheMaxRows
-
refreshTime
@NotNull(groups=DataSetDefRefreshIntervalValidation.class) @Size(min=1, groups=DataSetDefRefreshIntervalValidation.class) @IsTimeInterval(groups=DataSetDefRefreshIntervalValidation.class) protected @NotNull(groups=DataSetDefRefreshIntervalValidation.class) @Size(min=1,groups=DataSetDefRefreshIntervalValidation.class) String refreshTime
-
refreshAlways
protected boolean refreshAlways
-
allColumnsEnabled
protected boolean allColumnsEnabled
-
-
Method Detail
-
getUUID
public String getUUID()
-
setUUID
public void setUUID(String UUID)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getDataSetFilter
public DataSetFilter getDataSetFilter()
-
setDataSetFilter
public void setDataSetFilter(DataSetFilter dataSetFilter)
-
getProvider
public DataSetProviderType getProvider()
-
setProvider
public void setProvider(DataSetProviderType provider)
-
isPublic
public boolean isPublic()
-
setPublic
public void setPublic(boolean isPublic)
-
isPushEnabled
public boolean isPushEnabled()
-
setPushEnabled
public void setPushEnabled(boolean pushEnabled)
-
getPushMaxSize
public Integer getPushMaxSize()
-
setPushMaxSize
public void setPushMaxSize(Integer pushMaxSize)
-
isCacheEnabled
public boolean isCacheEnabled()
-
setCacheEnabled
public void setCacheEnabled(boolean cacheEnabled)
-
getCacheMaxRows
public Integer getCacheMaxRows()
-
setCacheMaxRows
public void setCacheMaxRows(Integer cacheMaxRows)
-
getRefreshTime
public String getRefreshTime()
-
setRefreshTime
public void setRefreshTime(String refreshTime)
-
getRefreshTimeAmount
public TimeAmount getRefreshTimeAmount()
-
isRefreshAlways
public boolean isRefreshAlways()
-
setRefreshAlways
public void setRefreshAlways(boolean refreshAlways)
-
isAllColumnsEnabled
public boolean isAllColumnsEnabled()
-
setAllColumnsEnabled
public void setAllColumnsEnabled(boolean allColumnsEnabled)
-
getColumns
public List<DataColumnDef> getColumns()
-
setColumns
public void setColumns(List<DataColumnDef> columns)
-
getColumnById
public DataColumnDef getColumnById(String id)
-
addColumn
public boolean addColumn(String id, ColumnType type)
-
clone
public DataSetDef clone()
-
clone
protected void clone(DataSetDef def)
-
-