本文整理汇总了Java中com.intellij.util.io.EnumeratorIntegerDescriptor.INSTANCE属性的典型用法代码示例。如果您正苦于以下问题:Java EnumeratorIntegerDescriptor.INSTANCE属性的具体用法?Java EnumeratorIntegerDescriptor.INSTANCE怎么用?Java EnumeratorIntegerDescriptor.INSTANCE使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.intellij.util.io.EnumeratorIntegerDescriptor
的用法示例。
在下文中一共展示了EnumeratorIntegerDescriptor.INSTANCE属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: DetectedFrameworksData
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);
}
}
}
示例2: Cache
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);
}
示例3: MyMapReduceIndex
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<>());
}
示例4: getKeyDescriptor
@Override
public KeyDescriptor<Integer> getKeyDescriptor() {
return EnumeratorIntegerDescriptor.INSTANCE;
}
示例5: MethodsUsageIndexReader
public MethodsUsageIndexReader(final Project project, final String canonicalIndexName, final int version) {
//noinspection ConstantConditions
super(EnumeratorIntegerDescriptor.INSTANCE,
new TObjectIntHashMapExternalizer<EnumeratedMethodIncompleteSignature>(EnumeratedMethodIncompleteSignature.createDataExternalizer()),
canonicalIndexName, version, project);
}
示例6: getKeyDescriptor
@NotNull
@Override
public final KeyDescriptor<Integer> getKeyDescriptor() {
return EnumeratorIntegerDescriptor.INSTANCE;
}
示例7: getKeyDescriptor
@NotNull
public KeyDescriptor<Integer> getKeyDescriptor() {
return EnumeratorIntegerDescriptor.INSTANCE;
}
示例8: getKeyDescriptor
@NotNull
@Override
public KeyDescriptor<Integer> getKeyDescriptor() {
return EnumeratorIntegerDescriptor.INSTANCE;
}
示例9: createOrOpenMap
private static PersistentHashMap<Integer, Integer> createOrOpenMap() throws IOException {
return new PersistentHashMap<Integer, Integer>(new File(tracingDataLocation), EnumeratorIntegerDescriptor.INSTANCE, EnumeratorIntegerDescriptor.INSTANCE);
}
示例10: TwinVariablesIndex
public TwinVariablesIndex() {
super(new EnumeratorStringDescriptor(), new ArrayListKeyDescriptor<Integer>(EnumeratorIntegerDescriptor.INSTANCE));
}
示例11: BackwardDependenciesStorage
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);
}
}
};
}
示例12: getKeyDescriptor
@Override
public final KeyDescriptor<Integer> getKeyDescriptor() {
return EnumeratorIntegerDescriptor.INSTANCE;
}
示例13: getValueExternalizer
@NotNull
@Override
public DataExternalizer<Integer> getValueExternalizer() {
return EnumeratorIntegerDescriptor.INSTANCE;
}
示例14: getKeyDescriptor
@Nonnull
@Override
public final KeyDescriptor<Integer> getKeyDescriptor() {
return EnumeratorIntegerDescriptor.INSTANCE;
}
示例15: getKeyDescriptor
@Nonnull
@Override
public KeyDescriptor<Integer> getKeyDescriptor() {
return EnumeratorIntegerDescriptor.INSTANCE;
}