Class AbstractQuery
- java.lang.Object
-
- com.macrofocus.molap.aggregates.query.AbstractQuery
-
- All Implemented Interfaces:
Query
- Direct Known Subclasses:
CuboidQuery
,CuboidsQuery
,OrderQuery
,PivotQuery
public abstract class AbstractQuery extends java.lang.Object implements Query
-
-
Constructor Summary
Constructors Constructor Description AbstractQuery()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addQueryListener(QueryListener listener)
Add a listener to the list that's notified each time a change to the query occurs.void
addWeakQueryListener(QueryListener listener)
Add a listener to the list that's notified each time a change to the query occurs.DataFrame
asDataFrame(boolean includeIndex)
Query
collapse()
Query
dice(java.util.Set<java.lang.Object> valuesSets)
CuboidQuery
drillDown(java.lang.Object... columns)
Query
drillUp()
boolean
isDirty()
protected void
notifyQueryChanged()
Query
on(Cuboid... cuboids)
Query
order(Aggregation... aggregations)
Query
pivot(Aggregation aggregation)
Query
pivot(Aggregation aggregation, java.lang.Object[] columns)
void
removeQueryListener(QueryListener listener)
Remove a listener to the list that's notified each time a change to the query occurs.void
removeQueryListeners()
Remove all listeners to the list that's notified each time a change to the query occurs.void
setDirty(boolean dirty)
Query
slice(java.lang.Object value)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.macrofocus.molap.aggregates.query.Query
getAggregations, getCuboid, getDimensions, getGroups, getValue, setDice
-
-
-
-
Method Detail
-
isDirty
public boolean isDirty()
-
setDirty
public void setDirty(boolean dirty)
-
drillDown
public CuboidQuery drillDown(java.lang.Object... columns)
-
dice
public Query dice(java.util.Set<java.lang.Object> valuesSets)
-
pivot
public Query pivot(Aggregation aggregation, java.lang.Object[] columns)
-
pivot
public Query pivot(Aggregation aggregation)
-
order
public Query order(Aggregation... aggregations)
-
asDataFrame
public DataFrame asDataFrame(boolean includeIndex)
- Specified by:
asDataFrame
in interfaceQuery
-
addQueryListener
public void addQueryListener(QueryListener listener)
Description copied from interface:Query
Add a listener to the list that's notified each time a change to the query occurs.- Specified by:
addQueryListener
in interfaceQuery
- Parameters:
listener
- the QueryListener
-
addWeakQueryListener
public void addWeakQueryListener(QueryListener listener)
Description copied from interface:Query
Add a listener to the list that's notified each time a change to the query occurs. The listener will automatically be disposed of should no other object have a reference to it.- Specified by:
addWeakQueryListener
in interfaceQuery
- Parameters:
listener
- the QueryListener
-
removeQueryListener
public void removeQueryListener(QueryListener listener)
Description copied from interface:Query
Remove a listener to the list that's notified each time a change to the query occurs.- Specified by:
removeQueryListener
in interfaceQuery
- Parameters:
listener
- the QueryListener
-
removeQueryListeners
public void removeQueryListeners()
Description copied from interface:Query
Remove all listeners to the list that's notified each time a change to the query occurs.- Specified by:
removeQueryListeners
in interfaceQuery
-
notifyQueryChanged
protected void notifyQueryChanged()
-
-