[ 
https://issues.apache.org/jira/browse/PARQUET-2318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17738121#comment-17738121
 ] 

ASF GitHub Bot commented on PARQUET-2318:
-----------------------------------------

shangxinli commented on code in PR #1117:
URL: https://github.com/apache/parquet-mr/pull/1117#discussion_r1245218806


##########
parquet-cli/src/main/java/org/apache/parquet/cli/util/RawUtils.java:
##########
@@ -0,0 +1,85 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.parquet.cli.util;
+
+import static org.apache.parquet.bytes.BytesUtils.readIntLittleEndian;
+import static org.apache.parquet.hadoop.ParquetFileWriter.EFMAGIC;
+import static org.apache.parquet.hadoop.ParquetFileWriter.MAGIC;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+
+import org.apache.parquet.bytes.ByteBufferInputStream;
+import org.apache.parquet.format.FileMetaData;
+import org.apache.parquet.format.Util;
+import org.apache.parquet.io.SeekableInputStream;
+
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.SerializationFeature;
+import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
+
+public class RawUtils {
+
+  private static final ObjectMapper MAPPER = createObjectMapper();
+
+  public static FileMetaData readFooter(SeekableInputStream is, long fileLen) 
throws IOException {

Review Comment:
   the 'is' name is a little not clear. use 'inputStream'? 





> Implement a tool to list page headers
> -------------------------------------
>
>                 Key: PARQUET-2318
>                 URL: https://issues.apache.org/jira/browse/PARQUET-2318
>             Project: Parquet
>          Issue Type: New Feature
>          Components: parquet-cli
>            Reporter: Gabor Szadovszky
>            Assignee: Gabor Szadovszky
>            Priority: Major
>
> Needs a tool which lists the page headers in a Parquet file for debugging 
> purposes.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to