Class PutIoTDBRecord

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.PutIoTDBRecord
All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent, org.apache.nifi.processor.Processor

@Tags({"IoT","Timeseries"}) @InputRequirement(INPUT_REQUIRED) @CapabilityDescription("Read input FlowFile Records and write to Apache IoTDB") public class PutIoTDBRecord extends AbstractIoTDB
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) static final org.apache.nifi.components.PropertyDescriptor
     
    (package private) static final org.apache.nifi.components.PropertyDescriptor
     
    (package private) static final org.apache.nifi.components.PropertyDescriptor
     
    (package private) static final org.apache.nifi.components.PropertyDescriptor
     
    private static final String
     
    (package private) static final org.apache.nifi.components.PropertyDescriptor
     
    (package private) static final org.apache.nifi.components.PropertyDescriptor
     

    Fields inherited from class org.apache.nifi.processors.AbstractIoTDB

    IOTDB_HOST, IOTDB_PORT, mapper, PASSWORD, REL_FAILURE, REL_SUCCESS, session, supportedType, USERNAME
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getSchema(String timeField, String property, RecordReader recordReader)
     
    protected List<org.apache.nifi.components.PropertyDescriptor>
     
    private long
    getTimestamp(String timeField, Record record)
     
    private Object
    getTypedValue(Object value, org.apache.tsfile.enums.TSDataType type)
     
    void
    onTrigger(org.apache.nifi.processor.ProcessContext processContext, org.apache.nifi.processor.ProcessSession processSession)
     

    Methods inherited from class org.apache.nifi.processor.AbstractProcessor

    onTrigger

    Methods inherited from class org.apache.nifi.processor.AbstractSessionFactoryProcessor

    getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, init, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrue

    Methods inherited from class org.apache.nifi.components.AbstractConfigurableComponent

    customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, validate

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.nifi.components.ConfigurableComponent

    getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate

    Methods inherited from interface org.apache.nifi.processor.Processor

    isStateful, migrateProperties, migrateRelationships
  • Field Details

    • PREFIX

      static final org.apache.nifi.components.PropertyDescriptor PREFIX
    • TIME_FIELD

      static final org.apache.nifi.components.PropertyDescriptor TIME_FIELD
    • ALIGNED

      static final org.apache.nifi.components.PropertyDescriptor ALIGNED
    • MAX_ROW_NUMBER

      static final org.apache.nifi.components.PropertyDescriptor MAX_ROW_NUMBER
    • RECORD_READER_FACTORY

      static final org.apache.nifi.components.PropertyDescriptor RECORD_READER_FACTORY
    • SCHEMA_TEMPLATE

      static final org.apache.nifi.components.PropertyDescriptor SCHEMA_TEMPLATE
    • ROOT_PREFIX

      private static final String ROOT_PREFIX
      See Also:
  • Constructor Details

    • PutIoTDBRecord

      public PutIoTDBRecord()
  • Method Details

    • getSupportedPropertyDescriptors

      protected List<org.apache.nifi.components.PropertyDescriptor> getSupportedPropertyDescriptors()
      Overrides:
      getSupportedPropertyDescriptors in class AbstractIoTDB
    • onTrigger

      public void onTrigger(org.apache.nifi.processor.ProcessContext processContext, org.apache.nifi.processor.ProcessSession processSession) throws org.apache.nifi.processor.exception.ProcessException
      Specified by:
      onTrigger in class org.apache.nifi.processor.AbstractProcessor
      Throws:
      org.apache.nifi.processor.exception.ProcessException
    • getSchema

      private DatabaseSchema getSchema(String timeField, String property, RecordReader recordReader) throws MalformedRecordException, IOException
      Throws:
      MalformedRecordException
      IOException
    • getTimestamp

      private long getTimestamp(String timeField, Record record)
    • getTypedValue

      private Object getTypedValue(Object value, org.apache.tsfile.enums.TSDataType type)