Package | Description |
---|---|
com.facebook.swift.codec.metadata | |
net.gdface.thrift |
Modifier and Type | Class and Description |
---|---|
class |
DecoratorThriftStructMetadata
|
Modifier and Type | Field and Description |
---|---|
static com.google.common.base.Function<ThriftStructMetadata,ThriftStructMetadata> |
DecoratorThriftStructMetadata.STRUCT_TRANSFORMER
|
static com.google.common.base.Function<ThriftStructMetadata,ThriftStructMetadata> |
DecoratorThriftStructMetadata.STRUCT_TRANSFORMER
|
Modifier and Type | Method and Description |
---|---|
ThriftStructMetadata |
ThriftStructMetadataBuilder.build() |
ThriftStructMetadata |
ThriftUnionMetadataBuilder.build() |
abstract ThriftStructMetadata |
AbstractThriftMetadataBuilder.build() |
ThriftStructMetadata |
ThriftType.getStructMetadata() |
<T> ThriftStructMetadata |
ThriftCatalogWithTransformer.getThriftStructMetadata(java.lang.reflect.Type structType) |
<T> ThriftStructMetadata |
ThriftCatalog.getThriftStructMetadata(java.lang.reflect.Type structType)
Gets the ThriftStructMetadata for the specified struct class.
|
Modifier and Type | Method and Description |
---|---|
static ThriftType |
ThriftType.struct(ThriftStructMetadata structMetadata) |
Modifier and Type | Method and Description |
---|---|
static <T> T |
ThriftUtils.constructStruct(java.util.Map<java.lang.Short,TypeValue> data,
ThriftStructMetadata metadata)
构造
metadata 指定类型的实例并填充字段
参见 com.facebook.swift.codec.internal.reflection.ReflectionThriftStructCodec#constructStruct(Map |
static <T> T |
ThriftUtils.fillStructField(java.util.Map<java.lang.Short,TypeValue> data,
ThriftStructMetadata metadata,
T instance)
填充
instance 实例的字段参见 com.facebook.swift.codec.internal.reflection.ReflectionThriftStructCodec#constructStruct(Map |
static java.util.Map<java.lang.Short,TypeValue> |
ThriftUtils.getFieldValues(java.lang.Object instance,
ThriftStructMetadata metadata)
根据
metadata 类型数据获取instance 实例所有的字段值
参见 com.facebook.swift.codec.internal.reflection.ReflectionThriftStructCodec#write(Object, org.apache.thrift.protocol.TProtocol) |
static java.util.Map<java.lang.Short,TypeValue> |
ThriftUtils.getFiledValues(java.lang.Object instance,
ThriftStructMetadata metadata)
Deprecated.
name spell error, replaced by
ThriftUtils.getFieldValues(Object, ThriftStructMetadata) |
Copyright © 2019. All rights reserved.