Inheritance | yii\sphinx\IndexSchema » yii\base\Object |
---|---|
Implements | yii\base\Configurable |
Available since version | 2.0 |
Source Code | https://github.com/yiisoft/yii2-sphinx/blob/master/IndexSchema.php |
IndexSchema represents the metadata of a Sphinx index.
Property | Type | Description | Defined By |
---|---|---|---|
$columnNames | array | List of column names | yii\sphinx\IndexSchema |
$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 |
$isRuntime | 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 |
Method | Description | Defined By |
---|---|---|
__call() | Calls the named method which is not a class method. | yii\base\Object |
__construct() | Constructor. | yii\base\Object |
__get() | Returns the value of an object property. | yii\base\Object |
__isset() | Checks if a property is set, i.e. defined and not null. | yii\base\Object |
__set() | Sets value of an object property. | yii\base\Object |
__unset() | Sets an object property to null. | yii\base\Object |
canGetProperty() | Returns a value indicating whether a property can be read. | yii\base\Object |
canSetProperty() | Returns a value indicating whether a property can be set. | yii\base\Object |
className() | Returns the fully qualified name of this class. | yii\base\Object |
getColumn() | Gets the named column metadata. | yii\sphinx\IndexSchema |
getColumnNames() | Returns the names of all columns in this table. | yii\sphinx\IndexSchema |
hasMethod() | Returns a value indicating whether a method is defined. | yii\base\Object |
hasProperty() | Returns a value indicating whether a property is defined. | yii\base\Object |
init() | Initializes the object. | yii\base\Object |
isIsRuntime() | yii\sphinx\IndexSchema | |
setIsRuntime() | yii\sphinx\IndexSchema |
List of column names
public array getColumnNames ( )
Column metadata of this index. Each array element is a yii\sphinx\ColumnSchema object, indexed by column names.
public yii\sphinx\ColumnSchema[] $columns = []
Whether this index is a real-time index.
public boolean $isRt = null
Whether this index is a real-time index.
public void setIsRuntime ( $isRuntime )
Name of this index.
public string $name = null
Primary key of this index.
public string $primaryKey = null
Type of the index.
public string $type = null
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 |
public boolean isIsRuntime ( ) | ||
---|---|---|
return | boolean |
Whether this index is a real-time index. |
public void setIsRuntime ( $isRuntime ) | ||
---|---|---|
$isRuntime | boolean |
Whether this index is a real-time index. |
© 2008–2017 by Yii Software LLC
Licensed under the three clause BSD license.
http://www.yiiframework.com/doc-2.0/yii-sphinx-indexschema.html