Class FetchContext


  • public class FetchContext
    extends Object
    The context for fetching buffers of a segment during query.
    • Constructor Detail

      • FetchContext

        public FetchContext​(UUID fetchId,
                            String segmentName,
                            Set<String> columns)
        Create a new FetchRequest for this segment, to fetch all buffers of the given columns
        Parameters:
        fetchId - unique fetch id
        segmentName - segment name
        columns - set of columns to fetch
      • FetchContext

        public FetchContext​(UUID fetchId,
                            String segmentName,
                            Map<String,​List<ColumnIndexType>> columnToIndexList)
        Create a new FetchRequest for this segment, to fetch those indexes as mentioned in the column to indexes list map
        Parameters:
        fetchId - unique fetch id
        segmentName - segment name
        columnToIndexList - map of column names as key, and list of indexes to fetch as values
    • Method Detail

      • getFetchId

        public UUID getFetchId()
        An id to uniquely identify the fetch request
        Returns:
        unique uuid
      • getSegmentName

        public String getSegmentName()
        Segment name associated with this fetch context
      • getColumnToIndexList

        public Map<String,​List<ColumnIndexType>> getColumnToIndexList()
        Map of columns to fetch as key, and the list of indexes to fetch for the column as value The list of indexes can be null, which indicates that every index for this column should be fetched
      • isEmpty

        public boolean isEmpty()