我是一个使用Autodesk Forge的开发人员。现在我得到了属性数据从SQLite下载的Forge API。我想把这些数据插入到Elasticsearch,所以我想知道每个值的数据类型。在属性数据中,我可以找到dataType,但它有一个整数值。我不能用数字来判断他们。
是否有dataType字段的映射信息?
请检查如何获取属性类型,但并非所有属性类型都支持
enum AttributeType {
/* Numeric types */
Unknown = 0,
Boolean,
Integer,
Double,
/* Special types */
BLOB = 10,
DbKey, /* reprensets a link to another object in the database, using database internal ID */
/* String types */
String = 20,
LocalizableString,
DateTime, /* ISO 8601 date */
GeoLocation, /* LatLonHeight - ISO6709 Annex H string, e.g: "+27.5916+086.5640+8850/" for Mount Everest */
Position /* "x y z w" space separated string representing vector with 2,3 or 4 elements*/
};