/** * @param QueryInterface $query * * @return Result|null * @throws Exception */ public function process(QueryInterface $query) { if (!$query instanceof ShowQuery || $query->getObject() !== ShowQuery::EXPRESSION_TABLE_STATUS) { return null; } $likeExpr = $query->getLikeExpression(); $tablet = $this->tablet->getTablet(); $command = new GetSchema($tablet->getAlias()); /* @var $vtCtldResult GetSchemaResult */ $vtCtldResult = $this->client->executeCommand($command); return new TableStatus($vtCtldResult, $likeExpr); }