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

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

Retrieve a record.

key a byte array of a key.
a byte array of the value of the corresponding record.
VillaException if an error occurs, no record corresponds.
When the key of duplicated records is specified, the value of the first record of the same key is selected.

Definition at line 303 of file Villa.java.

References index.

Referenced by qdbm::VillaTester::domulti(), and qdbm::VillaTester::doread().

    if(index < 0) throw new VillaException();
      byte[] val = vlget(index, key, key.length);
      if(val == null) throw new VillaException(vlecode());
      return val;

Generated by  Doxygen 1.6.0   Back to index