Search in sources :

Example 1 with ARectangle

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);
    }
}
Also used : ARectangle(org.apache.asterix.om.base.ARectangle) APoint(org.apache.asterix.om.base.APoint) IOException(java.io.IOException) HyracksDataException(org.apache.hyracks.api.exceptions.HyracksDataException)

Aggregations

IOException (java.io.IOException)1 APoint (org.apache.asterix.om.base.APoint)1 ARectangle (org.apache.asterix.om.base.ARectangle)1 HyracksDataException (org.apache.hyracks.api.exceptions.HyracksDataException)1