public final class DatasetMetadata extends Object
Constructor and Description |
---|
DatasetMetadata(FileClient fileClient,
File dataset)
Creates a DatasetMetadata for an existing dataset.
|
DatasetMetadata(FileClient fileClient,
Path dataset)
Creates a DatasetMetadata for an existing dataset.
|
DatasetMetadata(FileClient fileClient,
String datasetName)
Creates a DatasetMetadata for an existing dataset.
|
Modifier and Type | Method and Description |
---|---|
int |
getBlockSize()
Returns the block size of the data set.
|
long |
getRowCount()
Returns the number of rows in the data set or -1 if unknown.
|
TokenType |
getSchema()
Returns the schema of the data set.
|
DatasetStorageFormat |
getStorageFormat()
Gets the storage format of the data-set.
|
static boolean |
isDataset(URL file)
Returns whether the given file is a valid dataset
|
public DatasetMetadata(FileClient fileClient, String datasetName)
fileClient
- the clientdatasetName
- the name of the dataset to loadpublic DatasetMetadata(FileClient fileClient, File dataset)
fileClient
- the clientdataset
- the name of the dataset to loadpublic DatasetMetadata(FileClient fileClient, Path dataset)
fileClient
- the clientdataset
- the name of the dataset to loadpublic final DatasetStorageFormat getStorageFormat()
public final TokenType getSchema()
public final int getBlockSize()
public final long getRowCount()
public static boolean isDataset(URL file)
file
- the fileCopyright © 2016 Actian Corporation. All Rights Reserved.