Class RawParser


  • public class RawParser
    extends Object
    This class contains a set of methods to help parsing file objects between Cognite api representations (json and proto) and typed objects.
    • Constructor Detail

      • RawParser

        public RawParser()
    • Method Detail

      • parseRawRow

        public static com.cognite.client.dto.RawRow parseRawRow​(String dbName,
                                                                String dbTable,
                                                                String rowJson)
                                                         throws Exception
        Parses an raw row json string to RawRow proto object.
        Returns:
        Throws:
        Exception
      • toRequestInsertItem

        public static Map<String,​Object> toRequestInsertItem​(com.cognite.client.dto.RawRow element)
        Builds a request insert item object from RawRow. An insert item object creates a new raw row data object in the Cognite system.
        Parameters:
        element -
        Returns: