FieldTypes in Orientdb

#1

Hi,
Below is my sample json data.Here @fieldtypes = No_of_cores= l is long type but What is CPU_Model=e ? Here e specifies what?

PROPERTIESData{
  "@type": "d",
  "@version": 0,
  "max(logDate)": "04-25-2019 15:09:37",
  "processor_type": "x86_64",
  "kernel_version": "3.8.13-118.20.2.el7uek.x86_64",
  "CPU_Model": [
    "Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz"
  ],
  "ServerName": "g2501usslcodb2p",
  "No_of_cores": 256,
  "Processor_speed_mhz": [
    1995.39
  ],
  "Collection_date": [
    
  ],
  "WWN": [
    "10:00:00:90:fa:ad:2d:ef",
    "10:00:00:90:fa:ad:2d:ee",
    "10:00:00:90:fa:ad:58:f2",
    "10:00:00:90:fa:ad:58:f3"
  ],
  "@fieldTypes": "CPU_Model=e,No_of_cores=l,Processor_speed_mhz=e,Collection_date=e,WWN=e"
}
#2

Hey Harish,
“e” stands for set, this is a list with all the supported types.

The supported special types are:

  • ‘f’ for float
  • ‘c’ for decimal
  • ‘l’ for long
  • ‘d’ for double
  • ‘b’ for byte and binary
  • ‘a’ for date
  • ‘t’ for datetime
  • ‘s’ for short
  • ‘e’ for Set, because arrays and List are serialized as arrays like [3,4,5]
  • ‘x’ for links
  • ‘n’ for linksets
  • ‘z’ for linklist
  • ‘m’ for linkmap
  • ‘g’ for linkbag