org.gcube.contentmanagement.timeseriesservice.impl.timeseries.operations
Class Operation

java.lang.Object
  extended by org.gcube.contentmanagement.timeseriesservice.impl.timeseries.operations.Operation
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AddFAOAreas, Aggregation, ColumnChange, Denormalization, Enrichment, Filter, Grouping, Union

public abstract class Operation
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
Operation()
           
 
Method Summary
 void apply(java.lang.String previuosTableName, ColumnDefinition[] previousTableDefinition)
           
 void discard()
           
 ColumnDefinition[] getColumnDefinition()
           
static ColumnDefinition getColumnDefinitionReference(java.lang.String fieldId, ColumnDefinition[] columnsDefintion)
           
 long getCount()
           
 CurrentState getCurrentState()
           
 java.lang.String getDataAsJSon(Limit limit, Order order)
           
 TSHistoryItem getHistoryItem()
           
 OperationType getType()
           
 java.lang.String getViewName()
           
 void setColumnDefinition(ColumnDefinition[] columnDefintion)
           
 void setCount(long count)
           
 void setCurrentState(CurrentState currentState)
           
 void setHistoryItem(TSHistoryItem historyItem)
           
abstract  void setParameters(java.lang.Object... parameters)
           
 void setType(OperationType _type)
           
 void setViewName(java.lang.String viewName)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Operation

public Operation()
Method Detail

setParameters

public abstract void setParameters(java.lang.Object... parameters)
                            throws java.lang.Exception
Throws:
java.lang.Exception

getDataAsJSon

public java.lang.String getDataAsJSon(Limit limit,
                                      Order order)
                               throws java.lang.Exception
Throws:
java.lang.Exception

apply

public void apply(java.lang.String previuosTableName,
                  ColumnDefinition[] previousTableDefinition)
           throws java.lang.Exception
Throws:
java.lang.Exception

getCount

public long getCount()

setCount

public void setCount(long count)

getViewName

public java.lang.String getViewName()

setViewName

public void setViewName(java.lang.String viewName)

getType

public OperationType getType()

setType

public void setType(OperationType _type)

getCurrentState

public CurrentState getCurrentState()

setCurrentState

public void setCurrentState(CurrentState currentState)

getColumnDefinition

public ColumnDefinition[] getColumnDefinition()

setColumnDefinition

public void setColumnDefinition(ColumnDefinition[] columnDefintion)

discard

public void discard()
             throws java.lang.Exception
Throws:
java.lang.Exception

getColumnDefinitionReference

public static ColumnDefinition getColumnDefinitionReference(java.lang.String fieldId,
                                                            ColumnDefinition[] columnsDefintion)
                                                     throws java.lang.Exception
Parameters:
fieldId -
Returns:
Throws:
java.lang.Exception

getHistoryItem

public TSHistoryItem getHistoryItem()

setHistoryItem

public void setHistoryItem(TSHistoryItem historyItem)