コード例 #1
0
ファイル: LogicalMatch.cpp プロジェクト: Goon83/scidb
 LogicalMatch(const string& logicalName, const std::string& alias):
     LogicalOperator(logicalName, alias)
 {
 	ADD_PARAM_INPUT()
 	ADD_PARAM_INPUT()
     ADD_PARAM_CONSTANT("int64");
     ADD_PARAM_CONSTANT("int64");
 }
コード例 #2
0
ファイル: Logicalcu.cpp プロジェクト: jrivers96/chunk_unique
    Logicalcu(const string& logicalName, const string& alias):
        LogicalOperator(logicalName, alias)
    {
        ADD_PARAM_INPUT()
        _usage = "cu(A)\n"
                 "filter chunk-wise unique elements\n"
                 "where:\n"
                 "  - A is an array with one string attribute\n\n"
"cu(A) returns a sparse array with schema identical to A whose entries contain\n"
"unique elements within each chunk by marking repeated entries empty. The array\n"
"A may be multi-dimensional and chunked arbitrarily. The cu filter is applied\n"
"independently within each chunk. It is intended to help speed up the SciDB uniq\n"
"and sort operators by cutting down on the amount of data to be sorted. Note\n"
"that the order of returned elements may differ from the input array although\n"
"the schema will be the same.\n"
"BASIC EXAMPLE:\n"
"iquery -aq \"load_library('cu')\"\n"
"iquery -aq \"cu(build(<s:string>[i=1:4,4,0],'{1}[(x),(y),(x),(a)]',true))\"\n"
"{i} s   \n"
"{1} 'x' \n"
"{2} 'y' \n"
"{3} 'a' \n"
"{4} 'x' \n\n"
"iquery -aq \"cu(build(<s:string>[i=1:4,4,0],'{1}[(x),(y),(x),(a)]',true))\"\n"
"{i} s  \n"
"{1} 'a'\n"
"{2} 'x'\n"
"{4} 'y'\n\n";
    }
コード例 #3
0
 LogicalSummarize(const std::string& logicalName, const std::string& alias) :
         LogicalOperator(logicalName, alias)
 {
     ADD_PARAM_INPUT();
     ADD_PARAM_VARIES();
 }
コード例 #4
0
	LogicalFastCount(const std::string& logicalName, const std::string& alias):
		LogicalOperator(logicalName, alias)
{
		ADD_PARAM_INPUT();
		//ADD_PARAM_VARIES();
}