接口的使用
org.wowtools.giscat.vector.pojo.proto.ProtoFeature.MapOrBuilder
-
使用ProtoFeature.MapOrBuilder的程序包 程序包 说明 org.wowtools.giscat.vector.pojo.proto -
-
org.wowtools.giscat.vector.pojo.proto中ProtoFeature.MapOrBuilder的使用
实现ProtoFeature.MapOrBuilder的org.wowtools.giscat.vector.pojo.proto中的类 修饰符和类型 类 说明 static classProtoFeature.Map属性 支持的属性类型 double float sint32 sint64 bool string bytes subProperty 属性使用keyId-value或keyId-valueId格式来存储 sint64、string等可能占用4字节及以上的对象,用valueId(int32)取代value来存储以减少体积 value本身则存放到FeatureCollection中 示例 [{id:4,name:'tom'},{id:5,name:'jerry',age:4}]转换后: FeatureCollection { keys = ['id','name','age'],//所有的key收集到keys中 sint32Values = [4,5],//所有的int value收集到sint32Values中 stringValues = ['tom','jerry'],//所有的string value收集到stringValues中 //其它类型的属性也是类似的方式收集为key value propertiess = [//具体的属性用keyId-value或keyId-valueId格式来存储 {sint32KeyIds=[0], sint32ValueIds=[0], stringKeyIds=[1], stringValueIds=[0]},//tom的属性 {0:0, 1:0} {sint32KeyIds=[0,2], sint32ValueIds=[1,0], stringKeyIds=[1], stringValueIds=[1]}//jerry的属性 {0:1, 1:1, 2:1} ] }static classProtoFeature.Map.Builder属性 支持的属性类型 double float sint32 sint64 bool string bytes subProperty 属性使用keyId-value或keyId-valueId格式来存储 sint64、string等可能占用4字节及以上的对象,用valueId(int32)取代value来存储以减少体积 value本身则存放到FeatureCollection中 示例 [{id:4,name:'tom'},{id:5,name:'jerry',age:4}]转换后: FeatureCollection { keys = ['id','name','age'],//所有的key收集到keys中 sint32Values = [4,5],//所有的int value收集到sint32Values中 stringValues = ['tom','jerry'],//所有的string value收集到stringValues中 //其它类型的属性也是类似的方式收集为key value propertiess = [//具体的属性用keyId-value或keyId-valueId格式来存储 {sint32KeyIds=[0], sint32ValueIds=[0], stringKeyIds=[1], stringValueIds=[0]},//tom的属性 {0:0, 1:0} {sint32KeyIds=[0,2], sint32ValueIds=[1,0], stringKeyIds=[1], stringValueIds=[1]}//jerry的属性 {0:1, 1:1, 2:1} ] }返回ProtoFeature.MapOrBuilder的org.wowtools.giscat.vector.pojo.proto中的方法 修饰符和类型 方法 说明 ProtoFeature.MapOrBuilderProtoFeature.Feature.Builder. getPropertiesOrBuilder().pojo.Map properties = 2;ProtoFeature.MapOrBuilderProtoFeature.Feature. getPropertiesOrBuilder().pojo.Map properties = 2;ProtoFeature.MapOrBuilderProtoFeature.FeatureOrBuilder. getPropertiesOrBuilder().pojo.Map properties = 2;ProtoFeature.MapOrBuilderProtoFeature.FeatureCollection.Builder. getPropertiessOrBuilder(int index)repeated .pojo.Map propertiess = 9;ProtoFeature.MapOrBuilderProtoFeature.FeatureCollection. getPropertiessOrBuilder(int index)repeated .pojo.Map propertiess = 9;ProtoFeature.MapOrBuilderProtoFeature.FeatureCollectionOrBuilder. getPropertiessOrBuilder(int index)repeated .pojo.Map propertiess = 9;ProtoFeature.MapOrBuilderProtoFeature.Map.Builder. getSubMapsOrBuilder(int index)repeated .pojo.Map subMaps = 16;ProtoFeature.MapOrBuilderProtoFeature.Map. getSubMapsOrBuilder(int index)repeated .pojo.Map subMaps = 16;ProtoFeature.MapOrBuilderProtoFeature.MapOrBuilder. getSubMapsOrBuilder(int index)repeated .pojo.Map subMaps = 16;返回变量类型为ProtoFeature.MapOrBuilder的类型的org.wowtools.giscat.vector.pojo.proto中的方法 修饰符和类型 方法 说明 List<? extends ProtoFeature.MapOrBuilder>ProtoFeature.FeatureCollection.Builder. getPropertiessOrBuilderList()repeated .pojo.Map propertiess = 9;List<? extends ProtoFeature.MapOrBuilder>ProtoFeature.FeatureCollection. getPropertiessOrBuilderList()repeated .pojo.Map propertiess = 9;List<? extends ProtoFeature.MapOrBuilder>ProtoFeature.FeatureCollectionOrBuilder. getPropertiessOrBuilderList()repeated .pojo.Map propertiess = 9;List<? extends ProtoFeature.MapOrBuilder>ProtoFeature.Map.Builder. getSubMapsOrBuilderList()repeated .pojo.Map subMaps = 16;List<? extends ProtoFeature.MapOrBuilder>ProtoFeature.Map. getSubMapsOrBuilderList()repeated .pojo.Map subMaps = 16;List<? extends ProtoFeature.MapOrBuilder>ProtoFeature.MapOrBuilder. getSubMapsOrBuilderList()repeated .pojo.Map subMaps = 16;
-