LUCENE-7936: Missed a constructor for deserialization support.

This commit is contained in:
Karl Wright 2017-08-29 05:50:45 -04:00
parent c01d692bac
commit 8fc61e5628
1 changed files with 12 additions and 0 deletions

View File

@ -16,6 +16,9 @@
*/ */
package org.apache.lucene.spatial3d.geom; package org.apache.lucene.spatial3d.geom;
import java.io.InputStream;
import java.io.IOException;
/** /**
* GeoCompositeMembershipShape is a set of GeoMembershipShape's, treated as a unit. * GeoCompositeMembershipShape is a set of GeoMembershipShape's, treated as a unit.
* *
@ -30,6 +33,15 @@ public class GeoCompositeMembershipShape extends GeoBaseCompositeMembershipShape
super(planetModel); super(planetModel);
} }
/**
* Constructor for deserialization.
* @param planetModel is the planet model.
* @param inputStream is the input stream.
*/
public GeoCompositeMembershipShape(final PlanetModel planetModel, final InputStream inputStream) throws IOException {
super(planetModel, inputStream, GeoMembershipShape.class);
}
@Override @Override
public boolean equals(Object o) { public boolean equals(Object o) {
if (!(o instanceof GeoCompositeMembershipShape)) if (!(o instanceof GeoCompositeMembershipShape))