Package com.illumon.iris.pqimport
Class DownsampleImportPersistentQuery
java.lang.Object
com.illumon.iris.db.tables.remotequery.ContextAwareRemoteQuery<PersistentQueryState>
com.illumon.iris.pqimport.MergeImportPersistentQuery
com.illumon.iris.pqimport.ImportPersistentQuery
com.illumon.iris.pqimport.DownsampleImportPersistentQuery
- All Implemented Interfaces:
RemoteQuery<PersistentQueryState>,Serializable
public class DownsampleImportPersistentQuery extends ImportPersistentQuery
Persistent query that takes a source table, downsamples it and saves into a target table (intraday).
We do not base this on BaseImportPersistentQuery for now because we are using the new import "builder" construct,
which provides much of the same functionality (creates the table writer factory for example).
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description static StringAGGREGATE_COLUMNSstatic StringAGGREGATE_TYPESstatic StringALL_BINSstatic StringCALENDARstatic StringCONFIGURATION_TYPEprotected PersistentQueryDbServerConfigdbServerConfigstatic StringKEY_COLUMNSstatic StringMAINTAIN_STATE_COLUMNSstatic StringNUM_THREADSstatic StringPERIODstatic StringSOURCE_NAMESPACEstatic StringSOURCE_TABLEstatic StringTIME_BIN_MODEstatic StringTIMESTAMP_COLUMNFields inherited from class com.illumon.iris.pqimport.ImportPersistentQuery
APPEND, IMPORT_SOURCE, INTRADAY_PARTITION_COLUMN, OUTPUT_MODE_APPEND, OUTPUT_MODE_REPLACE, OUTPUT_MODE_SAFE, STRICT, TYPE_SPECIFIC_FIELDS_OUTPUT_MODEFields inherited from class com.illumon.iris.pqimport.MergeImportPersistentQuery
PARTITION_SUBSTITUTION, SUBSTITUTION_DATE_FORMAT -
Constructor Summary
Constructors Constructor Description DownsampleImportPersistentQuery(PersistentQueryConfiguration config, String scriptBody, PersistentQueryDbServerConfig dbServerConfig, ControllerConfigurationType configurationType, ScriptPathLoaderState scriptLoaderState) -
Method Summary
Modifier and Type Method Description PersistentQueryStateexecute(Database database)Execute a query on a remote host.protected StringgetConfigurationType()Methods inherited from class com.illumon.iris.db.tables.remotequery.ContextAwareRemoteQuery
getClient, getLog, getRemoteQueryProcessor, getUserContext, initializeContext, initializeContext
-
Field Details
-
CONFIGURATION_TYPE
- See Also:
- Constant Field Values
-
PERIOD
- See Also:
- Constant Field Values
-
KEY_COLUMNS
- See Also:
- Constant Field Values
-
TIMESTAMP_COLUMN
- See Also:
- Constant Field Values
-
SOURCE_NAMESPACE
- See Also:
- Constant Field Values
-
SOURCE_TABLE
- See Also:
- Constant Field Values
-
AGGREGATE_COLUMNS
- See Also:
- Constant Field Values
-
AGGREGATE_TYPES
- See Also:
- Constant Field Values
-
MAINTAIN_STATE_COLUMNS
- See Also:
- Constant Field Values
-
CALENDAR
- See Also:
- Constant Field Values
-
ALL_BINS
- See Also:
- Constant Field Values
-
TIME_BIN_MODE
- See Also:
- Constant Field Values
-
NUM_THREADS
- See Also:
- Constant Field Values
-
dbServerConfig
-
-
Constructor Details
-
DownsampleImportPersistentQuery
public DownsampleImportPersistentQuery(PersistentQueryConfiguration config, String scriptBody, PersistentQueryDbServerConfig dbServerConfig, ControllerConfigurationType configurationType, ScriptPathLoaderState scriptLoaderState)
-
-
Method Details
-
execute
Description copied from interface:RemoteQueryExecute a query on a remote host.- Parameters:
database- database to use for execution.- Returns:
- result of the query.
-
getConfigurationType
-