RecordStrategy

interface RecordStrategy<R : Any>

For easy re-use we make handling records a strategy that is used by Backfills.

Functions

bytesToRecords
Link copied to clipboard
abstract fun bytesToRecords(source: ByteString): List<R>
Converts a ByteString to records.
calculateNextRecordBytes
Link copied to clipboard
abstract fun calculateNextRecordBytes(source: BufferedSource): Long
Calculates the byte offset of the start of the next record.

Inheritors

Utf8StringNewlineStrategy
Link copied to clipboard