Tabnine Logo
Cache.invalidate
Code IndexAdd Tabnine to your IDE (free)

How to use
invalidate
method
in
org.apache.carbondata.core.cache.Cache

Best Java code snippets using org.apache.carbondata.core.cache.Cache.invalidate (Showing top 4 results out of 315)

origin: org.apache.carbondata/carbondata-hadoop

/**
 * This method will remove the cache for a given key
 *
 * @param keys
 */
public void invalidateAll(List<K> keys) {
 for (K key : keys) {
  cache.invalidate(key);
 }
}
origin: org.apache.carbondata/carbondata-bloom

@Override
public void clear(Segment segment) {
 Set<String> shards = segmentMap.remove(segment.getSegmentNo());
 if (shards != null) {
  for (String shard : shards) {
   for (CarbonColumn carbonColumn : dataMapMeta.getIndexedColumns()) {
    cache.invalidate(new BloomCacheKeyValue.CacheKey(shard, carbonColumn.getColName()));
   }
  }
 }
}
origin: org.apache.carbondata/carbondata-core

 /**
  * This method will remove dictionary cache from driver for both reverse and forward dictionary
  *
  * @param carbonTableIdentifier
  * @param columnId
  */
 public static void removeDictionaryColumnFromCache(AbsoluteTableIdentifier carbonTableIdentifier,
   String columnId) {
  Cache<DictionaryColumnUniqueIdentifier, Dictionary> dictCache =
    CacheProvider.getInstance().createCache(CacheType.REVERSE_DICTIONARY);
  DictionaryColumnUniqueIdentifier dictionaryColumnUniqueIdentifier =
    new DictionaryColumnUniqueIdentifier(carbonTableIdentifier,
      new ColumnIdentifier(columnId, null, null));
  dictCache.invalidate(dictionaryColumnUniqueIdentifier);
  dictCache = CacheProvider.getInstance().createCache(CacheType.FORWARD_DICTIONARY);
  dictCache.invalidate(dictionaryColumnUniqueIdentifier);
 }
}
origin: org.apache.carbondata/carbondata-core

@Override
public void clear(Segment segment) {
 Set<TableBlockIndexUniqueIdentifier> blockIndexes = segmentMap.remove(segment.getSegmentNo());
 if (blockIndexes != null) {
  for (TableBlockIndexUniqueIdentifier blockIndex : blockIndexes) {
   TableBlockIndexUniqueIdentifierWrapper blockIndexWrapper =
     new TableBlockIndexUniqueIdentifierWrapper(blockIndex, this.getCarbonTable());
   BlockletDataMapIndexWrapper wrapper = cache.getIfPresent(blockIndexWrapper);
   if (null != wrapper) {
    List<BlockDataMap> dataMaps = wrapper.getDataMaps();
    for (DataMap dataMap : dataMaps) {
     if (dataMap != null) {
      cache.invalidate(blockIndexWrapper);
      dataMap.clear();
     }
    }
   }
  }
 }
}
org.apache.carbondata.core.cacheCacheinvalidate

Javadoc

This method will remove the cache for a given key

Popular methods of Cache

  • get
    This method will get the value for the given key. If value does not exist for the given key, it will
  • getIfPresent
    This method will return the value for the given key. It will not check and load the data for the giv
  • clearAccessCount
    Access count of Cacheable entry will be decremented
  • getAll
    This method will return a list of values for the given list of keys. For each key, this method will
  • put
    This method will add the value to the cache for the given key

Popular in Java

  • Reading from database using SQL prepared statement
  • getApplicationContext (Context)
  • requestLocationUpdates (LocationManager)
  • setRequestProperty (URLConnection)
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JOptionPane (javax.swing)
  • Option (scala)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now