public static class VoltTable.ColumnInfo
extends java.lang.Object
implements java.lang.Cloneable
Object that represents the name and schema for a VoltTable column.
Primarily used to construct in the constructor VoltTable(ColumnInfo...)
and VoltTable(ColumnInfo[], int).
Example:
VoltTable t = new VoltTable(
new ColumnInfo("foo", VoltType.INTEGER),
new ColumnInfo("bar", VoltType.STRING));
Note: VoltDB current supports ASCII encoded column names only. Column values are still UTF-8 encoded.
| Constructor and Description |
|---|
ColumnInfo(java.lang.String name,
VoltType type)
Construct an immutable ColumnInfo instance.
|
| Modifier and Type | Method and Description |
|---|---|
VoltTable.ColumnInfo |
clone()
Basically just suppress CloneNotSupportedException.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
toString() |
public ColumnInfo(java.lang.String name,
VoltType type)
name - The name of the column (ASCII).type - The type of the column. Note that not all types are
supported (such as VoltType.INVALID or VoltType.NUMERIC.public VoltTable.ColumnInfo clone()
clone in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object