类 ProtoFeature.Map

  • 所有已实现的接口:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, ProtoFeature.MapOrBuilder
    封闭类:
    ProtoFeature

    public static final class ProtoFeature.Map
    extends com.google.protobuf.GeneratedMessageV3
    implements ProtoFeature.MapOrBuilder
     属性 支持的属性类型 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}
          ]
     }
     
    Protobuf type pojo.Map
    另请参阅:
    序列化表格
    • 字段详细资料

      • DOUBLEKEYIDS_FIELD_NUMBER

        public static final int DOUBLEKEYIDS_FIELD_NUMBER
        另请参阅:
        常量字段值
      • DOUBLEVALUEIDS_FIELD_NUMBER

        public static final int DOUBLEVALUEIDS_FIELD_NUMBER
        另请参阅:
        常量字段值
      • FLOATKEYIDS_FIELD_NUMBER

        public static final int FLOATKEYIDS_FIELD_NUMBER
        另请参阅:
        常量字段值
      • FLOATVALUEIDS_FIELD_NUMBER

        public static final int FLOATVALUEIDS_FIELD_NUMBER
        另请参阅:
        常量字段值
      • SINT32KEYIDS_FIELD_NUMBER

        public static final int SINT32KEYIDS_FIELD_NUMBER
        另请参阅:
        常量字段值
      • SINT32VALUEIDS_FIELD_NUMBER

        public static final int SINT32VALUEIDS_FIELD_NUMBER
        另请参阅:
        常量字段值
      • SINT64KEYIDS_FIELD_NUMBER

        public static final int SINT64KEYIDS_FIELD_NUMBER
        另请参阅:
        常量字段值
      • SINT64VALUEIDS_FIELD_NUMBER

        public static final int SINT64VALUEIDS_FIELD_NUMBER
        另请参阅:
        常量字段值
      • BOOLKEYIDS_FIELD_NUMBER

        public static final int BOOLKEYIDS_FIELD_NUMBER
        另请参阅:
        常量字段值
      • BOOLVALUES_FIELD_NUMBER

        public static final int BOOLVALUES_FIELD_NUMBER
        另请参阅:
        常量字段值
      • STRINGKEYIDS_FIELD_NUMBER

        public static final int STRINGKEYIDS_FIELD_NUMBER
        另请参阅:
        常量字段值
      • STRINGVALUEIDS_FIELD_NUMBER

        public static final int STRINGVALUEIDS_FIELD_NUMBER
        另请参阅:
        常量字段值
      • BYTESKEYIDS_FIELD_NUMBER

        public static final int BYTESKEYIDS_FIELD_NUMBER
        另请参阅:
        常量字段值
      • BYTESVALUEIDS_FIELD_NUMBER

        public static final int BYTESVALUEIDS_FIELD_NUMBER
        另请参阅:
        常量字段值
      • SUBKEYIDS_FIELD_NUMBER

        public static final int SUBKEYIDS_FIELD_NUMBER
        另请参阅:
        常量字段值
      • SUBMAPS_FIELD_NUMBER

        public static final int SUBMAPS_FIELD_NUMBER
        另请参阅:
        常量字段值
    • 方法详细资料

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        覆盖:
        newInstance 在类中 com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        指定者:
        getUnknownFields 在接口中 com.google.protobuf.MessageOrBuilder
        覆盖:
        getUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        指定者:
        internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3
      • getDoubleKeyIds

        public int getDoubleKeyIds​(int index)
         key、value id
         
        repeated int32 doubleKeyIds = 1;
        指定者:
        getDoubleKeyIds 在接口中 ProtoFeature.MapOrBuilder
        参数:
        index - The index of the element to return.
        返回:
        The doubleKeyIds at the given index.
      • getDoubleValueIds

        public int getDoubleValueIds​(int index)
        repeated int32 doubleValueIds = 2;
        指定者:
        getDoubleValueIds 在接口中 ProtoFeature.MapOrBuilder
        参数:
        index - The index of the element to return.
        返回:
        The doubleValueIds at the given index.
      • getFloatKeyIds

        public int getFloatKeyIds​(int index)
        repeated int32 floatKeyIds = 3;
        指定者:
        getFloatKeyIds 在接口中 ProtoFeature.MapOrBuilder
        参数:
        index - The index of the element to return.
        返回:
        The floatKeyIds at the given index.
      • getFloatValueIds

        public int getFloatValueIds​(int index)
        repeated int32 floatValueIds = 4;
        指定者:
        getFloatValueIds 在接口中 ProtoFeature.MapOrBuilder
        参数:
        index - The index of the element to return.
        返回:
        The floatValueIds at the given index.
      • getSint32KeyIds

        public int getSint32KeyIds​(int index)
        repeated int32 sint32KeyIds = 5;
        指定者:
        getSint32KeyIds 在接口中 ProtoFeature.MapOrBuilder
        参数:
        index - The index of the element to return.
        返回:
        The sint32KeyIds at the given index.
      • getSint32ValueIds

        public int getSint32ValueIds​(int index)
        repeated int32 sint32ValueIds = 6;
        指定者:
        getSint32ValueIds 在接口中 ProtoFeature.MapOrBuilder
        参数:
        index - The index of the element to return.
        返回:
        The sint32ValueIds at the given index.
      • getSint64KeyIds

        public int getSint64KeyIds​(int index)
        repeated int32 sint64KeyIds = 7;
        指定者:
        getSint64KeyIds 在接口中 ProtoFeature.MapOrBuilder
        参数:
        index - The index of the element to return.
        返回:
        The sint64KeyIds at the given index.
      • getSint64ValueIds

        public int getSint64ValueIds​(int index)
        repeated int32 sint64ValueIds = 8;
        指定者:
        getSint64ValueIds 在接口中 ProtoFeature.MapOrBuilder
        参数:
        index - The index of the element to return.
        返回:
        The sint64ValueIds at the given index.
      • getBoolKeyIds

        public int getBoolKeyIds​(int index)
        repeated int32 boolKeyIds = 9;
        指定者:
        getBoolKeyIds 在接口中 ProtoFeature.MapOrBuilder
        参数:
        index - The index of the element to return.
        返回:
        The boolKeyIds at the given index.
      • getBoolValues

        public boolean getBoolValues​(int index)
        repeated bool boolValues = 10;
        指定者:
        getBoolValues 在接口中 ProtoFeature.MapOrBuilder
        参数:
        index - The index of the element to return.
        返回:
        The boolValues at the given index.
      • getStringKeyIds

        public int getStringKeyIds​(int index)
        repeated int32 stringKeyIds = 11;
        指定者:
        getStringKeyIds 在接口中 ProtoFeature.MapOrBuilder
        参数:
        index - The index of the element to return.
        返回:
        The stringKeyIds at the given index.
      • getStringValueIds

        public int getStringValueIds​(int index)
        repeated int32 stringValueIds = 12;
        指定者:
        getStringValueIds 在接口中 ProtoFeature.MapOrBuilder
        参数:
        index - The index of the element to return.
        返回:
        The stringValueIds at the given index.
      • getBytesKeyIds

        public int getBytesKeyIds​(int index)
        repeated int32 bytesKeyIds = 13;
        指定者:
        getBytesKeyIds 在接口中 ProtoFeature.MapOrBuilder
        参数:
        index - The index of the element to return.
        返回:
        The bytesKeyIds at the given index.
      • getBytesValueIds

        public int getBytesValueIds​(int index)
        repeated int32 bytesValueIds = 14;
        指定者:
        getBytesValueIds 在接口中 ProtoFeature.MapOrBuilder
        参数:
        index - The index of the element to return.
        返回:
        The bytesValueIds at the given index.
      • getSubKeyIdsCount

        public int getSubKeyIdsCount()
        children Map key、value id
         
        repeated int32 subKeyIds = 15;
        指定者:
        getSubKeyIdsCount 在接口中 ProtoFeature.MapOrBuilder
        返回:
        The count of subKeyIds.
      • getSubKeyIds

        public int getSubKeyIds​(int index)
        children Map key、value id
         
        repeated int32 subKeyIds = 15;
        指定者:
        getSubKeyIds 在接口中 ProtoFeature.MapOrBuilder
        参数:
        index - The index of the element to return.
        返回:
        The subKeyIds at the given index.
      • isInitialized

        public final boolean isInitialized()
        指定者:
        isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilder
        覆盖:
        isInitialized 在类中 com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        指定者:
        writeTo 在接口中 com.google.protobuf.MessageLite
        覆盖:
        writeTo 在类中 com.google.protobuf.GeneratedMessageV3
        抛出:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        指定者:
        getSerializedSize 在接口中 com.google.protobuf.MessageLite
        覆盖:
        getSerializedSize 在类中 com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        指定者:
        equals 在接口中 com.google.protobuf.Message
        覆盖:
        equals 在类中 com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        指定者:
        hashCode 在接口中 com.google.protobuf.Message
        覆盖:
        hashCode 在类中 com.google.protobuf.AbstractMessage
      • parseFrom

        public static ProtoFeature.Map parseFrom​(ByteBuffer data)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ProtoFeature.Map parseFrom​(ByteBuffer data,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ProtoFeature.Map parseFrom​(com.google.protobuf.ByteString data)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ProtoFeature.Map parseFrom​(com.google.protobuf.ByteString data,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ProtoFeature.Map parseFrom​(byte[] data)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ProtoFeature.Map parseFrom​(byte[] data,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ProtoFeature.Map parseFrom​(com.google.protobuf.CodedInputStream input,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws IOException
        抛出:
        IOException
      • newBuilderForType

        public ProtoFeature.Map.Builder newBuilderForType()
        指定者:
        newBuilderForType 在接口中 com.google.protobuf.Message
        指定者:
        newBuilderForType 在接口中 com.google.protobuf.MessageLite
      • toBuilder

        public ProtoFeature.Map.Builder toBuilder()
        指定者:
        toBuilder 在接口中 com.google.protobuf.Message
        指定者:
        toBuilder 在接口中 com.google.protobuf.MessageLite
      • newBuilderForType

        protected ProtoFeature.Map.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        指定者:
        newBuilderForType 在类中 com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<ProtoFeature.Map> getParserForType()
        指定者:
        getParserForType 在接口中 com.google.protobuf.Message
        指定者:
        getParserForType 在接口中 com.google.protobuf.MessageLite
        覆盖:
        getParserForType 在类中 com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public ProtoFeature.Map getDefaultInstanceForType()
        指定者:
        getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuilder
        指定者:
        getDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilder