Skip to content

Commit

Permalink
[SPARK-24323][SQL] Fix lint-java errors
Browse files Browse the repository at this point in the history
## What changes were proposed in this pull request?

This PR fixes the following errors reported by `lint-java`
```
% dev/lint-java
Using `mvn` from path: /usr/bin/mvn
Checkstyle checks failed at following occurrences:
[ERROR] src/main/java/org/apache/spark/sql/sources/v2/reader/InputPartition.java:[39] (sizes) LineLength: Line is longer than 100 characters (found 104).
[ERROR] src/main/java/org/apache/spark/sql/sources/v2/reader/InputPartitionReader.java:[26] (sizes) LineLength: Line is longer than 100 characters (found 110).
[ERROR] src/main/java/org/apache/spark/sql/sources/v2/reader/InputPartitionReader.java:[30] (sizes) LineLength: Line is longer than 100 characters (found 104).
```

## How was this patch tested?

Run `lint-java` manually.

Author: Kazuaki Ishizaki <[email protected]>

Closes #21374 from kiszk/SPARK-24323.
  • Loading branch information
kiszk authored and HyukjinKwon committed May 21, 2018
1 parent 6d7d45a commit e480ecc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
public interface InputPartition<T> extends Serializable {

/**
* The preferred locations where the input partition reader returned by this partition can run faster,
* but Spark does not guarantee to run the input partition reader on these locations.
* The preferred locations where the input partition reader returned by this partition can run
* faster, but Spark does not guarantee to run the input partition reader on these locations.
* The implementations should make sure that it can be run on any location.
* The location is a string representing the host name.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
import org.apache.spark.annotation.InterfaceStability;

/**
* An input partition reader returned by {@link InputPartition#createPartitionReader()} and is responsible for
* outputting data for a RDD partition.
* An input partition reader returned by {@link InputPartition#createPartitionReader()} and is
* responsible for outputting data for a RDD partition.
*
* Note that, Currently the type `T` can only be {@link org.apache.spark.sql.Row} for normal input
* partition readers, or {@link org.apache.spark.sql.catalyst.expressions.UnsafeRow} for input partition
* readers that mix in {@link SupportsScanUnsafeRow}.
* partition readers, or {@link org.apache.spark.sql.catalyst.expressions.UnsafeRow} for input
* partition readers that mix in {@link SupportsScanUnsafeRow}.
*/
@InterfaceStability.Evolving
public interface InputPartitionReader<T> extends Closeable {
Expand Down

0 comments on commit e480ecc

Please sign in to comment.