type timestamp … type batch … func (b *batch) isStringsBatch() bool { … } func (b *batch) isStacksBatch() bool { … } func (b *batch) isCPUSamplesBatch() bool { … } func (b *batch) isFreqBatch() bool { … } // readBatch reads the next full batch from r. func readBatch(r interface { … }