Class DataTypeUtils


  • public class DataTypeUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      DataTypeUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.nio.ByteBuffer getValueBuffer​(java.util.List<org.apache.iotdb.tsfile.file.metadata.enums.TSDataType> types, java.util.List<java.lang.Object> values)  
      static org.apache.iotdb.tsfile.file.metadata.enums.TSDataType normalTypeToTSDataType​(java.lang.Object value)
      convert normal type to a type
      static org.apache.iotdb.protocol.influxdb.rpc.thrift.InfluxTSStatus RPCStatusToInfluxDBTSStatus​(org.apache.iotdb.common.rpc.thrift.TSStatus status)  
      • Methods inherited from class java.lang.Object

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

      • MSG_UNSUPPORTED_DATA_TYPE

        public static final java.lang.String MSG_UNSUPPORTED_DATA_TYPE
        See Also:
        Constant Field Values
    • Constructor Detail

      • DataTypeUtils

        public DataTypeUtils()
    • Method Detail

      • normalTypeToTSDataType

        public static org.apache.iotdb.tsfile.file.metadata.enums.TSDataType normalTypeToTSDataType​(java.lang.Object value)
        convert normal type to a type
        Parameters:
        value - need to convert value
        Returns:
        corresponding TSDataType
      • RPCStatusToInfluxDBTSStatus

        public static org.apache.iotdb.protocol.influxdb.rpc.thrift.InfluxTSStatus RPCStatusToInfluxDBTSStatus​(org.apache.iotdb.common.rpc.thrift.TSStatus status)
      • getValueBuffer

        public static java.nio.ByteBuffer getValueBuffer​(java.util.List<org.apache.iotdb.tsfile.file.metadata.enums.TSDataType> types,
                                                         java.util.List<java.lang.Object> values)
                                                  throws org.apache.iotdb.rpc.IoTDBConnectionException
        Throws:
        org.apache.iotdb.rpc.IoTDBConnectionException