@DefaultCoder(value=AvroCoder.class) public class ColumnType extends java.lang.Object implements java.io.Serializable
Constructor and Description |
---|
ColumnType(java.lang.String name,
TypeCode type,
boolean isPrimaryKey,
long ordinalPosition) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getName()
The name of the column.
|
long |
getOrdinalPosition()
The position of the column in the table.
|
TypeCode |
getType()
The type of the column.
|
int |
hashCode() |
boolean |
isPrimaryKey()
True if the column is part of the primary key, false otherwise.
|
java.lang.String |
toString() |
@SchemaCreate public ColumnType(java.lang.String name, TypeCode type, boolean isPrimaryKey, long ordinalPosition)
public java.lang.String getName()
public TypeCode getType()
public boolean isPrimaryKey()
public long getOrdinalPosition()
public boolean equals(@Nullable java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object