use of org.apache.asterix.om.base.ARectangle in project asterixdb by apache.
the class ARectangleSerializerDeserializer method deserialize.
@Override
public ARectangle deserialize(DataInput in) throws HyracksDataException {
try {
APoint p1 = APointSerializerDeserializer.INSTANCE.deserialize(in);
APoint p2 = APointSerializerDeserializer.INSTANCE.deserialize(in);
return new ARectangle(p1, p2);
} catch (IOException e) {
throw new HyracksDataException(e);
}
}
Aggregations