func (this *BinlogCoordinates) NextFileCoordinates() (BinlogCoordinates, error) {
	result := BinlogCoordinates{LogPos: 0, Type: this.Type}

	fileNum, numLen := this.FileNumber()
	newNumStr := fmt.Sprintf("%d", (fileNum + 1))
	newNumStr = strings.Repeat("0", numLen-len(newNumStr)) + newNumStr

	tokens := strings.Split(this.LogFile, ".")
	tokens[len(tokens)-1] = newNumStr
	result.LogFile = strings.Join(tokens, ".")
	return result, nil
}
// PreviousFileCoordinates guesses the filename of the previous binlog/relaylog
PreviousFileCoordinates guesses the filename of the previous binlog/relaylog
// PreviousFileCoordinates guesses the filename of the previous binlog / relaylog
func (this *BinlogCoordinates) NextFileCoordinates() (BinlogCoordinates, error) {
	result := BinlogCoordinates{LogPos: 0, Type: this.Type}
	fileNum, numLen := this.FileNumber()
	newNumStr := fmt.Sprintf("%d", (fileNum + 1))
	newNumStr = strings.Repeat("0", numLen-len(newNumStr)) + newNumStr
	tokens := strings.Split(this.LogFile, ".")
	tokens[len(tokens)-1] = newNumStr
	result.LogFile = strings.Join(tokens, ".")
	return result, nil
}
func ( this * BinlogCoordinates ) NextFileCoordinates ( ) ( BinlogCoordinates , error ) { result := BinlogCoordinates { LogPos : 0 , Type : this . Type } fileNum , numLen := this . FileNumber ( ) newNumStr := fmt . Sprintf ( " " , ( fileNum + 1 ) ) newNumStr = strings . Repeat ( " " , numLen - len ( newNumStr ) ) + newNumStr tokens := strings . Split ( this . LogFile , " " ) tokens [ len ( tokens ) - 1 ] = newNumStr result . LogFile = strings . Join ( tokens , " " ) return result , nil }
PreviousFileCoordinates guesses the filename of the previous binlog/relaylog
PreviousFileCoordinates guesses the filename of the previous binlog / relaylog