Gets keys of this index as an array.
@param string $index Alternate index to get keys.
@return array Returns the array of keys.
14991
public function getKeys($index = false)
    {
        $retval = null;

        if ($index === false) {
            $retval = is_array($this->list) ? array_keys($this->list) : null;
        } elseif (is_string($index) &&
            is_array($this->secondary_indexes) &&
            array_key_exists($index, $this->secondary_indexes)
        ) {
            $retval = $this->secondary_indexes[$index]->getKeys();
        } else {
            throw new ENabuCoreException(ENabuCoreException::ERROR_INVALID_INDEX, array(print_r($index, true)));
        }

        return $retval;
    }
483544
public function getNameByIndex($index)
    {
        return isset($this->names[$index]) ? $this->names[$index] : null;
    }
642462
public function get($index)
    {
        if (null === $index) {
            throw new Exception\InvalidArgumentException('The specified key name is null');
        }

        if (!$this->has($index)) {
            throw new Exception\OutOfBoundsException(sprintf('Index "%s" is out of bounds', $index));
        }

        return $this->collections[$index];
    }
475248
public function getChildByIndex( $index )
	{
		if( $index > count( $this->children ) )
			throw new InvalidArgumentException( 'Child Node with Index "'.$index.'" is not existing.' );
		return $this->children[$index];
	}
180908
public function &get($index, $default = null)
    {
        if ($this->exist($index)) {
            $array = $this->{$index};
            if (is_array($array)) {
                $array = new Config($array);
            }

            return $array;
        }

        return $default;
    }
891898
protected function getColumnNameByIndex($index)
    {
        $name = (isset($this->columns[$index]) && $this->columns[$index] != '*')
            ? $this->columns[$index] : $this->getPrimaryKeyName();

        return in_array($name, $this->extraColumns, true) ? $this->getPrimaryKeyName() : $name;
    }
71876
public function getAllFiles($index = null)
	{
		// return the selection
		if ($selection = (func_num_args() and ! is_null($index)) ? $this[$index] : $this->container)
		{
			// make sure selection is an array
			is_array($selection) or $selection = array($selection);
		}
		else
		{
			$selection = array();
		}

		return $selection;
	}
985780
public function get($index)
    {
        $config = $this->config;
        foreach (explode('.', $index) as $value) {
            $config = $config[$value];
        }

        return $config;
    }
242923
public function find($index)
    {
        $result = array();
        foreach ($this->events as $event) {
            if ($index instanceof PeriodInterface && $index->containsEvent($event)) {
                $result[] = $event;
            } elseif ($index instanceof \DateTime && $event->contains($index)) {
                $result[] = $event;
            }
        }

        return $result;
    }
1008047
public function getByIndex($index)
    {
        if (isset($this->elements[$index])) {
            return $this->elements[$index];
        }

        return null;
    }
564266
public function index($index = null)
	{
		if (null === $index) {
			$index = Config::get('search.default_index', 'default');
		}
		
		if (!isset($this->indexes[$index])) {
			$this->indexes[$index] = Index::factory($index, $this->driver);
		}
		
		return $this->indexes[$index];
	}
889559
public function offsetGet($index)
    {
        if (!parent::offsetExists($index)) {
            throw new PropertyNotFoundException($index, __CLASS__);
        }

        return parent::offsetGet($index);
    }
1227289
@SuppressWarnings("unchecked")
    public K getKey(int index)
    {
        if ((index < 0) || (index >= size()))
        {
            throw new IndexOutOfBoundsException();
        }
        return (K) _array[index * 2];
    }
1054051
public function schemaByIndex($index)
    {
        $schema = array();

        foreach ($this->collection->schema() as $value) {
            $schema[] = $value;
        }

        return (empty($schema[$index])) ? null : $schema[$index];
    }
1281239
public static function getPathSegment(int $index = 0)
    {
        $pathComponents = self::getPathSegments();
        return ArrayUtils::getArrayValueForKeyOrDefault($pathComponents, $index, false);
    }
1228100
public function offsetGet($index)
    {
        if (!array_key_exists($index, $this->data)) {
            throw InvalidArgumentException::format(
                    'Invalid array object index: expecting one of (%s), %s given',
                    Debug::formatValues(array_keys($this->data)), is_string($index) ? "'{$index}'" : $index
            );
        }

        return $this->data[$index];
    }
207730
protected function getIteratorByIndex($index = 0)
    {
        $runningCount = 0;
        foreach ($this->getArrayIterator() as $innerIt) {
            $count = count($innerIt);
            if ($index < $runningCount + $count) {
                return [$innerIt, $index - $runningCount];
            }
            $runningCount += $count;
        }

        return null;
    }