La clase Judy
Introducción
La clase Judy implementa la interface ArrayAccess y la interface Iterator. Esta clase, una vez instanciada, canpuede ser accesada como un array PHP.
Un objeto Judy PHP (o Array Judy) puede ser uno de los siguientes tipos :
Example #1 Ejemplo de arreglo Judy
<?php
$judy = new Judy(Judy::INT_TO_MIXED);
$judy[1] = "one";
$judy[2] = array('a', 'b', 'c');
$judy[3] = new Judy(Judy::BITSET);
?>
Clases sinopsis
/* Constantes */
/* Métodos */
}Constantes predefinidas
Tipos de Nodo Judy
- Judy::BITSET
-
Define el arreglo Judy como un set de bits con Claves como Enteros y Valores como Booleanos
- Judy::INT_TO_INT
-
Define el arreglo Judy con clave/valor como Enteros, y sólo Enteros.
- Judy::INT_TO_MIXED
-
Define el arreglo Judy con claves como Enteros y Valores como de cualquier tipo.
- Judy::STRING_TO_INT
-
Define un arreglo Judy con claves como Cadenas y Valores como Enteros, y sólo Enteros.
- Judy::STRING_TO_MIXED
-
Define el arreglo Judy con claves como Cadenas y Valores como de cualquier tipo.
Table of Contents
- Judy::byCount — Locate the Nth index present in the Judy array
- Judy::__construct — Construct a new Judy object
- Judy::count — Count the number of elements in the Judy array
- Judy::__destruct — Destruct a Judy object
- Judy::first — Search for the first index in the Judy array
- Judy::firstEmpty — Search for the first absent index in the Judy array
- Judy::free — Free the entire Judy array
- Judy::getType — Return the type of the current Judy array
- Judy::last — Search for the last index in the Judy array
- Judy::lastEmpty — Search for the last absent index in the Judy array
- Judy::memoryUsage — Return the memory used by the Judy array
- Judy::next — Search for the next index in the Judy array
- Judy::nextEmpty — Search for the next absent index in the Judy array
- Judy::offsetExists — Whether a offset exists
- Judy::offsetGet — Offset to retrieve
- Judy::offsetSet — Offset to set
- Judy::offsetUnset — Offset to unset
- Judy::prev — Search for the previous index in the Judy array
- Judy::prevEmpty — Search for the previous absent index in the Judy array
- Judy::size — Return the size of the current Judy array
There are no user contributed notes for this page.
