org.gcube.contentmanagement.timeseriesservice.impl.timeseries.operations
Class Operation
java.lang.Object
org.gcube.contentmanagement.timeseriesservice.impl.timeseries.operations.Operation
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- AddFAOAreas, Aggregation, ColumnChange, Denormalization, Enrichment, Filter, Grouping, Union
public abstract class Operation
- extends Object
- implements Serializable
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
columnDefinition
protected ColumnDefinition[] columnDefinition
uuidGen
protected static final org.apache.axis.components.uuid.UUIDGen uuidGen
extimatedCount
protected long extimatedCount
currentState
protected CurrentState currentState
type
protected OperationType type
viewName
protected String viewName
viewTable
protected org.gcube.common.dbinterface.tables.SimpleTable viewTable
count
protected long count
Operation
public Operation()
setParameters
public abstract void setParameters(Object... parameters)
throws Exception
- Throws:
Exception
initialize
protected abstract void initialize(String previuosTableName,
ColumnDefinition[] previousTableDefinition,
org.gcube.common.dbinterface.pool.DBSession session)
throws Exception
- Throws:
Exception
getDataAsJSon
public String getDataAsJSon(Limit limit,
Order order)
throws Exception
- Throws:
Exception
getResource
protected static TimeSeriesResource getResource(String resourceId)
throws Exception
- Throws:
Exception
apply
public void apply(String previuosTableName,
ColumnDefinition[] previousTableDefinition)
throws Exception
- Throws:
Exception
getCount
public long getCount()
setCount
public void setCount(long count)
getViewName
public String getViewName()
setViewName
public void setViewName(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 Exception
- Throws:
Exception
createTable
protected void createTable(org.gcube.common.dbinterface.queries.Select query,
org.gcube.common.dbinterface.pool.DBSession session,
boolean data)
throws Exception
- Throws:
Exception
createTable
protected void createTable(String previousTableName,
org.gcube.common.dbinterface.pool.DBSession session)
throws Exception
- Throws:
Exception
getColumnDefinitionReference
public static ColumnDefinition getColumnDefinitionReference(String fieldId,
ColumnDefinition[] columnsDefintion)
throws Exception
- Parameters:
fieldId -
- Returns:
-
- Throws:
Exception
getHistoryItem
public TSHistoryItem getHistoryItem()
setHistoryItem
public void setHistoryItem(TSHistoryItem historyItem)
Copyright © 2012. All Rights Reserved.