use of org.apache.asterix.om.base.APolygon in project asterixdb by apache.
the class APolygonSerializerDeserializer method deserialize.
@Override
public APolygon deserialize(DataInput in) throws HyracksDataException {
try {
short numberOfPoints = in.readShort();
APoint[] points = new APoint[numberOfPoints];
for (int i = 0; i < numberOfPoints; i++) {
points[i] = APointSerializerDeserializer.INSTANCE.deserialize(in);
}
return new APolygon(points);
} catch (IOException e) {
throw new HyracksDataException(e);
}
}
Aggregations