public interface Dataset
Modifier and Type | Field and Description |
---|---|
static int |
DATABASE |
static int |
FILES |
static int |
STREAMS |
Modifier and Type | Method and Description |
---|---|
boolean |
close()
Close access to this dataset.
|
byte[] |
getBytes()
A serialized representation of this dataset, which would allow one to
reconstruct and initialize it from this marshalled representation.
|
DataAvailabilityNotifier |
getDataAvailabilityNotifier()
Retrieve the data availability notifier for this dataset.
|
int |
getDatasetType()
Retrieve the type of the data set
|
java.lang.String |
getDescription()
Retrieve a description of the dataset
|
java.lang.String |
getIdentifier()
Retrieve the identifier for this dataset.
|
long |
getLastModificationTime()
Retrieve the last update to this dataset
|
boolean |
initializeDataset()
Invokes the initialization of the dataset.
|
boolean |
isAvailable()
A check to see if the dataset is available
|
boolean |
isDataAvailable()
This polls the dataset to see if data is available for consumption.
|
boolean |
isInitialized()
Check to see if the dataset has been initialized
|
boolean |
needsInitialization()
Indicates whether the dataset needs to be initialized prior to being
used.
|
boolean |
supportsDataAvailabilityNotifications()
Indicates whether this dataset supports dynamic data availability
notifications
|
static final int STREAMS
static final int FILES
static final int DATABASE
boolean needsInitialization()
true
if the dataset need initialization;
false
otherwise.boolean isInitialized()
true
if the dataset is initialized;
false
otherwise.boolean initializeDataset() throws DatasetException
true
if the dataset has been initialized;
false
otherwise.DatasetException
int getDatasetType()
java.lang.String getDescription()
boolean isAvailable()
true
if the dataset is available;false
otherwise.boolean isDataAvailable()
true
if data is available on this dataset;
false
otherwise.DatasetException
long getLastModificationTime()
java.lang.String getIdentifier()
boolean close() throws DatasetException
true
if a graceful closure of this dataset was
performed;false
otherwise.DatasetException
boolean supportsDataAvailabilityNotifications()
true
if this dataset supports data availability
notifications;false
otherwise.DataAvailabilityNotifier getDataAvailabilityNotifier()
byte[] getBytes() throws java.io.IOException
java.io.IOException