use of com.hazelcast.nio.serialization.FieldDefinition in project hazelcast by hazelcast.
the class MorphingPortableReader method readUTFArray.
@Override
public String[] readUTFArray(String fieldName) throws IOException {
FieldDefinition fd = cd.getField(fieldName);
if (fd == null) {
return null;
}
validateTypeCompatibility(fd, UTF_ARRAY);
return super.readUTFArray(fieldName);
}
use of com.hazelcast.nio.serialization.FieldDefinition in project hazelcast by hazelcast.
the class MorphingPortableReader method readPortable.
@Override
public Portable readPortable(String fieldName) throws IOException {
FieldDefinition fd = cd.getField(fieldName);
if (fd == null) {
return null;
}
validateTypeCompatibility(fd, PORTABLE);
return super.readPortable(fieldName);
}
use of com.hazelcast.nio.serialization.FieldDefinition in project hazelcast by hazelcast.
the class MorphingPortableReader method readBooleanArray.
@Override
public boolean[] readBooleanArray(String fieldName) throws IOException {
FieldDefinition fd = cd.getField(fieldName);
if (fd == null) {
return null;
}
validateTypeCompatibility(fd, BOOLEAN_ARRAY);
return super.readBooleanArray(fieldName);
}
use of com.hazelcast.nio.serialization.FieldDefinition in project hazelcast by hazelcast.
the class MorphingPortableReader method readByte.
@Override
public byte readByte(String fieldName) throws IOException {
FieldDefinition fd = cd.getField(fieldName);
if (fd == null) {
return 0;
}
validateTypeCompatibility(fd, BYTE);
return super.readByte(fieldName);
}
use of com.hazelcast.nio.serialization.FieldDefinition in project hazelcast by hazelcast.
the class MorphingPortableReader method readByteArray.
@Override
public byte[] readByteArray(String fieldName) throws IOException {
FieldDefinition fd = cd.getField(fieldName);
if (fd == null) {
return null;
}
validateTypeCompatibility(fd, BYTE_ARRAY);
return super.readByteArray(fieldName);
}
Aggregations