TokyoTyrantTable::putShl
TokyoTyrantQuery
TokyoTyrantTable
PHP Manual

# TokyoTyrantTable::setIndex

(PECL tokyo_tyrant >= 0.1.0)

TokyoTyrantTable::setIndex — Sets index

### 説明

public mixed TokyoTyrantTable::setIndex ( string `$column` , int `$type` )

Sets an index on a specified column. The index type is one of the `TokyoTyrant::RDBIT_*` constants. Passing `TokyoTyrant::RDBIT_VOID` removes the index.

### パラメータ

`column`

  The name of the column

`type`

  The index type

### 返り値

This method returns the current object and throws TokyoTyrantException on failure.

TokyoTyrantTable::putShl
TokyoTyrantQuery
TokyoTyrantTable
PHP Manual