public class RedshiftLine extends RedshiftObject implements Serializable, Cloneable
| Modifier and Type | Field and Description |
|---|---|
double |
a
Coefficient of x.
|
double |
b
Coefficient of y.
|
double |
c
Constant.
|
type, value| Constructor and Description |
|---|
RedshiftLine()
required by the driver.
|
RedshiftLine(double a,
double b,
double c) |
RedshiftLine(double x1,
double y1,
double x2,
double y2) |
RedshiftLine(RedshiftLseg lseg) |
RedshiftLine(RedshiftPoint p1,
RedshiftPoint p2) |
RedshiftLine(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 double a
public double b
public double c
public RedshiftLine(double a,
double b,
double c)
a - coefficient of xb - coefficient of yc - constantpublic RedshiftLine(double x1,
double y1,
double x2,
double y2)
x1 - coordinate for first point on the liney1 - coordinate for first point on the linex2 - coordinate for second point on the liney2 - coordinate for second point on the linepublic RedshiftLine(RedshiftPoint p1, RedshiftPoint p2)
p1 - first point on the linep2 - second point on the linepublic RedshiftLine(RedshiftLseg lseg)
lseg - Line segment which calls on this line.public RedshiftLine(String s) throws SQLException
s - definition of the line in Redshift's syntax.SQLException - on conversion failurepublic RedshiftLine()
public void setValue(String s) throws SQLException
RedshiftObjectsetValue in class RedshiftObjects - Definition of the line 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 String getValue()
RedshiftObjectgetValue in class RedshiftObjectpublic Object clone() throws CloneNotSupportedException
RedshiftObjectclone in class RedshiftObjectCloneNotSupportedExceptionCopyright © 2024 Amazon.com Inc.. All rights reserved.