Package org.biojava.bio.program.indexdb
Interface Record
-
- All Known Implementing Classes:
Record.Impl
public interface Record
Recordrepresents a record within an indexed flat file databank as defined by the OBDA standard.- Author:
- Matthew Pocock, Keith James
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classRecord.ImplImplis the default implementation of Record.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RAFgetFile()getFilereturns the random access file in which the record belongs.StringgetID()getIDreturns the primary identifier of the record.intgetLength()getLengthreturns the length of the record in bytes.longgetOffset()getOffsetreturns the byte offset in the file at which the record begins.
-
-
-
Method Detail
-
getFile
RAF 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.
-
-