Package org.voltdb
Class VoltTable.ColumnInfo
java.lang.Object
org.voltdb.VoltTable.ColumnInfo
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- VoltTable
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 Summary
ConstructorsConstructorDescriptionColumnInfo(String name, VoltType type) Construct an immutableColumnInfoinstance. -
Method Summary
-
Constructor Details
-
ColumnInfo
Construct an immutableColumnInfoinstance.- Parameters:
name- The name of the column (ASCII).type- The type of the column. Note that not all types are supported (such asVoltType.INVALIDorVoltType.NUMERIC.
-
-
Method Details