/** * @param ReadCommandsInterface $io * @param string $db Database name * @param string $table Table name * @param array $keys List of keys * @param string $index Name of table key * @param array $fields List of interested fields */ public function __construct(ReadCommandsInterface $io, $db, $table, $keys, $index, $fields) { $this->db = $db; $this->table = $table; $this->keys = $keys; $this->index = $index; $this->fields = $fields; $this->io = $io; $this->indexId = $this->io->getIndexId($this->db, $this->table, $this->index, $this->fields); }
public function getIndexId($db, $table, $key, $fields) { return $this->socket->getIndexId($db, $table, $key, $fields); }