Interface ScanTask

    • Method Detail

      • sizeBytes

        default long sizeBytes()
        The number of bytes that should be read by this scan task.
        Returns:
        the total number of bytes to read
      • filesCount

        default int filesCount()
        The number of files that will be opened by this scan task.
        Returns:
        the number of files to open
      • isFileScanTask

        default boolean isFileScanTask()
        Returns true if this is a FileScanTask, false otherwise.
      • isDataTask

        default boolean isDataTask()
        Returns true if this is a DataTask, false otherwise.
      • asDataTask

        default DataTask asDataTask()
        Returns this cast to DataTask if it is one
        Returns:
        this cast to DataTask if it is one
        Throws:
        java.lang.IllegalStateException - if this is not a DataTask