use of com.hazelcast.internal.serialization.impl.compact.CompactInternalGenericRecord in project hazelcast by hazelcast.
the class CompactGetter method getValue.
@Override
Object getValue(Object target, String fieldPath) throws Exception {
InternalGenericRecord record;
if (target instanceof CompactInternalGenericRecord) {
record = (InternalGenericRecord) target;
} else {
record = serializationService.readAsInternalGenericRecord((Data) target);
}
GenericRecordQueryReader reader = new GenericRecordQueryReader(record);
return reader.read(fieldPath);
}
Aggregations