Class DfsReftableStack

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class DfsReftableStack
    extends java.lang.Object
    implements java.lang.AutoCloseable
    Tracks multiple open ReftableReader instances.
    • Constructor Detail

      • DfsReftableStack

        private DfsReftableStack​(int tableCnt)
    • Method Detail

      • open

        public static DfsReftableStack open​(DfsReader ctx,
                                            java.util.List<DfsReftable> files)
                                     throws java.io.IOException
        Opens a stack of tables for reading.
        Parameters:
        ctx - context to read the tables with. This ctx will be retained by the stack and each of the table readers.
        files - the tables to open.
        Returns:
        stack reference to close the tables.
        Throws:
        java.io.IOException - a table could not be opened
      • files

        public java.util.List<DfsReftable> files()
        Get unmodifiable list of DfsRefatble files
        Returns:
        unmodifiable list of DfsRefatble files, in the same order the files were passed to open(DfsReader, List).
      • readers

        public java.util.List<ReftableReader> readers()
        Get unmodifiable list of tables
        Returns:
        unmodifiable list of tables, in the same order the files were passed to open(DfsReader, List).
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable