public interface FeatureData extends Data
getRowCount() should be efficient and give a good indication of the
size of the dataset. If the row count is high use getRow(int) to
subset the dataset.| Modifier and Type | Method and Description |
|---|---|
List<Feature> |
getFeatures()
Gets the features in the dataset as a list
|
Feature[] |
getFeaturesAsArray()
Gets the features in the dataset as an array
|
FeatureDataRow |
getRow(int rowIndex)
Gets the row at a specific position
|
int |
getRowCount()
Gets the number of rows in the dataset
|
List<SimpleEntity> |
getRowHeaders()
Get the all the row headers
|
SimpleEntity[] |
getRowHeadersAsArray()
Get the all the row headers as an array
|
List<FeatureDataRow> |
getRows()
Gets all the rows in the dataset as a list
|
FeatureDataRow[] |
getRowsAsArray()
Gets all the rows in the dataset as an array
|
List<List<Object>> |
getValues()
Gets all the values in the database as a list of lists
|
Object[][] |
getValuesAsArray()
Gets all the values in the database as a 2-dimensional array
|
void |
writeData(Path filePath,
FileType type)
Writes the data to a file
|
getDataset, getHeader, getIDs, getSizegetName, getUniqueIdentifierList<Feature> getFeatures()
Feature[] getFeaturesAsArray()
List<List<Object>> getValues()
Object[][] getValuesAsArray()
int getRowCount()
FeatureDataRow getRow(int rowIndex)
rowIndex - the index of the row requiredList<FeatureDataRow> getRows()
FeatureDataRow[] getRowsAsArray()
List<SimpleEntity> getRowHeaders()
SimpleEntity[] getRowHeadersAsArray()
void writeData(Path filePath, FileType type) throws IOException
filePath - the path of the file to be writtentype - the type of the fileIOException - if the file can not be writtenCopyright © 2017. All rights reserved.