org.h2.expression.analysis.PartitionData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of h2-mvstore Show documentation
Show all versions of h2-mvstore Show documentation
Fork of h2database to maintain Java 8 compatibility
The newest version!
/*
* Copyright 2004-2023 H2 Group. Multiple-Licensed under the MPL 2.0,
* and the EPL 1.0 (https://h2database.com/html/license.html).
* Initial Developer: H2 Group
*/
package org.h2.expression.analysis;
import java.util.HashMap;
import org.h2.value.Value;
/**
* Partition data of a window aggregate.
*/
public final class PartitionData {
/**
* Aggregate data.
*/
private Object data;
/**
* Evaluated result.
*/
private Value result;
/**
* Evaluated ordered result.
*/
private HashMap orderedResult;
/**
* Creates new instance of partition data.
*
* @param data
* aggregate data
*/
PartitionData(Object data) {
this.data = data;
}
/**
* Returns the aggregate data.
*
* @return the aggregate data
*/
Object getData() {
return data;
}
/**
* Returns the result.
*
* @return the result
*/
Value getResult() {
return result;
}
/**
* Sets the result.
*
* @param result
* the result to set
*/
void setResult(Value result) {
this.result = result;
data = null;
}
/**
* Returns the ordered result.
*
* @return the ordered result
*/
HashMap getOrderedResult() {
return orderedResult;
}
/**
* Sets the ordered result.
*
* @param orderedResult
* the ordered result to set
*/
void setOrderedResult(HashMap orderedResult) {
this.orderedResult = orderedResult;
data = null;
}
}