src/logicalPlan/source/LogicalPlanBuilder.cc
Output makeOutputFromStore(const Store& store) {
    vector<string> destinationTokens;  // tokenize store.destination by whitespace
    {
        istringstream iss(store.destination);
        copy(istream_iterator<string>(iss),
             istream_iterator<string>(),
             back_inserter(destinationTokens));

        if (destinationTokens.size() != 2)
            throw "unrecognized source string " + store.destination;
    }

    AttList columnsToStore = makeAttributeList(store.columnsToStore);
    TupleSpec toStore(store.columnsToStore.tableName, columnsToStore);

    Output out(toStore, destinationTokens[0], destinationTokens[1]);

    return out;
}
/**
 * Creates a corresponding Output from the given Store:
 *
 * For example, if the given GreaterThan modeled the following TCAP statement:
 *
 *     store F[a,b] "db set"
 *
 * the created Output would have the following form:
 *
 *     input:   ("F", ["a", "b"])
 *     dbName:  "db"
 *     setName: "set"
 *
 * To form "dbName" and "setName", the entire string literal is tokenized by whitespace and the
 * first token
 * is used for "dbName" and the second for "setName".  If the tokenization of store.destination
 * results in anything
 * but exactly two tokens, a string exception is thrown.
 *
 * @param store the Store to translate into an Ouput
 * @return an Ouput corresponding to store
 */
Creates a corresponding Output from the given Store:
For example, if the given GreaterThan modeled the following TCAP statement.

store F[a,b] "db set"

the created Output would have the following form.





@param store the Store to translate into an Ouput
@return an Ouput corresponding to store
Creates a corresponding Output from the given Store : For example if the given GreaterThan modeled the following TCAP statement . store F [ a b ] " db set " the created Output would have the following form . @param store the Store to translate into an Ouput @return an Ouput corresponding to store
Output makeOutputFromStore(const Store& store) {
    vector<string> destinationTokens;  
    {
        istringstream iss(store.destination);
        copy(istream_iterator<string>(iss),
             istream_iterator<string>(),
             back_inserter(destinationTokens));
        if (destinationTokens.size() != 2)
            throw "unrecognized source string " + store.destination;
    }
    AttList columnsToStore = makeAttributeList(store.columnsToStore);
    TupleSpec toStore(store.columnsToStore.tableName, columnsToStore);
    Output out(toStore, destinationTokens[0], destinationTokens[1]);
    return out;
}
Output makeOutputFromStore ( const Store & store ) { vector < string > destinationTokens ; { istringstream iss ( store . destination ) ; copy ( istream_iterator < string > ( iss ) , istream_iterator < string > ( ) , back_inserter ( destinationTokens ) ) ; if ( destinationTokens . size ( ) != 2 ) throw " " + store . destination ; } AttList columnsToStore = makeAttributeList ( store . columnsToStore ) ; TupleSpec toStore ( store . columnsToStore . tableName , columnsToStore ) ; Output out ( toStore , destinationTokens [ 0 ] , destinationTokens [ 1 ] ) ; return out ; }
Creates a corresponding Output from the given Store:
 For example, if the given GreaterThan modeled the following TCAP statement:
Creates a corresponding Output from the given Store : For example if the given GreaterThan modeled the following TCAP statement :
// tokenize store.destination by whitespace