org.dashbuilder.dataset.DataColumn Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dashbuilder-dataset-api
Show all versions of dashbuilder-dataset-api
Dashbuilder Dataset API shared between client and server.
The newest version!
/*
* Copyright 2014 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.dashbuilder.dataset;
import java.util.List;
import org.dashbuilder.dataset.group.ColumnGroup;
import org.dashbuilder.dataset.group.GroupFunction;
/**
* A data set is a matrix of values composed by a fixed number of columns.
*/
public interface DataColumn {
/**
* @return The DataSet instance associated to this DataColumn.
* @see org.dashbuilder.dataset.DataSet
*/
DataSet getDataSet();
/**
* @return The identifier of this DataColumn
*/
String getId();
void setId(String id);
/**
* @return The column's type.
* @see org.dashbuilder.dataset.ColumnType
*/
ColumnType getColumnType();
void setColumnType(ColumnType columnType);
/**
* The column group settings
*
* @return null if this column is not the result of a group operation.
*/
ColumnGroup getColumnGroup();
void setColumnGroup(ColumnGroup columnGroup);
/**
* The interval type used to group this column.
*
* @return null if this column is not the result of a group operation.
*/
String getIntervalType();
void setIntervalType(String type);
/**
* The minimum column value
*
* @return null if this column is not the result of a group operation.
*/
Object getMinValue();
void setMinValue(Object minValue);
/**
* The maximum column value
*
* @return null if this column is not the result of a group operation.
*/
Object getMaxValue();
void setMaxValue(Object maxValue);
/**
* @return A List of the values for this DataColumn.
*/
List getValues();
void setValues(List values);
/**
* The group function settings
*
* @return null if this column is not the result of a group operation.
*/
GroupFunction getGroupFunction();
void setGroupFunction(GroupFunction groupFunction);
/**
* Only clone the column definition.
*/
DataColumn cloneEmpty();
/**
* Clone the column entirely (definition & values).
*/
DataColumn cloneInstance();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy