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.VoltTable(ColumnInfo...)
and VoltTable.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() |
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.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object