Class FieldTypeConflictHandler


  • public class FieldTypeConflictHandler
    extends java.lang.Object
    Handles Influx FieldTypeConflictExceptions. This helper provides conversion functions to provide the correct field types for InfluxDB.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.function.BiConsumer<org.influxdb.dto.Point.Builder,​com.google.gson.JsonElement> getHandler​(java.lang.String field)
      Gets the handler for the given Field.
      void handleException​(org.influxdb.InfluxDBException.FieldTypeConflictException e)
      Handles a InfluxDBException.FieldTypeConflictException; adds special handling for fields that already exist in the database.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FieldTypeConflictHandler

        public FieldTypeConflictHandler​(Influx parent)
    • Method Detail

      • handleException

        public void handleException​(org.influxdb.InfluxDBException.FieldTypeConflictException e)
        Handles a InfluxDBException.FieldTypeConflictException; adds special handling for fields that already exist in the database.
        Parameters:
        failedPoints - the failed points
        e - the InfluxDBException.FieldTypeConflictException
      • getHandler

        public java.util.function.BiConsumer<org.influxdb.dto.Point.Builder,​com.google.gson.JsonElement> getHandler​(java.lang.String field)
        Gets the handler for the given Field.
        Parameters:
        field - the Field
        Returns:
        the handler or null