Programming with Judy

Using Judy
Using JudyL
Chapter 3 33
Using JudyL
JudyL functions provide a way to represent long-word values in a Judy
array. These functions support large arrays of 32-bit or 64-bit values
(long words). Since an initial (empty) JudyL array is represented by a
null pointer, you can make JudyL arrays multi-dimensional, the
equivalent of:
The table below shows the JudyL functions. For more information, see
the JudyL(3X) man page.
void * JudyLArray [4294967296][4294967296]...;
Table 3-3
JudyL functions Actions
JudyLGet Retrieves a value from a JudyL array.
JudyLIns Inserts a value into a JudyL array.
JudyLDel Deletes the specified JudyL array element
(index/value pair).
JudyLFirst Typically begins a sorted-order scan of the set indexes
in a JudyL array.
JudyLNext Typically continues a sorted-order scan of the set
indexes in a JudyL array or locates a neighbor of an
index.
JudyLLast Typically begins a reverse sorted-order scan of the set
indexes in a JudyL array.
JudyLPrev Typically continues a reverse sorted-order scan of the
set indexes in a JudyL array or locates a neighbor of
an index.