Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
package za.co.absa.cobrix.spark.cobol.source.streaming

import org.apache.hadoop.conf.Configuration
import org.slf4j.{Logger, LoggerFactory}
import org.apache.hadoop.fs.{ContentSummary, Path}
import org.apache.log4j.Logger
import za.co.absa.cobrix.cobol.reader.common.Constants
import za.co.absa.cobrix.cobol.reader.stream.SimpleStream
import za.co.absa.cobrix.spark.cobol.utils.FileUtils
Expand All @@ -39,7 +39,7 @@ import java.io.IOException
*/
class FileStreamer(filePath: String, hadoopConfig: Configuration, startOffset: Long = 0L, maximumBytes: Long = 0L) extends SimpleStream {

private val logger = Logger.getLogger(FileStreamer.this.getClass)
private val logger: Logger = LoggerFactory.getLogger(this.getClass)

private val hadoopPath = new Path(filePath)
private var byteIndex = startOffset
Expand Down