You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1981,7 +1981,8 @@ public void writeDataPageV2Header(
1981
1981
rowCount,
1982
1982
dataEncoding,
1983
1983
rlByteLength,
1984
-
dlByteLength),
1984
+
dlByteLength,
1985
+
true/* compressed by default */),
1985
1986
to);
1986
1987
}
1987
1988
@@ -2059,6 +2060,10 @@ public void writeDataPageV1Header(
2059
2060
pageHeaderAAD);
2060
2061
}
2061
2062
2063
+
/**
2064
+
* @deprecated will be removed in 2.0.0. Use {@link ParquetMetadataConverter#writeDataPageV2Header(int, int, int, int, int, org.apache.parquet.column.Encoding, int, int, boolean, OutputStream)} instead
2065
+
*/
2066
+
@Deprecated
2062
2067
publicvoidwriteDataPageV2Header(
2063
2068
intuncompressedSize,
2064
2069
intcompressedSize,
@@ -2079,11 +2084,16 @@ public void writeDataPageV2Header(
2079
2084
dataEncoding,
2080
2085
rlByteLength,
2081
2086
dlByteLength,
2087
+
true, /* compressed by default */
2082
2088
to,
2083
2089
null,
2084
2090
null);
2085
2091
}
2086
2092
2093
+
/**
2094
+
* @deprecated will be removed in 2.0.0. Use {@link ParquetMetadataConverter#writeDataPageV2Header(int, int, int, int, int, org.apache.parquet.column.Encoding, int, int, boolean, OutputStream, BlockCipher.Encryptor, byte[])} instead
2095
+
*/
2096
+
@Deprecated
2087
2097
publicvoidwriteDataPageV2Header(
2088
2098
intuncompressedSize,
2089
2099
intcompressedSize,
@@ -2097,35 +2107,53 @@ public void writeDataPageV2Header(
2097
2107
BlockCipher.EncryptorblockEncryptor,
2098
2108
byte[] pageHeaderAAD)
2099
2109
throwsIOException {
2100
-
writePageHeader(
2101
-
newDataPageV2Header(
2102
-
uncompressedSize,
2103
-
compressedSize,
2104
-
valueCount,
2105
-
nullCount,
2106
-
rowCount,
2107
-
dataEncoding,
2108
-
rlByteLength,
2109
-
dlByteLength),
2110
+
writeDataPageV2Header(
2111
+
uncompressedSize,
2112
+
compressedSize,
2113
+
valueCount,
2114
+
nullCount,
2115
+
rowCount,
2116
+
dataEncoding,
2117
+
rlByteLength,
2118
+
dlByteLength,
2119
+
true, /* compressed by default */
2110
2120
to,
2111
2121
blockEncryptor,
2112
2122
pageHeaderAAD);
2113
2123
}
2114
2124
2115
-
privatePageHeadernewDataPageV2Header(
2125
+
/**
2126
+
* @deprecated will be removed in 2.0.0. Use {@link ParquetMetadataConverter#writeDataPageV2Header(int, int, int, int, int, org.apache.parquet.column.Encoding, int, int, boolean, int, OutputStream, BlockCipher.Encryptor, byte[])} instead
0 commit comments