Skip to content

Commit 8cf25b9

Browse files
committed
Java Style.
1 parent e9f9be5 commit 8cf25b9

File tree

8 files changed

+39
-39
lines changed

8 files changed

+39
-39
lines changed

sql/hive/src/test/java/org/apache/spark/sql/hive/execution/UDFRawList.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* UDF that returns a raw (non-parameterized) java List.
2626
*/
2727
public class UDFRawList extends UDF {
28-
public List evaluate(Object o) {
29-
return Collections.singletonList("data1");
30-
}
28+
public List evaluate(Object o) {
29+
return Collections.singletonList("data1");
30+
}
3131
}

sql/hive/src/test/java/org/apache/spark/sql/hive/execution/UDFRawMap.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* UDF that returns a raw (non-parameterized) java Map.
2626
*/
2727
public class UDFRawMap extends UDF {
28-
public Map evaluate(Object o) {
29-
return Collections.singletonMap("a", "1");
30-
}
28+
public Map evaluate(Object o) {
29+
return Collections.singletonMap("a", "1");
30+
}
3131
}

sql/hive/src/test/java/org/apache/spark/sql/hive/execution/UDFToIntIntMap.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
import java.util.Map;
2424

2525
public class UDFToIntIntMap extends UDF {
26-
public Map<Integer, Integer> evaluate(Object o) {
27-
return new HashMap<Integer, Integer>() {
28-
{
29-
put(1, 1);
30-
put(2, 1);
31-
put(3, 1);
32-
}
33-
};
34-
}
26+
public Map<Integer, Integer> evaluate(Object o) {
27+
return new HashMap<Integer, Integer>() {
28+
{
29+
put(1, 1);
30+
put(2, 1);
31+
put(3, 1);
32+
}
33+
};
34+
}
3535
}

sql/hive/src/test/java/org/apache/spark/sql/hive/execution/UDFToListInt.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import java.util.Arrays;
2424

2525
public class UDFToListInt extends UDF {
26-
public ArrayList<Integer> evaluate(Object o) {
27-
return new ArrayList<>(Arrays.asList(1, 2, 3));
28-
}
26+
public ArrayList<Integer> evaluate(Object o) {
27+
return new ArrayList<>(Arrays.asList(1, 2, 3));
28+
}
2929
}

sql/hive/src/test/java/org/apache/spark/sql/hive/execution/UDFToListMapStringListInt.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
* values.
2626
*/
2727
public class UDFToListMapStringListInt extends UDF {
28-
public List<Map<String, List<Integer>>> evaluate(Object o) {
29-
final Map<String, List<Integer>> map = new HashMap<>();
30-
map.put("a", Arrays.asList(1, 2));
31-
map.put("b", Arrays.asList(3, 4));
32-
return Collections.singletonList(map);
33-
}
28+
public List<Map<String, List<Integer>>> evaluate(Object o) {
29+
final Map<String, List<Integer>> map = new HashMap<>();
30+
map.put("a", Arrays.asList(1, 2));
31+
map.put("b", Arrays.asList(3, 4));
32+
return Collections.singletonList(map);
33+
}
3434
}

sql/hive/src/test/java/org/apache/spark/sql/hive/execution/UDFToListString.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import java.util.List;
2424

2525
public class UDFToListString extends UDF {
26-
public List<String> evaluate(Object o) {
27-
return Arrays.asList("data1", "data2", "data3");
28-
}
26+
public List<String> evaluate(Object o) {
27+
return Arrays.asList("data1", "data2", "data3");
28+
}
2929
}

sql/hive/src/test/java/org/apache/spark/sql/hive/execution/UDFToStringIntMap.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
import java.util.HashMap;
2323

2424
public class UDFToStringIntMap extends UDF {
25-
public HashMap<String, Integer> evaluate(Object o) {
26-
return new HashMap<String, Integer>() {
27-
{
28-
put("key1", 1);
29-
put("key2", 2);
30-
put("key3", 3);
31-
}
32-
};
33-
}
25+
public HashMap<String, Integer> evaluate(Object o) {
26+
return new HashMap<String, Integer>() {
27+
{
28+
put("key1", 1);
29+
put("key2", 2);
30+
put("key3", 3);
31+
}
32+
};
33+
}
3434
}

sql/hive/src/test/java/org/apache/spark/sql/hive/execution/UDFWildcardList.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* UDF that returns a raw (non-parameterized) java List.
2626
*/
2727
public class UDFWildcardList extends UDF {
28-
public List<?> evaluate(Object o) {
29-
return Collections.singletonList("data1");
30-
}
28+
public List<?> evaluate(Object o) {
29+
return Collections.singletonList("data1");
30+
}
3131
}

0 commit comments

Comments
 (0)