Package org.apache.nifi.processors
Class QueryIoTDBRecord
java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.processor.AbstractSessionFactoryProcessor
org.apache.nifi.processor.AbstractProcessor
org.apache.nifi.processors.AbstractIoTDB
org.apache.nifi.processors.QueryIoTDBRecord
- All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent,org.apache.nifi.processor.Processor
@SupportsBatching
@Tags({"IoT","Timeseries"})
@InputRequirement(INPUT_REQUIRED)
@CapabilityDescription("Query Apache IoTDB and write results as Records")
@WritesAttribute(attribute="iotdb.error.message",description="Error message written on query failures") @WritesAttribute(attribute="mime.type",description="Content Type based on configured Record Set Writer")
public class QueryIoTDBRecord
extends AbstractIoTDB
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.apache.nifi.components.PropertyDescriptorstatic final Stringstatic final Stringstatic final org.apache.nifi.components.PropertyDescriptorstatic final org.apache.nifi.components.PropertyDescriptorFields inherited from class org.apache.nifi.processors.AbstractIoTDB
IOTDB_HOST, IOTDB_PORT, mapper, PASSWORD, REL_FAILURE, REL_SUCCESS, session, supportedType, USERNAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate RecordgetRecord(RecordSchema schema, org.apache.tsfile.read.common.RowRecord rowRecord) private RecordSchemagetRecordSchema(org.apache.iotdb.isession.SessionDataSet sessionDataSet) final List<org.apache.nifi.components.PropertyDescriptor> voidonTrigger(org.apache.nifi.processor.ProcessContext context, org.apache.nifi.processor.ProcessSession session) Methods inherited from class org.apache.nifi.processors.AbstractIoTDB
convertSchema, convertType, generateTablets, getRelationships, getType, getType, onScheduled, parseSchema, stop, validateSchema, validateSchemaAttributeMethods inherited from class org.apache.nifi.processor.AbstractProcessor
onTriggerMethods inherited from class org.apache.nifi.processor.AbstractSessionFactoryProcessor
getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, init, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrueMethods inherited from class org.apache.nifi.components.AbstractConfigurableComponent
customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, validateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.nifi.components.ConfigurableComponent
getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateMethods inherited from interface org.apache.nifi.processor.Processor
isStateful, migrateProperties, migrateRelationships
-
Field Details
-
QUERY
public static final org.apache.nifi.components.PropertyDescriptor QUERY -
FETCH_SIZE
public static final org.apache.nifi.components.PropertyDescriptor FETCH_SIZE -
RECORD_WRITER_FACTORY
public static final org.apache.nifi.components.PropertyDescriptor RECORD_WRITER_FACTORY -
IOTDB_ERROR_MESSAGE
- See Also:
-
MIME_TYPE
- See Also:
-
-
Constructor Details
-
QueryIoTDBRecord
public QueryIoTDBRecord()
-
-
Method Details
-
getSupportedPropertyDescriptors
- Overrides:
getSupportedPropertyDescriptorsin classAbstractIoTDB
-
onTrigger
public void onTrigger(org.apache.nifi.processor.ProcessContext context, org.apache.nifi.processor.ProcessSession session) throws org.apache.nifi.processor.exception.ProcessException - Specified by:
onTriggerin classorg.apache.nifi.processor.AbstractProcessor- Throws:
org.apache.nifi.processor.exception.ProcessException
-
getRecord
-
getRecordSchema
-