public interface IndexStore
IndexStore is an interface for indexing flatfiles
according to the OBDA specification. It represents a map of Record instances
by a primary ID and any number of Records associated with an ID in some
seccondary namespace.| Modifier and Type | Method and Description |
|---|---|
Record |
get(String id)
get returns a record specified by a primary
identifier. |
List |
get(String id,
String namespace)
get returns a list of Records by
searching against the primary identifiers if the namespace
argument is equal to the primary namespace or otherwise by
searching the secondary namespaces. |
Annotation |
getMetaData()
getMetaData returns a data structure which
represents an OBDA "config.dat" flatfile indexing configuration
file. |
void |
writeRecord(RAF file,
long offset,
int length,
String id,
Map secIDs)
writeRecord creates and writes a new
Record |
Record get(String id) throws BioException
get returns a record specified by a primary
identifier.id - a String primary ID.Record.BioException - if an error occurs or if there is no Record
associated with the idList get(String id, String namespace) throws BioException
get returns a list of Records by
searching against the primary identifiers if the namespace
argument is equal to the primary namespace or otherwise by
searching the secondary namespaces. The list of Record instances retuned
may be empty, but is never null.id - a String primary ID.namespace - a String.List of Records.BioException - if an error occurs.Annotation getMetaData()
getMetaData returns a data structure which
represents an OBDA "config.dat" flatfile indexing configuration
file.Annotation.void writeRecord(RAF file, long offset, int length, String id, Map secIDs)
writeRecord creates and writes a new
Recordfile - a RAF file.offset - a long byte offset.length - an int byte record length.id - a String primary ID.secIDs - a Map of primary ID to a
List of secondary IDs.Copyright © 2020 BioJava. All rights reserved.