core/src/main/java/org/apache/carbondata/core/scan/filter/executer/RowLevelFilterExecuterImpl.java
/**
   * @param index
   * @param dimColumnEvaluatorInfo
   * @return read surrogate of given row of given column group dimension
   */
@param index
@param dimColumnEvaluatorInfo
@return read surrogate of given row of given column group dimension
@param index @param dimColumnEvaluatorInfo @return read surrogate of given row of given column group dimension
private int readSurrogatesFromColumnGroupBlock(DimensionColumnDataChunk chunk, int index,
      DimColumnResolvedFilterInfo dimColumnEvaluatorInfo) {
    try {
      KeyStructureInfo keyStructureInfo =
          QueryUtil.getKeyStructureInfo(segmentProperties, dimColumnEvaluatorInfo);
      byte[] colData = chunk.getChunkData(index);
      long[] result = keyStructureInfo.getKeyGenerator().getKeyArray(colData);
      int colGroupId =
          QueryUtil.getColumnGroupId(segmentProperties, dimensionBlocksIndex[0]);
      return (int) result[segmentProperties
          .getColumnGroupMdKeyOrdinal(colGroupId, dimensionBlocksIndex[0])];
    } catch (KeyGenException e) {
      LOGGER.error(e);
    }
    return 0;
  }
private int readSurrogatesFromColumnGroupBlock ( DimensionColumnDataChunk chunk , int index , DimColumnResolvedFilterInfo dimColumnEvaluatorInfo ) { try { KeyStructureInfo keyStructureInfo = QueryUtil . getKeyStructureInfo ( segmentProperties , dimColumnEvaluatorInfo ) ; byte [ ] colData = chunk . getChunkData ( index ) ; long [ ] result = keyStructureInfo . getKeyGenerator ( ) . getKeyArray ( colData ) ; int colGroupId = QueryUtil . getColumnGroupId ( segmentProperties , dimensionBlocksIndex [ 0 ] ) ; return ( int ) result [ segmentProperties . getColumnGroupMdKeyOrdinal ( colGroupId , dimensionBlocksIndex [ 0 ] ) ] ; } catch ( KeyGenException e ) { LOGGER . error ( e ) ; } return 0 ; }
@param index
 @param dimColumnEvaluatorInfo
 @return read surrogate of given row of given column group dimension
@param index @param dimColumnEvaluatorInfo @return read surrogate of given row of given column group dimension