Class yii\sphinx\IndexSchema
| Inheritance | yii\sphinx\IndexSchema » yii\base\BaseObject | 
|---|---|
| Available since version | 2.0 | 
IndexSchema represents the metadata of a Sphinx index.
Public Properties
| Property | Type | Description | Defined By | 
|---|---|---|---|
| $columns | yii\sphinx\ColumnSchema[] | Column metadata of this index. | yii\sphinx\IndexSchema | 
| $isRt | boolean | Whether this index is a real-time index. | yii\sphinx\IndexSchema | 
| $name | string | Name of this index. | yii\sphinx\IndexSchema | 
| $primaryKey | string | Primary key of this index. | yii\sphinx\IndexSchema | 
| $type | string | Type of the index. | yii\sphinx\IndexSchema | 
Public Methods
| Method | Description | Defined By | 
|---|---|---|
| getColumn() | Gets the named column metadata. | yii\sphinx\IndexSchema | 
| getColumnNames() | Returns the names of all columns in this table. | yii\sphinx\IndexSchema | 
| isIsRuntime() | yii\sphinx\IndexSchema | |
| setIsRuntime() | yii\sphinx\IndexSchema | 
Property Details
Column metadata of this index. Each array element is a yii\sphinx\ColumnSchema object, indexed by column names.
Whether this index is a real-time index.
Name of this index.
Primary key of this index.
Type of the index.
Method Details
Gets the named column metadata.
This is a convenient method for retrieving a named column even if it does not exist.
| public yii\sphinx\ColumnSchema getColumn ( $name ) | ||
| $name | string | Column name | 
| return | yii\sphinx\ColumnSchema | Metadata of the named column. Null if the named column does not exist. | 
|---|---|---|
Returns the names of all columns in this table.
| public array getColumnNames ( ) | ||
| return | array | List of column names | 
|---|---|---|
            Deprecated This method is deprecated, use $isRt instead.
        
    
    
| public boolean isIsRuntime ( ) | ||
| return | boolean | Whether this index is a real-time index. | 
|---|---|---|
            Deprecated This method is deprecated, use $isRt instead.
        
    
    
| public void setIsRuntime ( $isRuntime ) | ||
| $isRuntime | boolean | Whether this index is a real-time index. |