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
external
ExternalDatasetContext.h
Go to the documentation of this file.
1
17
#ifndef __BUSBOY_EXTERNAL_DATASET_CONTEXT_H__
18
#define __BUSBOY_EXTERNAL_DATASET_CONTEXT_H__
19
20
#include "
dataset/dataset_api.h
"
21
22
namespace
BUSBOY {
23
24
class
ExternalDatasetContextImpl;
25
26
class
ExternalDatasetContext
:
public
DatasetContext
{
27
28
public
:
29
30
ExternalDatasetContext
(
31
bool
output,
32
const
CExternalDatasetCallbacks
& callbacks,
33
ExternalDatasetSerializer
* serializer
34
);
35
36
DataFile
*
findDataFile
(
const
DataKey
& key)
const
;
37
38
bool
isOutput
()
const
;
39
40
bool
isQueryOnly
()
const
;
41
42
void
addDataFile
(
const
DataKey
& key,
DataFile
* file);
43
44
std::string
getDataFileName
(
const
DataKey
& key)
const
;
45
46
RandomAccessFile
*
readFileAsRandomAccess
(
const
DataKey
& key)
const
;
47
48
WritableRandomAccessFile
*
writeFileAsRandomAccess
(
const
DataKey
& key)
const
;
49
50
51
~ExternalDatasetContext
();
52
53
private
:
54
55
ExternalDatasetContextImpl
* m_impl;
56
57
// prevent calling these
58
ExternalDatasetContext
(
const
ExternalDatasetContext
& context);
59
ExternalDatasetContext
& operator=(
const
ExternalDatasetContext
& context);
60
61
};
62
63
}
64
#endif
65
66
67
Tue Nov 11 2014 23:19:41
1.8.3.1
Copyright 2014 Google Inc. All rights reserved.