public class RedshiftCircle extends RedshiftObject implements Serializable, Cloneable
| Modifier and Type | Field and Description |
|---|---|
RedshiftPoint |
center
This is the center point.
|
double |
radius
This is the radius.
|
type, value| Constructor and Description |
|---|
RedshiftCircle()
This constructor is used by the driver.
|
RedshiftCircle(double x,
double y,
double r) |
RedshiftCircle(RedshiftPoint c,
double r) |
RedshiftCircle(String s) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
This must be overidden to allow the object to be cloned.
|
boolean |
equals(Object obj)
This must be overidden to allow comparisons of objects.
|
String |
getValue()
This must be overidden, to return the value of the object, in the form required by
com.amazon.redshift.
|
int |
hashCode()
Compute hash.
|
void |
setValue(String s)
This method sets the value of this object.
|
getType, setType, toStringpublic RedshiftPoint center
public double radius
public RedshiftCircle(double x,
double y,
double r)
x - coordinate of centery - coordinate of centerr - radius of circlepublic RedshiftCircle(RedshiftPoint c, double r)
c - RedshiftPoint describing the circle's centerr - radius of circlepublic RedshiftCircle(String s) throws SQLException
s - definition of the circle in Redshift's syntax.SQLException - on conversion failurepublic RedshiftCircle()
public void setValue(String s) throws SQLException
RedshiftObjectsetValue in class RedshiftObjects - definition of the circle in Redshift's syntax.SQLException - on conversion failurepublic boolean equals(Object obj)
RedshiftObjectequals in class RedshiftObjectobj - Object to compare withpublic int hashCode()
RedshiftObjecthashCode in class RedshiftObjectObjects.hashCode(Object)public Object clone() throws CloneNotSupportedException
RedshiftObjectclone in class RedshiftObjectCloneNotSupportedExceptionpublic String getValue()
RedshiftObjectgetValue in class RedshiftObjectCopyright © 2024 Amazon.com Inc.. All rights reserved.