当前位置: 首页>>代码示例>>Java>>正文


Java EnumeratorIntegerDescriptor类代码示例

本文整理汇总了Java中com.intellij.util.io.EnumeratorIntegerDescriptor的典型用法代码示例。如果您正苦于以下问题:Java EnumeratorIntegerDescriptor类的具体用法?Java EnumeratorIntegerDescriptor怎么用?Java EnumeratorIntegerDescriptor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


EnumeratorIntegerDescriptor类属于com.intellij.util.io包,在下文中一共展示了EnumeratorIntegerDescriptor类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: DetectedFrameworksData

import com.intellij.util.io.EnumeratorIntegerDescriptor; //导入依赖的package包/类
public DetectedFrameworksData(Project project) {
  myDetectedFrameworks = new MultiMap<Integer, DetectedFrameworkDescription>();
  File file = new File(FrameworkDetectorRegistryImpl.getDetectionDirPath() + File.separator + project.getName() + "." + project.getLocationHash() +
                       File.separator + "files");
  myNewFiles = new TIntObjectHashMap<TIntHashSet>();
  try {
    myExistentFrameworkFiles = new PersistentHashMap<Integer, TIntHashSet>(file, EnumeratorIntegerDescriptor.INSTANCE, new TIntHashSetExternalizer());
  }
  catch (IOException e) {
    LOG.info(e);
    PersistentHashMap.deleteFilesStartingWith(file);
    try {
      myExistentFrameworkFiles = new PersistentHashMap<Integer, TIntHashSet>(file, EnumeratorIntegerDescriptor.INSTANCE, new TIntHashSetExternalizer());
    }
    catch (IOException e1) {
      LOG.error(e1);
    }
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:20,代码来源:DetectedFrameworksData.java

示例2: Cache

import com.intellij.util.io.EnumeratorIntegerDescriptor; //导入依赖的package包/类
public Cache(@NonNls final String storePath, final int cacheSize) throws IOException {
  myStorePath = storePath;
  new File(storePath).mkdirs();
  myQNameToClassInfoMap = new CachedPersistentHashMap<Integer, ClassInfo>(getOrCreateFile("classes"), EnumeratorIntegerDescriptor.INSTANCE, new DataExternalizer<ClassInfo>() {
    public void save(DataOutput out, ClassInfo value) throws IOException {
      value.save(out);
    }
    public ClassInfo read(DataInput in) throws IOException {
      return new ClassInfo(in);
    }
  }, cacheSize * 2) {
    protected boolean isValueDirty(ClassInfo classInfo) {
      return classInfo.isDirty();
    }
  };

  myDependencies = new BackwardDependenciesStorage(getOrCreateFile("bdeps"), cacheSize);
  myQNameToReferencedClassesMap = new CompilerDependencyStorage<Integer>(getOrCreateFile("fdeps"), EnumeratorIntegerDescriptor.INSTANCE, cacheSize);
  myQNameToSubclassesMap = new CompilerDependencyStorage<Integer>(getOrCreateFile("subclasses"), EnumeratorIntegerDescriptor.INSTANCE, cacheSize);

  myRemoteQNames = new PersistentHashMap<Integer, Boolean>(getOrCreateFile("remote"), EnumeratorIntegerDescriptor.INSTANCE, new DataExternalizer<Boolean>() {
    public void save(DataOutput out, Boolean value) throws IOException {
      out.writeBoolean(value.booleanValue());
    }

    public Boolean read(DataInput in) throws IOException {
      return in.readBoolean();
    }
  }, cacheSize);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:31,代码来源:Cache.java

示例3: MyMapReduceIndex

import com.intellij.util.io.EnumeratorIntegerDescriptor; //导入依赖的package包/类
public MyMapReduceIndex(@Nonnull DataIndexer<Integer, T, VcsFullCommitDetails> indexer,
                        @Nonnull DataExternalizer<T> externalizer,
                        int version) throws IOException {
  super(new MyIndexExtension(indexer, externalizer, version),
        new MapIndexStorage<Integer, T>(getStorageFile(myName, myLogId),
                                        EnumeratorIntegerDescriptor.INSTANCE,
                                        externalizer, 5000, false) {
          @Override
          protected void checkCanceled() {
            ProgressManager.checkCanceled();
          }
        }, new EmptyForwardIndex<>());
}
 
开发者ID:consulo,项目名称:consulo,代码行数:14,代码来源:VcsLogFullDetailsIndex.java

示例4: getKeyDescriptor

import com.intellij.util.io.EnumeratorIntegerDescriptor; //导入依赖的package包/类
@Override
public KeyDescriptor<Integer> getKeyDescriptor() {
  return EnumeratorIntegerDescriptor.INSTANCE;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:MethodsUsageIndexer.java

示例5: MethodsUsageIndexReader

import com.intellij.util.io.EnumeratorIntegerDescriptor; //导入依赖的package包/类
public MethodsUsageIndexReader(final Project project, final String canonicalIndexName, final int version) {
  //noinspection ConstantConditions
  super(EnumeratorIntegerDescriptor.INSTANCE,
        new TObjectIntHashMapExternalizer<EnumeratedMethodIncompleteSignature>(EnumeratedMethodIncompleteSignature.createDataExternalizer()),
        canonicalIndexName, version, project);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:MethodsUsageIndexReader.java

示例6: getKeyDescriptor

import com.intellij.util.io.EnumeratorIntegerDescriptor; //导入依赖的package包/类
@NotNull
@Override
public final KeyDescriptor<Integer> getKeyDescriptor() {
  return EnumeratorIntegerDescriptor.INSTANCE;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:SingleEntryFileBasedIndexExtension.java

示例7: getKeyDescriptor

import com.intellij.util.io.EnumeratorIntegerDescriptor; //导入依赖的package包/类
@NotNull
public KeyDescriptor<Integer> getKeyDescriptor() {
  return EnumeratorIntegerDescriptor.INSTANCE;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:IntStubIndexExtension.java

示例8: getKeyDescriptor

import com.intellij.util.io.EnumeratorIntegerDescriptor; //导入依赖的package包/类
@NotNull
@Override
public KeyDescriptor<Integer> getKeyDescriptor() {
  return EnumeratorIntegerDescriptor.INSTANCE;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:TrigramIndex.java

示例9: createOrOpenMap

import com.intellij.util.io.EnumeratorIntegerDescriptor; //导入依赖的package包/类
private static PersistentHashMap<Integer, Integer> createOrOpenMap() throws IOException {
  return new PersistentHashMap<Integer, Integer>(new File(tracingDataLocation), EnumeratorIntegerDescriptor.INSTANCE, EnumeratorIntegerDescriptor.INSTANCE);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:TracingData.java

示例10: TwinVariablesIndex

import com.intellij.util.io.EnumeratorIntegerDescriptor; //导入依赖的package包/类
public TwinVariablesIndex() {
  super(new EnumeratorStringDescriptor(), new ArrayListKeyDescriptor<Integer>(EnumeratorIntegerDescriptor.INSTANCE));
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:4,代码来源:TwinVariablesIndex.java

示例11: BackwardDependenciesStorage

import com.intellij.util.io.EnumeratorIntegerDescriptor; //导入依赖的package包/类
public BackwardDependenciesStorage(File file, final int cacheSize) throws IOException {
  myMap = new PersistentHashMap<Integer, DependenciesSet>(file, EnumeratorIntegerDescriptor.INSTANCE, new MyDataExternalizer());

  myCache = new SLRUCache<Integer, ReferencerSetHolder>(cacheSize * 2, cacheSize) {
    @NotNull
    public ReferencerSetHolder createValue(Integer key) {
      return new ReferencerSetHolder(key);
    }

    protected void onDropFromCache(Integer key, final ReferencerSetHolder holder) {
      if (key.equals(myKeyToRemove) || !holder.isDirty()) {
        return;
      }
      try {
        if (holder.isDataLoaded() || !myMap.containsMapping(key)) {
          myMap.put(key, new DependenciesSet(holder.getData()));
        }
        else {
          myMap.appendData(key, new PersistentHashMap.ValueDataAppender() {
            public void append(final DataOutput out) throws IOException {
              final Ref<IOException> exception = new Ref<IOException>(null);
              // process removed
              holder.myRemoveRequested.forEach(new TIntProcedure() {
                public boolean execute(int qName) {
                  try {
                    out.writeInt(-qName);
                    return true;
                  }
                  catch (IOException e) {
                    exception.set(e);
                  }
                  return false;
                }
              });
              final IOException _ex = exception.get();
              if (_ex != null) {
                throw _ex;
              }
              // process added members
              for (ReferencerItem item : holder.myAdded) {
                item.save(out);
              }
            }
          });
        }
      }
      catch (IOException e) {
        LOG.error(e);
      }
    }
  };
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:53,代码来源:BackwardDependenciesStorage.java

示例12: getKeyDescriptor

import com.intellij.util.io.EnumeratorIntegerDescriptor; //导入依赖的package包/类
@Override
public final KeyDescriptor<Integer> getKeyDescriptor() {
  return EnumeratorIntegerDescriptor.INSTANCE;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:5,代码来源:SingleEntryFileBasedIndexExtension.java

示例13: getValueExternalizer

import com.intellij.util.io.EnumeratorIntegerDescriptor; //导入依赖的package包/类
@NotNull
@Override
public DataExternalizer<Integer> getValueExternalizer() {
    return EnumeratorIntegerDescriptor.INSTANCE;
}
 
开发者ID:Haehnchen,项目名称:idea-php-symfony2-plugin,代码行数:6,代码来源:ContainerIdUsagesStubIndex.java

示例14: getKeyDescriptor

import com.intellij.util.io.EnumeratorIntegerDescriptor; //导入依赖的package包/类
@Nonnull
@Override
public final KeyDescriptor<Integer> getKeyDescriptor() {
  return EnumeratorIntegerDescriptor.INSTANCE;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:6,代码来源:SingleEntryFileBasedIndexExtension.java

示例15: getKeyDescriptor

import com.intellij.util.io.EnumeratorIntegerDescriptor; //导入依赖的package包/类
@Nonnull
@Override
public KeyDescriptor<Integer> getKeyDescriptor() {
  return EnumeratorIntegerDescriptor.INSTANCE;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:6,代码来源:VcsLogFullDetailsIndex.java


注:本文中的com.intellij.util.io.EnumeratorIntegerDescriptor类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。