Search in sources :

Example 6 with BlockIndex

use of org.apache.carbondata.core.indexstore.blockletindex.BlockIndex in project carbondata by apache.

the class BlockletIndexStore method clearAccessCount.

/**
 * The method clears the access count of table segments
 *
 * @param tableSegmentUniqueIdentifiersWrapper
 */
@Override
public void clearAccessCount(List<TableBlockIndexUniqueIdentifierWrapper> tableSegmentUniqueIdentifiersWrapper) {
    for (TableBlockIndexUniqueIdentifierWrapper identifierWrapper : tableSegmentUniqueIdentifiersWrapper) {
        BlockIndex cacheable = (BlockIndex) lruCache.get(identifierWrapper.getTableBlockIndexUniqueIdentifier().getUniqueTableSegmentIdentifier());
        cacheable.clear();
    }
}
Also used : BlockIndex(org.apache.carbondata.core.indexstore.blockletindex.BlockIndex)

Aggregations

BlockIndex (org.apache.carbondata.core.indexstore.blockletindex.BlockIndex)6 Index (org.apache.carbondata.core.index.dev.Index)4 ArrayList (java.util.ArrayList)3 IOException (java.io.IOException)2 HashMap (java.util.HashMap)1 HashSet (java.util.HashSet)1 List (java.util.List)1 Map (java.util.Map)1 SegmentProperties (org.apache.carbondata.core.datastore.block.SegmentProperties)1 CoarseGrainIndex (org.apache.carbondata.core.index.dev.cgindex.CoarseGrainIndex)1 FineGrainBlocklet (org.apache.carbondata.core.index.dev.fgindex.FineGrainBlocklet)1 Blocklet (org.apache.carbondata.core.indexstore.Blocklet)1 ExtendedBlocklet (org.apache.carbondata.core.indexstore.ExtendedBlocklet)1 BlockletIndexModel (org.apache.carbondata.core.indexstore.blockletindex.BlockletIndexModel)1 SegmentIndexFileStore (org.apache.carbondata.core.indexstore.blockletindex.SegmentIndexFileStore)1 DataFileFooter (org.apache.carbondata.core.metadata.blocklet.DataFileFooter)1 Expression (org.apache.carbondata.core.scan.expression.Expression)1 FilterExecutor (org.apache.carbondata.core.scan.filter.executer.FilterExecutor)1