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, toString
public 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
RedshiftObject
setValue
in class RedshiftObject
s
- Definition of the polygon in Redshift's syntaxSQLException
- on conversion failurepublic boolean equals(Object obj)
RedshiftObject
equals
in class RedshiftObject
obj
- Object to compare withpublic int hashCode()
RedshiftObject
hashCode
in class RedshiftObject
Objects.hashCode(Object)
public Object clone() throws CloneNotSupportedException
RedshiftObject
clone
in class RedshiftObject
CloneNotSupportedException
public String getValue()
RedshiftObject
getValue
in class RedshiftObject
Copyright © 2024 Amazon.com Inc.. All rights reserved.