public class Column
extends java.lang.Object
Constructor and Description |
---|
Column(Column c)
copy Column constructor
|
Column(Column c,
java.lang.String newName)
rename constructor
|
Column(java.lang.String qname)
if qname is a single-quoted string (or if you're lazy, if first char of
qname is '), then column is quoted
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Column otherColumn)
returns true if 'this' column equals the given otherColumn.
|
boolean |
equalsType(Column otherColumn)
returns true if 'this' column and given column are both quoted useful for
batch copying of tuples from one table to another
|
java.lang.String |
getKind()
return kind
|
java.lang.String |
getName() |
boolean |
isQuoted() |
java.lang.String |
toString()
a String schema specification of this column is its name in/not-in double
quotes
|
public Column(Column c)
c
- -- column to copypublic Column(Column c, java.lang.String newName)
c
- -- column to copynewName
- -- new column namepublic Column(java.lang.String qname)
qname
- - quoted or unquoted namepublic java.lang.String getName()
public boolean isQuoted()
public java.lang.String getKind()
public boolean equals(Column otherColumn)
otherColumn
- that should be equal to 'this' columnpublic boolean equalsType(Column otherColumn)
otherColumn
- that should be equal to 'this' columnpublic java.lang.String toString()
toString
in class java.lang.Object