Package org.biojava.bio.program.indexdb
Interface Record
- All Known Implementing Classes:
Record.Impl
public interface Record
Record represents a record within an indexed flat file
databank as defined by the OBDA standard.- Author:
- Matthew Pocock, Keith James
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classImplis the default implementation of Record. -
Method Summary
Modifier and TypeMethodDescriptiongetFile()getFilereturns the random access file in which the record belongs.getID()getIDreturns the primary identifier of the record.intgetLengthreturns the length of the record in bytes.longgetOffsetreturns the byte offset in the file at which the record begins.
-
Method Details
-
getID
getIDreturns the primary identifier of the record.- Returns:
- a
StringID.
-
getFile
getFilereturns the random access file in which the record belongs.- Returns:
- a
RAF.
-
getOffset
long getOffset()getOffsetreturns the byte offset in the file at which the record begins.- Returns:
- a
longoffset.
-
getLength
int getLength()getLengthreturns the length of the record in bytes.- Returns:
- an
int.
-