public class RedshiftLseg extends RedshiftObject implements Serializable, Cloneable
| Modifier and Type | Field and Description |
|---|---|
RedshiftPoint[] |
point
These are the two points.
|
type, value| Constructor and Description |
|---|
RedshiftLseg()
required by the driver.
|
RedshiftLseg(double x1,
double y1,
double x2,
double y2) |
RedshiftLseg(RedshiftPoint p1,
RedshiftPoint p2) |
RedshiftLseg(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[] point
public RedshiftLseg(double x1,
double y1,
double x2,
double y2)
x1 - coordinate for first pointy1 - coordinate for first pointx2 - coordinate for second pointy2 - coordinate for second pointpublic RedshiftLseg(RedshiftPoint p1, RedshiftPoint p2)
p1 - first pointp2 - second pointpublic RedshiftLseg(String s) throws SQLException
s - definition of the line segment in Redshift's syntax.SQLException - on conversion failurepublic RedshiftLseg()
public void setValue(String s) throws SQLException
RedshiftObjectsetValue in class RedshiftObjects - Definition of the line segment 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.