Logo Search packages:      
Sourcecode: qdbm version File versions  Download package

int qdbm::Villa::vnum ( byte[]  key  )  throws VillaException [inline]

Get the number of records corresponding a key.

Parameters:
key a byte array of a key.
Returns:
the number of corresponding records. If no record corresponds, 0 is returned.
Exceptions:
VillaException if an error occurs.

Definition at line 330 of file Villa.java.

References index.

Referenced by qdbm::VillaTester::domulti(), vnum(), and vnumobj().

                                                    {
    if(index < 0) throw new VillaException();
    synchronized(ADBM.class){
      int rv = vlvnum(index, key, key.length);
      if(rv == -1) throw new VillaException(vlecode());
      return rv;
    }
  }


Generated by  Doxygen 1.6.0   Back to index