A platform for high-performance distributed tool and library development written in C++. It can be deployed in two different cluster modes: standalone or distributed. API for v0.5.0, released on June 13, 2018.
|
#include <ScanUserSetBase.h>
Public Member Functions | |
ScanUserSetBase ()=default | |
ScanUserSetBase (std::string dbName, std::string setName) | |
~ScanUserSetBase () | |
void | setUpAndCopyFrom (void *target, void *source) const override |
void | deleteObject (void *deleteMe) override |
size_t | getSize (void *forMe) override |
ComputeSourcePtr | getComputeSource (TupleSpec &schema, ComputePlan &plan) override |
void | setIterator (PageCircularBufferIteratorPtr iterator) |
void | setProxy (DataProxyPtr proxy) |
void | setBatchSize (int batchSize) override |
int | getBatchSize () |
void | setOutput (std::string dbName, std::string setName) override |
void | setDatabaseName (std::string dbName) |
void | setSetName (std::string setName) |
std::string | getDatabaseName () override |
std::string | getSetName () override |
std::string | getComputationType () override |
ComputationTypeID | getComputationTypeID () override |
std::string | toTCAPString (std::vector< InputTupleSetSpecifier > &inputTupleSets, int computationLabel, std::string &outputTupleSetName, std::vector< std::string > &outputColumnNames, std::string &addedOutputColumnName) override |
std::string | toTCAPString (std::string inputTupleSetName, std::vector< std::string > &inputColumnNames, std::vector< std::string > &inputColumnsToApply, int computationLabel, std::string &outputTupleSetName, std::vector< std::string > &outputColumnNames, std::string &addedOutputColumnName) |
int | getNumInputs () override |
std::string | getIthInputType (int i) override |
std::string | getOutputType () override |
bool | needsMaterializeOutput () override |
Public Member Functions inherited from pdb::Computation | |
virtual void | extractLambdas (std::map< std::string, GenericLambdaObjectPtr > &returnVal) |
virtual ComputeSinkPtr | getComputeSink (TupleSpec &consumeMe, TupleSpec &projection, ComputePlan &plan) |
virtual ComputeSinkPtr | getComputeSink (TupleSpec &consumeMe, TupleSpec &whichAttsToOpOn, TupleSpec &projection, ComputePlan &plan) |
virtual SinkMergerPtr | getSinkMerger (TupleSpec &consumeMe, TupleSpec &projection, ComputePlan &plan) |
virtual SinkMergerPtr | getSinkMerger (TupleSpec &consumeMe, TupleSpec &whichAttsToOpOn, TupleSpec &projection, ComputePlan &plan) |
virtual SinkShufflerPtr | getSinkShuffler (TupleSpec &consumeMe, TupleSpec &projection, ComputePlan &plan) |
JiaNote: add below interface for shuffling multiple join map sinks for hash partitioned join. More... | |
virtual SinkShufflerPtr | getSinkShuffler (TupleSpec &consumeMe, TupleSpec &whichAttsToOpOn, TupleSpec &projection, ComputePlan &plan) |
bool | hasInput () |
Handle< Computation > & | getIthInput (int i) const |
int | getNumConsumers () |
void | setNumConsumers (int numConsumers) |
bool | setInput (Handle< Computation > toMe) |
bool | setInput (int whichSlot, Handle< Computation > toMe) |
bool | isTraversed () |
void | setTraversed (bool traversed) |
std::string | getOutputTupleSetName () |
void | setOutputTupleSetName (std::string outputTupleSetName) |
std::string | getOutputColumnToApply () |
void | setOutputColumnToApply (std::string outputColumnToApply) |
virtual bool | isUsingCombiner () |
virtual void | setUsingCombiner (bool useCombinerOrNot) |
void | setAllocatorPolicy (AllocatorPolicy myPolicy) |
void | setObjectPolicy (ObjectPolicy myPolicy) |
AllocatorPolicy | getAllocatorPolicy () |
ObjectPolicy | getObjectPolicy () |
virtual void | setCollectAsMap (bool collectAsMapOrNot) |
virtual bool | isCollectAsMap () |
virtual int | getNumNodesToCollect () |
virtual void | setNumNodesToCollect (int numNodesToCollect) |
Public Member Functions inherited from pdb::Object | |
void | setVTablePtr (void *setToMe) |
void * | getVTablePtr () |
Protected Attributes | |
PageCircularBufferIteratorPtr | iterator = nullptr |
DataProxyPtr | proxy = nullptr |
String | dbName |
String | setName |
int | batchSize {} |
String | outputType = "" |
Additional Inherited Members | |
Static Public Member Functions inherited from pdb::Object | |
static void * | operator new (size_t sz, const std::nothrow_t &tag) |
static void * | operator new (size_t sz) |
static void | operator delete (void *me) |
static void * | operator new (std::size_t count, void *ptr) |
Definition at line 35 of file ScanUserSetBase.h.
|
default |
This constructor is for constructing builtin object
|
inline |
User should only use following constructor
dbName | |
setName |
Definition at line 49 of file ScanUserSetBase.h.
|
inline |
Definition at line 56 of file ScanUserSetBase.h.
|
inlineoverridevirtual |
Reimplemented from pdb::Object.
Definition at line 78 of file ScanUserSetBase.h.
|
inline |
Definition at line 147 of file ScanUserSetBase.h.
|
inlineoverridevirtual |
Implements pdb::Computation.
Definition at line 172 of file ScanUserSetBase.h.
|
inlineoverridevirtual |
to return the type if of this computation
Implements pdb::Computation.
Definition at line 180 of file ScanUserSetBase.h.
|
inlineoverridevirtual |
If this particular computation can be used as a compute source in a pipeline, this method will return the compute source object associated with the computation...
In the general case, this method accepts the logical plan that this guy is a part of, as well as the actual TupleSpec that this guy is supposed to produce, and then returns a pointer to a ComputeSource object that can actually produce TupleSet objects corresponding to that particular TupleSpec
Reimplemented from pdb::Computation.
Definition at line 86 of file ScanUserSetBase.h.
|
inlineoverridevirtual |
Reimplemented from pdb::Computation.
Definition at line 164 of file ScanUserSetBase.h.
|
inlineoverridevirtual |
gets the name of the i^th input type...
i |
Implements pdb::Computation.
Definition at line 266 of file ScanUserSetBase.h.
|
inlineoverridevirtual |
get the number of inputs to this query type
Implements pdb::Computation.
Definition at line 262 of file ScanUserSetBase.h.
|
inlineoverridevirtual |
gets the output type of this query as a string
Implements pdb::Computation.
Definition at line 270 of file ScanUserSetBase.h.
|
inlineoverridevirtual |
Reimplemented from pdb::Computation.
Definition at line 168 of file ScanUserSetBase.h.
|
inlineoverridevirtual |
Reimplemented from pdb::Object.
Definition at line 82 of file ScanUserSetBase.h.
|
inlineoverridevirtual |
Reimplemented from pdb::Computation.
Definition at line 277 of file ScanUserSetBase.h.
|
inlineoverridevirtual |
Reimplemented from pdb::Computation.
Definition at line 143 of file ScanUserSetBase.h.
|
inline |
Definition at line 156 of file ScanUserSetBase.h.
|
inline |
Be careful here that we put PageCircularBufferIteratorPtr and DataProxyPtr in a pdb object
iterator |
Definition at line 135 of file ScanUserSetBase.h.
|
inlineoverridevirtual |
set user set for output when necessary (e.g. results need to be materialized) by default it do nothing, subclasses shall override this function to handle the case when results need to be materialized.
Reimplemented from pdb::Computation.
Definition at line 151 of file ScanUserSetBase.h.
|
inline |
Definition at line 139 of file ScanUserSetBase.h.
|
inline |
Definition at line 160 of file ScanUserSetBase.h.
|
inlineoverridevirtual |
Normally these would be defined by the ENABLE_DEEP_COPY macro, but because Array is the one variable-sized type that we allow, we need to manually override these methods
Reimplemented from pdb::Object.
Definition at line 65 of file ScanUserSetBase.h.
|
inlineoverridevirtual |
below function implements the interface for parsing computation into a TCAP string
inputTupleSets | |
computationLabel | |
outputTupleSetName | |
outputColumnNames | |
addedOutputColumnName |
Implements pdb::Computation.
Definition at line 193 of file ScanUserSetBase.h.
|
inline |
Below function returns a TCAP string for this Computation
inputTupleSetName | |
inputColumnNames | |
inputColumnsToApply | |
computationLabel | |
outputTupleSetName | |
outputColumnNames | |
addedOutputColumnName |
Definition at line 223 of file ScanUserSetBase.h.
|
protected |
Definition at line 294 of file ScanUserSetBase.h.
|
protected |
Definition at line 290 of file ScanUserSetBase.h.
|
protected |
Be careful here that we put PageCircularBufferIteratorPtr and DataProxyPtr in a pdb object.
Definition at line 286 of file ScanUserSetBase.h.
|
protected |
Definition at line 296 of file ScanUserSetBase.h.
|
protected |
Definition at line 288 of file ScanUserSetBase.h.
|
protected |
Definition at line 292 of file ScanUserSetBase.h.