Class InfluxModelAccess.InfluxInputConverter

java.lang.Object
de.iip_ecosphere.platform.connectors.model.ModelInputConverter
de.iip_ecosphere.platform.connectors.influxv3.InfluxModelAccess.InfluxInputConverter
All Implemented Interfaces:
de.iip_ecosphere.platform.connectors.parser.InputParser.InputConverter<Object>
Enclosing class:
InfluxModelAccess

public class InfluxModelAccess.InfluxInputConverter extends de.iip_ecosphere.platform.connectors.model.ModelInputConverter
Data input converter. Internally, INFLUX converts all smaller types to float and long.
Author:
Holger Eichelberger
  • Field Summary

    Fields inherited from class de.iip_ecosphere.platform.connectors.model.ModelInputConverter

    INSTANCE
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte
    toByte(Object data)
     
    float
     
    int
     
    short
     

    Methods inherited from class de.iip_ecosphere.platform.connectors.model.ModelInputConverter

    toBigDecimal, toBigInteger, toBoolean, toByteArray, toDouble, toDoubleArray, toElementList, toFloatIndex, toIntegerArray, toList, toLong, toLongIndex, toObject, toString, toStringArray

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface de.iip_ecosphere.platform.connectors.parser.InputParser.InputConverter

    toDate, toEnum, toLocalDateTime
  • Constructor Details

    • InfluxInputConverter

      public InfluxInputConverter()
      Creates an instance.
  • Method Details

    • toFloat

      public float toFloat(Object data) throws IOException
      Specified by:
      toFloat in interface de.iip_ecosphere.platform.connectors.parser.InputParser.InputConverter<Object>
      Overrides:
      toFloat in class de.iip_ecosphere.platform.connectors.model.ModelInputConverter
      Throws:
      IOException
    • toInteger

      public int toInteger(Object data) throws IOException
      Specified by:
      toInteger in interface de.iip_ecosphere.platform.connectors.parser.InputParser.InputConverter<Object>
      Overrides:
      toInteger in class de.iip_ecosphere.platform.connectors.model.ModelInputConverter
      Throws:
      IOException
    • toByte

      public byte toByte(Object data) throws IOException
      Specified by:
      toByte in interface de.iip_ecosphere.platform.connectors.parser.InputParser.InputConverter<Object>
      Overrides:
      toByte in class de.iip_ecosphere.platform.connectors.model.ModelInputConverter
      Throws:
      IOException
    • toShort

      public short toShort(Object data) throws IOException
      Specified by:
      toShort in interface de.iip_ecosphere.platform.connectors.parser.InputParser.InputConverter<Object>
      Overrides:
      toShort in class de.iip_ecosphere.platform.connectors.model.ModelInputConverter
      Throws:
      IOException