Class QueryAzureDataExplorer

java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.processor.AbstractSessionFactoryProcessor
org.apache.nifi.processor.AbstractProcessor
org.apache.nifi.processors.azure.data.explorer.QueryAzureDataExplorer
All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent, org.apache.nifi.processor.Processor

@InputRequirement(INPUT_REQUIRED) @Tags({"Azure","Data","Explorer","ADX","Kusto"}) @CapabilityDescription("Query Azure Data Explorer and stream JSON results to output FlowFiles") @WritesAttribute(attribute="query.error.message",description="Azure Data Explorer query error message on failures") @WritesAttribute(attribute="query.executed",description="Azure Data Explorer query executed") @WritesAttribute(attribute="mime.type",description="Content Type set to application/json") public class QueryAzureDataExplorer extends org.apache.nifi.processor.AbstractProcessor
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final String
     
    static final org.apache.nifi.components.PropertyDescriptor
     
    private static final List<org.apache.nifi.components.PropertyDescriptor>
     
    static final org.apache.nifi.processor.Relationship
     
    static final org.apache.nifi.components.PropertyDescriptor
     
    static final org.apache.nifi.components.PropertyDescriptor
     
    static final String
     
    static final String
     
    private static final Set<org.apache.nifi.processor.Relationship>
     
     
    static final org.apache.nifi.processor.Relationship
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    executeQuery(String databaseName, String adxQuery)
     
    Set<org.apache.nifi.processor.Relationship>
     
    final List<org.apache.nifi.components.PropertyDescriptor>
     
    void
    onScheduled(org.apache.nifi.processor.ProcessContext context)
     
    void
    onTrigger(org.apache.nifi.processor.ProcessContext context, org.apache.nifi.processor.ProcessSession session)
     

    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

    • QUERY_ERROR_MESSAGE

      public static final String QUERY_ERROR_MESSAGE
      See Also:
    • QUERY_EXECUTED

      public static final String QUERY_EXECUTED
      See Also:
    • SUCCESS

      public static final org.apache.nifi.processor.Relationship SUCCESS
    • FAILURE

      public static final org.apache.nifi.processor.Relationship FAILURE
    • KUSTO_QUERY_SERVICE

      public static final org.apache.nifi.components.PropertyDescriptor KUSTO_QUERY_SERVICE
    • DATABASE_NAME

      public static final org.apache.nifi.components.PropertyDescriptor DATABASE_NAME
    • QUERY

      public static final org.apache.nifi.components.PropertyDescriptor QUERY
    • APPLICATION_JSON

      protected static final String APPLICATION_JSON
      See Also:
    • RELATIONSHIPS

      private static final Set<org.apache.nifi.processor.Relationship> RELATIONSHIPS
    • DESCRIPTORS

      private static final List<org.apache.nifi.components.PropertyDescriptor> DESCRIPTORS
    • service

      private volatile KustoQueryService service
  • Constructor Details

    • QueryAzureDataExplorer

      public QueryAzureDataExplorer()
  • Method Details

    • getRelationships

      public Set<org.apache.nifi.processor.Relationship> getRelationships()
      Specified by:
      getRelationships in interface org.apache.nifi.processor.Processor
      Overrides:
      getRelationships in class org.apache.nifi.processor.AbstractSessionFactoryProcessor
    • getSupportedPropertyDescriptors

      public final List<org.apache.nifi.components.PropertyDescriptor> getSupportedPropertyDescriptors()
      Overrides:
      getSupportedPropertyDescriptors in class org.apache.nifi.components.AbstractConfigurableComponent
    • onScheduled

      @OnScheduled public void onScheduled(org.apache.nifi.processor.ProcessContext context)
    • 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:
      onTrigger in class org.apache.nifi.processor.AbstractProcessor
      Throws:
      org.apache.nifi.processor.exception.ProcessException
    • executeQuery

      protected KustoQueryResponse executeQuery(String databaseName, String adxQuery)