public class Queries extends Object
| Constructor and Description |
|---|
Queries() |
| Modifier and Type | Method and Description |
|---|---|
static String |
asIDSet(ScopeDescriptor desc) |
ResultSet |
getAvailableDimensions(java.time.Instant from,
java.time.Instant to,
ScopeDescriptor scope,
MeasureResolution resolution)
Returns Dimensions.* fields
|
PreparedStatement |
getContextInsertionPreparedStatement()
Returned parameters order is
ID,LABEL
|
PreparedStatement |
getDimensionInsertionPreparedStatement()
Returned parameters order is
ID,LABEL,GROUP,AGGREGATED_MEASURE
|
long |
getMeasureCount(String table) |
PreparedStatement |
getMeasureInsertionPreparedStatement()
Returned parameters order is
Context, Dimension, Time, Measure, Measure
NB : Measure is replicated in order to manage update on conflict
|
ResultSet |
listContexts() |
ResultSet |
listDimensions() |
PreparedStatement |
prepareMeasuresByDimension(ScopeDescriptor scope,
MeasureResolution resolution)
Prepares a statement for Getting Dim=? in time interval for the scope set
PS params :
1- long current slice of time
2- long current slice of time
3- String dimension
|
public long getMeasureCount(String table) throws SQLException
SQLExceptionpublic ResultSet listDimensions() throws SQLException
SQLExceptionpublic ResultSet listContexts() throws SQLException
SQLExceptionpublic PreparedStatement getMeasureInsertionPreparedStatement() throws SQLException
SQLExceptionpublic PreparedStatement getDimensionInsertionPreparedStatement() throws SQLException
SQLExceptionpublic PreparedStatement getContextInsertionPreparedStatement() throws SQLException
SQLExceptionpublic ResultSet getAvailableDimensions(java.time.Instant from, java.time.Instant to, ScopeDescriptor scope, MeasureResolution resolution) throws SQLException
from - to - scope - resolution - SQLExceptionpublic PreparedStatement prepareMeasuresByDimension(ScopeDescriptor scope, MeasureResolution resolution) throws SQLException
from - to - scope - resolution - SQLExceptionpublic static final String asIDSet(ScopeDescriptor desc)
Copyright © 2018. All Rights Reserved.