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
ConstructorDescriptionColumnInfo
(String name, VoltType type) Construct an immutableColumnInfo
instance. -
Method Summary
-
Constructor Details
-
ColumnInfo
Construct an immutableColumnInfo
instance.- Parameters:
name
- The name of the column (ASCII).type
- The type of the column. Note that not all types are supported (such asVoltType.INVALID
orVoltType.NUMERIC
.
-
-
Method Details