BusBoy
2
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
cpp
api
dataset
DatasetContext.h
Go to the documentation of this file.
1
17
#ifndef __BUSBOY_DATASET_CONTEXT_H__
18
#define __BUSBOY_DATASET_CONTEXT_H__
19
20
#include "
DataFile.h
"
21
#include "
RandomAccessFile.h
"
22
#include "
WritableRandomAccessFile.h
"
23
#include "
keys/keys_api.h
"
24
25
namespace
BUSBOY {
26
27
28
class
DatasetContext
{
29
30
public
:
31
32
DatasetContext
();
33
39
virtual
DataFile
*
findDataFile
(
const
DataKey
& key)
const
;
40
44
virtual
bool
isOutput
()
const
;
45
50
virtual
bool
isQueryOnly
()
const
;
51
56
virtual
void
addDataFile
(
const
DataKey
& key,
DataFile
* file);
57
63
virtual
std::string
getDataFileName
(
const
DataKey
& key)
const
;
64
69
virtual
RandomAccessFile
*
readFileAsRandomAccess
(
const
DataKey
& key)
const
;
70
75
virtual
WritableRandomAccessFile
*
writeFileAsRandomAccess
(
const
DataKey
& key)
const
;
76
77
};
78
79
}
80
#endif
81
82
Tue Nov 11 2014 23:19:41
1.8.3.1
Copyright 2014 Google Inc. All rights reserved.