Skip to content

Commit 1d25597

Browse files
committed
Run mvn spotless:apply
1 parent 8667aa3 commit 1d25597

File tree

8 files changed

+70
-7
lines changed

8 files changed

+70
-7
lines changed

parquet-hadoop/src/main/java/org/apache/parquet/format/converter/ParquetMetadataConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ public EncodingStats convertEncodingStats(List<PageEncodingStats> stats) {
761761
switch (stat.getPage_type()) {
762762
case DATA_PAGE_V2:
763763
builder.withV2Pages();
764-
// falls through
764+
// falls through
765765
case DATA_PAGE:
766766
builder.addDataEncoding(getEncoding(stat.getEncoding()), stat.getCount());
767767
break;

parquet-hadoop/src/main/java/org/apache/parquet/hadoop/CodecFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ private String cacheKey(CompressionCodecName codecName) {
323323
level = conf.get("parquet.compression.codec.zstd.level");
324324
break;
325325
default:
326-
// compression level is not supported; ignore it
326+
// compression level is not supported; ignore it
327327
}
328328
String codecClass = codecName.getHadoopCompressionCodecClassName();
329329
return level == null ? codecClass : codecClass + ":" + level;

parquet-hadoop/src/main/java/org/apache/parquet/hadoop/ColumnIndexValidator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ private void validateBoundaryOrder(
546546
prevMaxValue::toString);
547547
break;
548548
case UNORDERED:
549-
// No checks necessary.
549+
// No checks necessary.
550550
}
551551
}
552552
}

parquet-hadoop/src/main/java/org/apache/parquet/hadoop/DirectCodecFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ protected BytesCompressor createCompressor(final CompressionCodecName codecName)
103103
return new SnappyCompressor();
104104
case ZSTD:
105105
return new ZstdCompressor();
106-
// todo: create class similar to the SnappyCompressor for zlib and exclude it as
107-
// snappy is above since it also generates allocateDirect calls.
106+
// todo: create class similar to the SnappyCompressor for zlib and exclude it as
107+
// snappy is above since it also generates allocateDirect calls.
108108
default:
109109
return super.createCompressor(codecName);
110110
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
package org.apache.parquet.jackson;
20+
21+
/**
22+
* Apache Parquet Jackson module placeholder class.
23+
*
24+
* <p>This module provides shaded Jackson dependencies for use by other Parquet modules.
25+
* All Jackson classes are relocated under the {@code parquet.com.fasterxml.jackson.core} namespace.
26+
*
27+
* <p>This class exists solely to enable javadoc generation for this module.
28+
* The actual functionality is provided by shaded Jackson classes.
29+
*
30+
* @see <a href="https://github.com/FasterXML/jackson/">Jackson</a>
31+
*/
32+
public final class ParquetJackson {
33+
private ParquetJackson() {
34+
// Utility class - prevent instantiation
35+
}
36+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
/**
20+
* Apache Parquet Jackson module.
21+
*
22+
* <p>This module provides shaded Jackson dependencies for use by other Parquet modules.
23+
* It contains no public API classes - all classes are shaded from Jackson libraries.
24+
*
25+
* @see <a href="https://github.com/FasterXML/jackson/">Jackson</a>
26+
*/
27+
package org.apache.parquet.jackson;

parquet-thrift/src/main/java/org/apache/parquet/thrift/BufferedProtocolReadToWrite.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ private boolean readOneValue(TProtocol in, byte type, List<Action> buffer, Thrif
226226
writeShortAction(buffer, s);
227227
break;
228228
case TType.ENUM: // same as i32 => actually never seen in the protocol layer as enums are written as a i32
229-
// field
229+
// field
230230
case TType.I32:
231231
final int i = in.readI32();
232232
checkEnum(expectedType, i);

parquet-thrift/src/main/java/org/apache/parquet/thrift/ProtocolReadToWrite.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ void readOneValue(TProtocol in, TProtocol out, byte type) throws TException {
7474
out.writeI16(in.readI16());
7575
break;
7676
case TType.ENUM: // same as i32 => actually never seen in the protocol layer as enums are written as a i32
77-
// field
77+
// field
7878
case TType.I32:
7979
out.writeI32(in.readI32());
8080
break;

0 commit comments

Comments
 (0)