Class RecordPageSource

    • Constructor Detail

      • RecordPageSource

        public RecordPageSource​(RecordSet recordSet)
      • RecordPageSource

        public RecordPageSource​(java.util.List<Type> types,
                                RecordCursor cursor)
    • Method Detail

      • getCompletedBytes

        public long getCompletedBytes()
        Description copied from interface: ConnectorPageSource
        Gets the number of input bytes processed by this page source so far. If size is not available, this method should return zero.
        Specified by:
        getCompletedBytes in interface ConnectorPageSource
      • getReadTimeNanos

        public long getReadTimeNanos()
        Description copied from interface: ConnectorPageSource
        Gets the wall time this page source spent reading data from the input. If read time is not available, this method should return zero.
        Specified by:
        getReadTimeNanos in interface ConnectorPageSource
      • getSystemMemoryUsage

        public long getSystemMemoryUsage()
        Description copied from interface: ConnectorPageSource
        Get the total memory that needs to be reserved in the general memory pool. This memory should include any buffers, etc. that are used for reading data.
        Specified by:
        getSystemMemoryUsage in interface ConnectorPageSource
        Returns:
        the memory used so far in table read
      • close

        public void close()
        Description copied from interface: ConnectorPageSource
        Immediately finishes this page source. Presto will always call this method.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface ConnectorPageSource