LUCENE-6196: Mark @lucene.experimental or @lucene.internal

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene6196@1677658 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
David Wayne Smiley 2015-05-04 19:29:24 +00:00
parent 9f8f7feec6
commit 4c51278f86
42 changed files with 94 additions and 4 deletions

View File

@ -29,7 +29,11 @@ import org.apache.lucene.spatial.spatial4j.geo3d.GeoAreaFactory;
import org.apache.lucene.spatial.spatial4j.geo3d.GeoPoint;
import org.apache.lucene.spatial.spatial4j.geo3d.GeoShape;
/** A 3D planar geometry based Spatial4j Shape implementation. */
/**
* A 3D planar geometry based Spatial4j Shape implementation.
*
* @lucene.experimental
*/
public class Geo3dShape implements Shape {
public final SpatialContext ctx;

View File

@ -27,6 +27,8 @@ package org.apache.lucene.spatial.spatial4j.geo3d;
* (3) No lower latitude bound possible
* When any of these have been applied, further application of
* points cannot override that decision.
*
* @lucene.experimental
*/
public class Bounds {
protected boolean noLongitudeBound = false;

View File

@ -22,6 +22,8 @@ package org.apache.lucene.spatial.spatial4j.geo3d;
* be bounded in latitude, or bounded in both latitude and longitude, or not
* bounded at all. The purpose of the interface is to describe bounding shapes used for
* computation of geo hashes.
*
* @lucene.experimental
*/
public interface GeoArea extends Membership {
// Since we don't know what each GeoArea's constraints are,

View File

@ -17,7 +17,11 @@ package org.apache.lucene.spatial.spatial4j.geo3d;
* limitations under the License.
*/
/** Factory for {@link org.apache.lucene.spatial.spatial4j.geo3d.GeoArea}. */
/**
* Factory for {@link org.apache.lucene.spatial.spatial4j.geo3d.GeoArea}.
*
* @lucene.experimental
*/
public class GeoAreaFactory {
private GeoAreaFactory() {
}

View File

@ -21,6 +21,8 @@ package org.apache.lucene.spatial.spatial4j.geo3d;
* All bounding box shapes have this interface in common.
* This describes methods that bounding boxes have above and beyond
* GeoMembershipShape's.
*
* @lucene.experimental
*/
public interface GeoBBox extends GeoMembershipShape, GeoSizeable, GeoArea {

View File

@ -20,6 +20,8 @@ package org.apache.lucene.spatial.spatial4j.geo3d;
/**
* All bounding box shapes can derive from this base class, which furnishes
* some common code
*
* @lucene.external
*/
public abstract class GeoBBoxBase implements GeoBBox {

View File

@ -17,7 +17,11 @@ package org.apache.lucene.spatial.spatial4j.geo3d;
* limitations under the License.
*/
/** Factory for {@link org.apache.lucene.spatial.spatial4j.geo3d.GeoBBox}. */
/**
* Factory for {@link org.apache.lucene.spatial.spatial4j.geo3d.GeoBBox}.
*
* @lucene.experimental
*/
public class GeoBBoxFactory {
private GeoBBoxFactory() {
}

View File

@ -19,6 +19,8 @@ package org.apache.lucene.spatial.spatial4j.geo3d;
/**
* Base extended shape object.
*
* @lucene.experimental
*/
public abstract class GeoBaseExtendedShape implements GeoShape {
protected final static GeoPoint NORTH_POLE = new GeoPoint(0.0, 0.0, 1.0);

View File

@ -19,6 +19,8 @@ package org.apache.lucene.spatial.spatial4j.geo3d;
/**
* Circular area with a center and radius.
*
* @lucene.experimental
*/
public class GeoCircle extends GeoBaseExtendedShape implements GeoDistanceShape, GeoSizeable {
public final GeoPoint center;

View File

@ -22,6 +22,8 @@ import java.util.List;
/**
* GeoComposite is a set of GeoMembershipShape's, treated as a unit.
*
* @lucene.experimental
*/
public class GeoCompositeMembershipShape implements GeoMembershipShape {
protected final List<GeoMembershipShape> shapes = new ArrayList<GeoMembershipShape>();

View File

@ -26,6 +26,8 @@ import java.util.List;
* The only restrictions on these objects are: (1) they must be convex; (2) they must have
* a maximum extent no larger than PI. Violating either one of these limits will
* cause the logic to fail.
*
* @lucene.experimental
*/
public class GeoConvexPolygon extends GeoBaseExtendedShape implements GeoMembershipShape {
protected final List<GeoPoint> points;

View File

@ -21,6 +21,8 @@ package org.apache.lucene.spatial.spatial4j.geo3d;
* Degenerate bounding box limited on two sides (left lon, right lon).
* The left-right maximum extent for this shape is PI; for anything larger, use
* GeoWideDegenerateHorizontalLine.
*
* @lucene.internal
*/
public class GeoDegenerateHorizontalLine extends GeoBBoxBase {
public final double latitude;

View File

@ -20,6 +20,8 @@ package org.apache.lucene.spatial.spatial4j.geo3d;
/**
* This GeoBBox represents an area rectangle of one specific latitude with
* no longitude bounds.
*
* @lucene.internal
*/
public class GeoDegenerateLatitudeZone extends GeoBBoxBase {
public final double latitude;

View File

@ -19,6 +19,8 @@ package org.apache.lucene.spatial.spatial4j.geo3d;
/**
* Degenerate longitude slice.
*
* @lucene.internal
*/
public class GeoDegenerateLongitudeSlice extends GeoBBoxBase {
public final double longitude;

View File

@ -20,6 +20,8 @@ package org.apache.lucene.spatial.spatial4j.geo3d;
/**
* This class represents a degenerate point bounding box.
* It is not a simple GeoPoint because we must have the latitude and longitude.
*
* @lucene.internal
*/
public class GeoDegeneratePoint extends GeoPoint implements GeoBBox {
public final double latitude;

View File

@ -19,6 +19,8 @@ package org.apache.lucene.spatial.spatial4j.geo3d;
/**
* Degenerate bounding box limited on two sides (top lat, bottom lat).
*
* @lucene.internal
*/
public class GeoDegenerateVerticalLine extends GeoBBoxBase {
public final double topLat;

View File

@ -22,6 +22,8 @@ package org.apache.lucene.spatial.spatial4j.geo3d;
* of this interface is capable of computing the described "distance" values,
* which are meant to provide both actual distance values, as well as
* distance estimates that can be computed more cheaply.
*
* @lucene.experimental
*/
public interface GeoDistance extends Membership {
/**

View File

@ -20,6 +20,8 @@ package org.apache.lucene.spatial.spatial4j.geo3d;
/**
* Distance shapes have capabilities of both geohashing and distance
* computation (which also includes point membership determination).
*
* @lucene.experimental
*/
public interface GeoDistanceShape extends GeoMembershipShape, GeoDistance {

View File

@ -19,6 +19,8 @@ package org.apache.lucene.spatial.spatial4j.geo3d;
/**
* This GeoBBox represents an area rectangle limited only in latitude.
*
* @lucene.internal
*/
public class GeoLatitudeZone extends GeoBBoxBase {
public final double topLat;

View File

@ -21,6 +21,8 @@ package org.apache.lucene.spatial.spatial4j.geo3d;
* Bounding box limited on left and right.
* The left-right maximum extent for this shape is PI; for anything larger, use
* GeoWideLongitudeSlice.
*
* @lucene.internal
*/
public class GeoLongitudeSlice extends GeoBBoxBase {
public final double leftLon;

View File

@ -20,6 +20,8 @@ package org.apache.lucene.spatial.spatial4j.geo3d;
/**
* Membership shapes have capabilities of both geohashing and membership
* determination.
*
* @lucene.experimental
*/
public interface GeoMembershipShape extends GeoShape, Membership {

View File

@ -19,6 +19,8 @@ package org.apache.lucene.spatial.spatial4j.geo3d;
/**
* This GeoBBox represents an area rectangle limited only in south latitude.
*
* @lucene.internal
*/
public class GeoNorthLatitudeZone extends GeoBBoxBase {
public final double bottomLat;

View File

@ -22,6 +22,8 @@ package org.apache.lucene.spatial.spatial4j.geo3d;
* the north pole.
* The left-right maximum extent for this shape is PI; for anything larger, use
* GeoWideNorthRectangle.
*
* @lucene.internal
*/
public class GeoNorthRectangle extends GeoBBoxBase {
public final double bottomLat;

View File

@ -25,6 +25,8 @@ import java.util.List;
* with a specified half-width. Path is described by a series of points.
* Distances are measured from the starting point along the path, and then at right
* angles to the path.
*
* @lucene.experimental
*/
public class GeoPath extends GeoBaseExtendedShape implements GeoDistanceShape {
public final double cutoffAngle;

View File

@ -19,6 +19,8 @@ package org.apache.lucene.spatial.spatial4j.geo3d;
/**
* This class represents a point on the surface of a unit sphere.
*
* @lucene.experimental
*/
public class GeoPoint extends Vector {
public GeoPoint(final double sinLat, final double sinLon, final double cosLat, final double cosLon) {

View File

@ -23,6 +23,8 @@ import java.util.List;
/**
* Class which constructs a GeoMembershipShape representing an arbitrary polygon.
*
* @lucene.experimental
*/
public class GeoPolygonFactory {
private GeoPolygonFactory() {

View File

@ -21,6 +21,8 @@ package org.apache.lucene.spatial.spatial4j.geo3d;
* Bounding box limited on four sides (top lat, bottom lat, left lon, right lon).
* The left-right maximum extent for this shape is PI; for anything larger, use
* GeoWideRectangle.
*
* @lucene.internal
*/
public class GeoRectangle extends GeoBBoxBase {
public final double topLat;

View File

@ -21,6 +21,8 @@ package org.apache.lucene.spatial.spatial4j.geo3d;
* Generic shape. This describes methods that help GeoAreas figure out
* how they interact with a shape, for the purposes of coming up with a
* set of geo hash values.
*
* @lucene.experimental
*/
public interface GeoShape extends Membership {

View File

@ -19,6 +19,8 @@ package org.apache.lucene.spatial.spatial4j.geo3d;
/**
* Some shapes can compute radii of a geocircle in which they are inscribed.
*
* @lucene.experimental
*/
public interface GeoSizeable {
/**

View File

@ -19,6 +19,8 @@ package org.apache.lucene.spatial.spatial4j.geo3d;
/**
* This GeoBBox represents an area rectangle limited only in north latitude.
*
* @lucene.internal
*/
public class GeoSouthLatitudeZone extends GeoBBoxBase {
public final double topLat;

View File

@ -22,6 +22,8 @@ package org.apache.lucene.spatial.spatial4j.geo3d;
* other corner is the south pole.
* The left-right maximum extent for this shape is PI; for anything larger, use
* GeoWideSouthRectangle.
*
* @lucene.internal
*/
public class GeoSouthRectangle extends GeoBBoxBase {
public final double topLat;

View File

@ -19,6 +19,8 @@ package org.apache.lucene.spatial.spatial4j.geo3d;
/**
* Degenerate bounding box wider than PI and limited on two sides (left lon, right lon).
*
* @lucene.internal
*/
public class GeoWideDegenerateHorizontalLine extends GeoBBoxBase {
public final double latitude;

View File

@ -20,6 +20,8 @@ package org.apache.lucene.spatial.spatial4j.geo3d;
/**
* Bounding box wider than PI but limited on left and right sides (
* left lon, right lon).
*
* @lucene.internal
*/
public class GeoWideLongitudeSlice extends GeoBBoxBase {
public final double leftLon;

View File

@ -20,6 +20,8 @@ package org.apache.lucene.spatial.spatial4j.geo3d;
/**
* Bounding box wider than PI but limited on three sides (
* bottom lat, left lon, right lon).
*
* @lucene.internal
*/
public class GeoWideNorthRectangle extends GeoBBoxBase {
public final double bottomLat;

View File

@ -20,6 +20,8 @@ package org.apache.lucene.spatial.spatial4j.geo3d;
/**
* Bounding box wider than PI but limited on four sides (top lat,
* bottom lat, left lon, right lon).
*
* @lucene.internal
*/
public class GeoWideRectangle extends GeoBBoxBase {
public final double topLat;

View File

@ -20,6 +20,8 @@ package org.apache.lucene.spatial.spatial4j.geo3d;
/**
* Bounding box wider than PI but limited on three sides (top lat,
* left lon, right lon).
*
* @lucene.internal
*/
public class GeoWideSouthRectangle extends GeoBBoxBase {
public final double topLat;

View File

@ -19,6 +19,8 @@ package org.apache.lucene.spatial.spatial4j.geo3d;
/**
* Bounding box including the entire world.
*
* @lucene.internal
*/
public class GeoWorld extends GeoBBoxBase {
protected final static GeoPoint originPoint = new GeoPoint(1.0, 0.0, 0.0);

View File

@ -19,6 +19,8 @@ package org.apache.lucene.spatial.spatial4j.geo3d;
/**
* Interface describing 3d shape membership methods.
*
* @lucene.experimental
*/
public interface Membership {

View File

@ -20,6 +20,8 @@ package org.apache.lucene.spatial.spatial4j.geo3d;
/**
* We know about three kinds of planes. First kind: general plain through two points and origin
* Second kind: horizontal plane at specified height. Third kind: vertical plane with specified x and y value, through origin.
*
* @lucene.experimental
*/
public class Plane extends Vector {
protected final static GeoPoint[] NO_POINTS = new GeoPoint[0];
@ -112,7 +114,7 @@ public class Plane extends Vector {
/**
* Evaluate the plane equation for a given point, as represented
* by a vector.
*
*
* @return true if the result is on the plane.
*/
public boolean evaluateIsZero(final double x, final double y, final double z) {

View File

@ -20,6 +20,8 @@ package org.apache.lucene.spatial.spatial4j.geo3d;
/**
* Combination of a plane, and a sign value indicating what evaluation values are on the correct
* side of the plane.
*
* @lucene.experimental
*/
public class SidedPlane extends Plane implements Membership {
public final double sigNum;

View File

@ -19,6 +19,8 @@ package org.apache.lucene.spatial.spatial4j.geo3d;
/**
* Static methods globally useful for 3d geometric work.
*
* @lucene.experimental
*/
public class Tools {
private Tools() {

View File

@ -20,6 +20,8 @@ package org.apache.lucene.spatial.spatial4j.geo3d;
/**
* A 3d vector in space, not necessarily
* going through the origin.
*
* @lucene.experimental
*/
public class Vector {
/**