createPrimaryIndex method

Creates the primary index for a table.

Syntax
IndexSchema TableSchema.createPrimaryIndex(
  String index_name
) throws ULjException
Parameters
  • index_name   The name of index. The specified name must be a valid SQL identifier.

Remarks

Each table must have exactly one primary index. The columns in a primary index must be non-nullable.

Returns

The IndexSchema assigned to the created primary index with the specified name.