use of com.hazelcast.internal.serialization.impl.DefaultPortableReader in project hazelcast by hazelcast.
the class PortableGetter method getValue.
@Override
Object getValue(Object target, String fieldPath) throws Exception {
Data data = (Data) target;
PortableContext context = serializationService.getPortableContext();
PortableReader reader = serializationService.createPortableReader(data);
ClassDefinition classDefinition = context.lookupClassDefinition(data);
FieldDefinition fieldDefinition = context.getFieldDefinition(classDefinition, fieldPath);
if (fieldDefinition != null) {
return ((DefaultPortableReader) reader).read(fieldPath);
} else {
return null;
}
}
Aggregations