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.

key a byte array of a key.
the number of corresponding records. If no record corresponds, 0 is returned.
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();
      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