Package org.apache.orc.impl
Class OrcTail
java.lang.Object
org.apache.orc.impl.OrcTail
-
Constructor Summary
ConstructorDescriptionOrcTail
(OrcProto.FileTail fileTail, ByteBuffer serializedTail) OrcTail
(OrcProto.FileTail fileTail, ByteBuffer serializedTail, long fileModificationTime) OrcTail
(OrcProto.FileTail fileTail, BufferChunk serializedTail, long fileModificationTime) OrcTail
(OrcProto.FileTail fileTail, BufferChunk serializedTail, long fileModificationTime, Reader reader) -
Method Summary
Modifier and TypeMethodDescriptionint
long
Get the position of the end of the file.long
long
Get the file offset of the metadata section of footer.int
Deprecated.the user should use Reader.getStripeStatistics instead.long
Get the file offset of the stripe statistics.Gets the buffer chunks that correspond to the stripe statistics, file tail, and post script.getTypes()
-
Constructor Details
-
OrcTail
- Throws:
IOException
-
OrcTail
public OrcTail(OrcProto.FileTail fileTail, ByteBuffer serializedTail, long fileModificationTime) throws IOException - Throws:
IOException
-
OrcTail
public OrcTail(OrcProto.FileTail fileTail, BufferChunk serializedTail, long fileModificationTime) throws IOException - Throws:
IOException
-
OrcTail
public OrcTail(OrcProto.FileTail fileTail, BufferChunk serializedTail, long fileModificationTime, Reader reader) throws IOException - Throws:
IOException
-
-
Method Details
-
getSerializedTail
-
getTailBuffer
Gets the buffer chunks that correspond to the stripe statistics, file tail, and post script.- Returns:
- the shared buffers with the contents of the file tail
-
getFileModificationTime
public long getFileModificationTime() -
getPostScript
-
getWriterVersion
-
getStripes
-
getCompressionKind
-
getCompressionBufferSize
public int getCompressionBufferSize() -
getMetadataSize
public int getMetadataSize() -
getTypes
-
getSchema
-
getFileTail
-
getMetadataOffset
public long getMetadataOffset()Get the file offset of the metadata section of footer.- Returns:
- the byte offset of the start of the metadata
-
getStripeStatisticsOffset
public long getStripeStatisticsOffset()Get the file offset of the stripe statistics.- Returns:
- the byte offset of the start of the stripe statistics
-
getFileLength
public long getFileLength()Get the position of the end of the file.- Returns:
- the byte length of the file
-
getMinimalFileTail
-
getStripeStatistics
Deprecated.the user should use Reader.getStripeStatistics instead.Get the stripe statistics from the file tail. This code is for compatibility with ORC 1.5.- Returns:
- the stripe statistics
- Throws:
IOException
-