Package org.voltdb

Class VoltTable.ColumnInfo

java.lang.Object
org.voltdb.VoltTable.ColumnInfo
All Implemented Interfaces:
Cloneable
Enclosing class:
VoltTable

public static class VoltTable.ColumnInfo extends Object implements 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 Details

    • ColumnInfo

      public ColumnInfo(String name, VoltType type)
      Construct an immutable ColumnInfo instance.
      Parameters:
      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.
  • Method Details