org.dashbuilder.dataset.DataSetMetadata 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.
/*
* 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.def.DataSetDef;
/**
* Metadata associated with a data set instance
*/
public interface DataSetMetadata {
/**
* The unique identifier for this data set.
*/
String getUUID();
/**
* Get the number of rows.
*/
int getNumberOfRows();
/**
* Get the number of columns.
*/
int getNumberOfColumns();
/**
* Get the identifier of the specified column.
* @param columnIndex The column index (starting at 0).
*/
String getColumnId(int columnIndex);
/**
* Get the column ids
*/
List getColumnIds();
/**
* Get the type of the specified column.
* @param columnIndex The column index (starting at 0).
*/
ColumnType getColumnType(int columnIndex);
/**
* Get the type of the specified column.
* @param columnId The column id.
*/
ColumnType getColumnType(String columnId);
/**
* Get the column types
*/
List getColumnTypes();
/**
* Get the estimated size in bytes.
*/
int getEstimatedSize();
/**
* Get the definition this data set has been created from.
* Is null for manually created data set instances.
*/
DataSetDef getDefinition();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy