Package org.apache.orc.impl
Class OrcAcidUtils
java.lang.Object
org.apache.orc.impl.OrcAcidUtils
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic long
getLastFlushLength
(FileSystem fs, Path deltaFile) Read the side file to get the last flush length.static Path
getSideFile
(Path main) Get the filename of the ORC ACID side file that contains the lengths of the intermediate footers.static AcidStats
parseAcidStats
(Reader reader)
-
Field Details
-
ACID_STATS
- See Also:
-
DELTA_SIDE_FILE_SUFFIX
- See Also:
-
-
Constructor Details
-
OrcAcidUtils
public OrcAcidUtils()
-
-
Method Details
-
getSideFile
Get the filename of the ORC ACID side file that contains the lengths of the intermediate footers.- Parameters:
main
- the main ORC filename- Returns:
- the name of the side file
-
getLastFlushLength
Read the side file to get the last flush length.- Parameters:
fs
- the file system to usedeltaFile
- the path of the delta file- Returns:
- the maximum size of the file to use
- Throws:
IOException
-
parseAcidStats
-