read

abstract fun read(directory: Directory, segmentName: String, segmentID: ByteArray, context: IOContext): SegmentInfo

Read SegmentInfo data from a directory.

Return

infos instance to be populated with data

Parameters

directory

directory to read from

segmentName

name of the segment to read

segmentID

expected identifier for the segment

Throws

IOException

If an I/O error occurs