POST /tables/{table}/pivot (extension 1.1.0): up to 3 row and 2 column
dimensions with date buckets or nice numeric bins, fields from to-one
exposed joins, count/sum/avg/min/max/distinct/percentile measures,
totals, Other-merging by top-N, the privacy guard and a drill per cell.
FieldAnalysisAccessResolver maps fields to FULL / EXACT_MATCH_ONLY /
NONE (core secured-data tiers when present, FieldSecurityLock otherwise);
only FULL fields are analyzable, drills never name others, and exact-run
cache keys include the user's field-access fingerprint.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
70 lines
2.4 KiB
Java
70 lines
2.4 KiB
Java
/*
|
|
* QQQ - Low-code Application Framework for Engineers.
|
|
* Copyright (C) 2021-2025. Kingsrook, LLC
|
|
* 651 N Broad St Ste 205 # 6917 | Middletown DE 19709 | United States
|
|
* contact@kingsrook.com
|
|
* https://github.com/Kingsrook/
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* https://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
package com.kingsrook.qbits.dataanalysis.result;
|
|
|
|
import java.io.Serializable;
|
|
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
|
|
|
/*******************************************************************************
|
|
** Typed PivotHeader contract.
|
|
*******************************************************************************/
|
|
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
|
|
public class PivotHeader implements Serializable
|
|
{
|
|
private Serializable value;
|
|
private String label;
|
|
|
|
|
|
/*******************************************************************************
|
|
** Getter for value.
|
|
*******************************************************************************/
|
|
public Serializable getValue()
|
|
{
|
|
return (value);
|
|
}
|
|
|
|
/*******************************************************************************
|
|
** Fluent setter for value.
|
|
*******************************************************************************/
|
|
public PivotHeader withValue(Serializable value)
|
|
{
|
|
this.value = value;
|
|
return (this);
|
|
}
|
|
|
|
/*******************************************************************************
|
|
** Getter for label.
|
|
*******************************************************************************/
|
|
public String getLabel()
|
|
{
|
|
return (label);
|
|
}
|
|
|
|
/*******************************************************************************
|
|
** Fluent setter for label.
|
|
*******************************************************************************/
|
|
public PivotHeader withLabel(String label)
|
|
{
|
|
this.label = label;
|
|
return (this);
|
|
}
|
|
}
|