Package org.apache.pinot.segment.spi
Class FetchContext
- java.lang.Object
-
- org.apache.pinot.segment.spi.FetchContext
-
public class FetchContext extends Object
The context for fetching buffers of a segment during query.
-
-
Constructor Summary
Constructors Constructor Description 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 mapFetchContext(UUID fetchId, String segmentName, Set<String> columns)Create a new FetchRequest for this segment, to fetch all buffers of the given columns
-
Method Summary
Modifier and Type Method Description 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 fetchedUUIDgetFetchId()An id to uniquely identify the fetch requestStringgetSegmentName()Segment name associated with this fetch contextbooleanisEmpty()
-
-
-
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 idsegmentName- segment namecolumns- 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 idsegmentName- segment namecolumnToIndexList- 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()
-
-