BusBoy
2
|
#include <DatasetContext.h>
Public Member Functions | |
DatasetContext () | |
virtual DataFile * | findDataFile (const DataKey &key) const |
Tries to find a file corresponding to the given key. More... | |
virtual bool | isOutput () const |
default is false More... | |
virtual bool | isQueryOnly () const |
Indicates that no file keys are pushed into the dataset Default is false. More... | |
virtual void | addDataFile (const DataKey &key, DataFile *file) |
Create a new output file for writing. More... | |
virtual std::string | getDataFileName (const DataKey &key) const |
Tries to get the name of the data file. More... | |
virtual RandomAccessFile * | readFileAsRandomAccess (const DataKey &key) const |
Access input file as a read-only random access file Default is to throw exception. More... | |
virtual WritableRandomAccessFile * | writeFileAsRandomAccess (const DataKey &key) const |
Access output file as a writable random access file Default is to throw exception. More... | |
BUSBOY::DatasetContext::DatasetContext | ( | ) |
Create a new output file for writing.
Default is to throw exception
Reimplemented in BUSBOY::ExternalDatasetContext.
Tries to find a file corresponding to the given key.
Default behavior is no file found.
Reimplemented in BUSBOY::ExternalDatasetContext.
|
virtual |
Tries to get the name of the data file.
Default is name not available.
Reimplemented in BUSBOY::ExternalDatasetContext.
|
virtual |
default is false
Reimplemented in BUSBOY::ExternalDatasetContext.
|
virtual |
Indicates that no file keys are pushed into the dataset Default is false.
Reimplemented in BUSBOY::ExternalDatasetContext.
|
virtual |
Access input file as a read-only random access file Default is to throw exception.
Reimplemented in BUSBOY::ExternalDatasetContext.
|
virtual |
Access output file as a writable random access file Default is to throw exception.
Reimplemented in BUSBOY::ExternalDatasetContext.
Copyright 2014 Google Inc. All rights reserved.