27 #ifndef Hypertable_RangeServer_ScanContext_h
28 #define Hypertable_RangeServer_ScanContext_h
71 bool family_mask[256];
75 typedef std::set<const char *, LtCstr, CstrAlloc>
CstrRowSet;
89 SchemaPtr &schema, std::set<uint8_t> *columns=0) :
90 cell_predicates(256), row_regexp(0), value_regexp(0), timeout_ms(0) {
101 : cell_predicates(256), row_regexp(0), value_regexp(0), timeout_ms(0) {
111 : cell_predicates(256), row_regexp(0), value_regexp(0), timeout_ms(0) {
122 : cell_predicates(256), row_regexp(0), value_regexp(0), timeout_ms(0) {
127 if (row_regexp != 0) {
130 if (value_regexp != 0) {
136 scan_spec_builder = *spec;
137 spec = &scan_spec_builder.
get();
138 range_managed = *range;
139 range = &range_managed;
159 SchemaPtr &sp, std::set<uint8_t> *columns=0);
173 #endif // Hypertable_RangeServer_ScanContext_h
ScanSpecBuilder scan_spec_builder
SerializedKey start_serkey
void initialize(const String &name)
Public initialization function - creates a singleton instance of LogWriter.
ScanSpec & get()
Returns the built ScanSpec object.
ScanContext(int64_t rev, SchemaPtr &schema)
Constructor.
std::string String
A String is simply a typedef to std::string.
Scan context information.
A dynamic, resizable and reference counted memory buffer.
bool has_start_cf_qualifier
Scan predicate and control specification.
vector< CellPredicate > cell_predicates
The PageArena allocator is simple and fast, avoiding individual mallocs/frees.
Helper class for building a ScanSpec.
std::set< const char *, LtCstr, CstrAlloc > CstrRowSet
ScanContext(int64_t rev=TIMESTAMP_MAX)
Constructor.
pair< int64_t, int64_t > time_interval
Declarations for CellPredicate.
Declarations for RangeSpec and RangeSpecManaged.
static const int64_t TIMESTAMP_MAX
Provides access to internal components of opaque key.
A serializable ByteString.
std::shared_ptr< Schema > SchemaPtr
Smart pointer to Schema.
ScanContext(SchemaPtr &schema)
Constructor.
ScanContext(int64_t rev, const ScanSpec *ss, const RangeSpec *range, SchemaPtr &schema, std::set< uint8_t > *columns=0)
Constructor.
String extensions and helpers: sets, maps, append operators etc.
Error codes, Exception handling, error logging.
Wrapper for RangeSpec providing member storage.
RangeSpecManaged range_managed
std::shared_ptr< ScanContext > ScanContextPtr