public class RedshiftPolygon extends RedshiftObject implements Serializable, Cloneable
| Modifier and Type | Field and Description |
|---|---|
RedshiftPoint[] |
points
The points defining the polygon.
|
type, value| Constructor and Description |
|---|
RedshiftPolygon()
Required by the driver.
|
RedshiftPolygon(RedshiftPoint[] points)
Creates a polygon using an array of RedshiftPoints.
|
RedshiftPolygon(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[] points
public RedshiftPolygon(RedshiftPoint[] points)
points - the points defining the polygonpublic RedshiftPolygon(String s) throws SQLException
s - definition of the polygon in Redshift's syntax.SQLException - on conversion failurepublic RedshiftPolygon()
public void setValue(String s) throws SQLException
RedshiftObjectsetValue in class RedshiftObjects - Definition of the polygon in Redshift's syntaxSQLException - 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.