Class OrcTail

java.lang.Object
org.apache.orc.impl.OrcTail

public final class OrcTail extends Object
  • Constructor Details

  • Method Details

    • getSerializedTail

      public ByteBuffer getSerializedTail()
    • getTailBuffer

      public BufferChunk 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()
    • getFooter

      public OrcProto.Footer getFooter()
    • getPostScript

      public OrcProto.PostScript getPostScript()
    • getWriterVersion

      public OrcFile.WriterVersion getWriterVersion()
    • getStripes

      public List<StripeInformation> getStripes()
    • getCompressionKind

      public CompressionKind getCompressionKind()
    • getCompressionBufferSize

      public int getCompressionBufferSize()
    • getMetadataSize

      public int getMetadataSize()
    • getTypes

      public List<OrcProto.Type> getTypes()
    • getSchema

      public TypeDescription getSchema()
    • getFileTail

      public OrcProto.FileTail 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

      public OrcProto.FileTail getMinimalFileTail()
    • getStripeStatistics

      public List<StripeStatistics> getStripeStatistics() throws IOException
      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