public class BijectInt2String extends BijectInt2StringAppender implements URIRepository
Constructor and Description |
---|
BijectInt2String(String name,
int uris_cache) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
destroy()
Destroy repository.
|
URI |
get(long id)
Retrieves the URI of a given id, null when the id is not assigned yet.
|
long |
resolve(URI uri)
Retrives long value (ID) assigned to the URI by some previous call of
URIRepositoryAppender.append(java.net.URI) method, -1 iff
the URI is unknown to this base. |
append, size
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
append, size
public BijectInt2String(String name, int uris_cache)
name
- uris_cache
- public void destroy()
URIRepository
destroy
in interface URIRepository
destroy
in class BijectInt2StringAppender
public void close()
close
in interface URIRepositoryAppender
close
in class BijectInt2StringAppender
public URI get(long id) throws DatabaseStorageException
get
in interface URIRepository
id
- DatabaseStorageException
public long resolve(URI uri) throws DatabaseStorageException
URIRepository
URIRepositoryAppender.append(java.net.URI)
method, -1 iff
the URI is unknown to this base.resolve
in interface URIRepository
DatabaseStorageException
Copyright © 2016 Egothor. All Rights Reserved.