docs: public ResultSegment runPartitionScanQueryOnPartitionChunk(Query query, int partitionId, int tableIndex, int fetchSize) {
          MapContainer mapContainer = mapServiceContext.getMapContainer(query.getMapName());
          Predicate predicate = queryOptimizer.optimize(query.getPredicate(), mapContainer.getIndexes(partitionId));
          QueryableEntriesSegment entries = partitionScanExecutor
                  .execute(query.getMapName(), predicate, partitionId, tableIndex, fetchSize);
  
          ResultProcessor processor = resultProcessorRegistry.get(query.getResultType());
          Result result = processor.populateResult(query, Long.MAX_VALUE, entries.getEntries(),
                  singletonPartitionIdSet(partitionCount, partitionId));
  
          return new ResultSegment(result, entries.getNextTableIndexToReadFrom());
      }