/** * Fetches a record using standard java object serialization. * * @param recid the recid for the record that must be fetched. * @return the object contained in the record. * @throws IOException when one of the underlying I/O operations fails. */ public Object fetch( long recid ) throws IOException { return fetch( recid, DefaultSerializer.INSTANCE ); }
/** * Fetches a record using standard java object serialization. * * @param recid the recid for the record that must be fetched. * @return the object contained in the record. * @throws IOException when one of the underlying I/O operations fails. */ public Object fetch( long recid ) throws IOException { return fetch( recid, DefaultSerializer.INSTANCE ); }
/** * Fetches a record using standard java object serialization. * * @param recid the recid for the record that must be fetched. * @return the object contained in the record. * @throws IOException when one of the underlying I/O operations fails. */ public Object fetch( long recid ) throws IOException { return fetch( recid, DefaultSerializer.INSTANCE ); }
public synchronized <A> A fetch( long recid, Serializer<A> serializer, boolean disableCache ) throws IOException{ //we dont have any cache, so can ignore disableCache parameter return fetch(recid, serializer); }
/** * Load name directory */ @SuppressWarnings("unchecked") private Map<String, Long> getNameDirectory() throws IOException { // retrieve directory of named hashtable long nameDirectory_recid = getRoot( NAME_DIRECTORY_ROOT ); if ( nameDirectory_recid == 0 ) { nameDirectory = new HashMap<String, Long>(); nameDirectory_recid = insert( nameDirectory ); setRoot( NAME_DIRECTORY_ROOT, nameDirectory_recid ); } else { nameDirectory = ( Map<String, Long> ) fetch( nameDirectory_recid ); } return nameDirectory; }
/** * Load name directory */ @SuppressWarnings("unchecked") private Map<String,Long> getNameDirectory() throws IOException { // retrieve directory of named hashtable long nameDirectory_recid = getRoot( NAME_DIRECTORY_ROOT ); if ( nameDirectory_recid == 0 ) { _nameDirectory = new HashMap<String,Long>(); nameDirectory_recid = insert( _nameDirectory ); setRoot( NAME_DIRECTORY_ROOT, nameDirectory_recid ); } else { _nameDirectory = (Map<String,Long>) fetch( nameDirectory_recid ); } return _nameDirectory; }
/** * Load name directory */ @SuppressWarnings("unchecked") private Map<String,Long> getNameDirectory() throws IOException { // retrieve directory of named hashtable long nameDirectory_recid = getRoot( NAME_DIRECTORY_ROOT ); if ( nameDirectory_recid == 0 ) { nameDirectory = new HashMap<String, Long>(); nameDirectory_recid = insert( nameDirectory ); setRoot( NAME_DIRECTORY_ROOT, nameDirectory_recid ); } else { nameDirectory = ( Map<String, Long> ) fetch( nameDirectory_recid ); } return nameDirectory; }
/** * Load name directory */ @SuppressWarnings("unchecked") private Map<String, Long> getNameDirectory() throws IOException { // retrieve directory of named hashtable long nameDirectory_recid = getRoot( NAME_DIRECTORY_ROOT ); if ( nameDirectory_recid == 0 ) { nameDirectory = new HashMap<String, Long>(); nameDirectory_recid = insert( nameDirectory ); setRoot( NAME_DIRECTORY_ROOT, nameDirectory_recid ); } else { nameDirectory = ( Map<String, Long> ) fetch( nameDirectory_recid ); } return nameDirectory; }