Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
984 changes: 921 additions & 63 deletions griddb_node.js

Large diffs are not rendered by default.

12 changes: 10 additions & 2 deletions src/AggregationResult.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@

namespace griddb {

/**
* @brief Constructor a new Aggregation Result:: Aggregation Result object
* @param aggResult Stores the result of an aggregation operation
*/
AggregationResult::AggregationResult(GSAggregationResult* aggResult) :
mAggResult(aggResult), timestamp_output_with_float(false) {
}
Expand All @@ -27,7 +31,7 @@ namespace griddb {
}

/**
* Release AggregationResult resource
* @brief Release AggregationResult resource
*/
void AggregationResult::close() {
if (mAggResult != NULL) {
Expand All @@ -37,9 +41,12 @@ namespace griddb {
}

/**
* Obtains the result of aggregating numeric-type values.
* @brief Obtains the result of aggregating numeric-type values.
* @param type Column type
* @param *agValue aggregation result
*/
void AggregationResult::get(GSType type, griddb::Field *agValue) {
assert(agValue != NULL);
void *value;
agValue->type = type;
switch (type) {
Expand All @@ -62,4 +69,5 @@ namespace griddb {
"Value cannot be retrieved from Aggregation result");
}
}

} /* namespace griddb */
3 changes: 2 additions & 1 deletion src/AggregationResult.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#ifndef _AGGREGATIONRESULT_H_
#define _AGGREGATIONRESULT_H_

#include <assert.h>

#include "GSException.h"
#include "Field.h"
#include "gridstore.h"
Expand All @@ -35,7 +37,6 @@ class AggregationResult {
bool timestamp_output_with_float;
~AggregationResult();
void close();

void get(GSType type, griddb::Field *agValue);
AggregationResult(GSAggregationResult* aggResult);

Expand Down
Loading