Java 类org.apache.lucene.util.FieldCacheSanityChecker 实例源码

项目:lams    文件:FieldCacheImpl.java   
private void printNewInsanity(PrintStream infoStream, Object value) {
  final FieldCacheSanityChecker.Insanity[] insanities = FieldCacheSanityChecker.checkSanity(wrapper);
  for(int i=0;i<insanities.length;i++) {
    final FieldCacheSanityChecker.Insanity insanity = insanities[i];
    final CacheEntry[] entries = insanity.getCacheEntries();
    for(int j=0;j<entries.length;j++) {
      if (entries[j].getValue() == value) {
        // OK this insanity involves our entry
        infoStream.println("WARNING: new FieldCache insanity created\nDetails: " + insanity.toString());
        infoStream.println("\nStack:\n");
        new Throwable().printStackTrace(infoStream);
        break;
      }
    }
  }
}
项目:linden    文件:LindenFieldCacheImpl.java   
private void printNewInsanity(PrintStream infoStream, Object value) {
  final FieldCacheSanityChecker.Insanity[] insanities = FieldCacheSanityChecker.checkSanity(wrapper);
  for (int i = 0; i < insanities.length; i++) {
    final FieldCacheSanityChecker.Insanity insanity = insanities[i];
    final CacheEntry[] entries = insanity.getCacheEntries();
    for (int j = 0; j < entries.length; j++) {
      if (entries[j].getValue() == value) {
        // OK this insanity involves our entry
        infoStream.println("WARNING: new FieldCache insanity created\nDetails: " + insanity.toString());
        infoStream.println("\nStack:\n");
        new Throwable().printStackTrace(infoStream);
        break;
      }
    }
  }
}
项目:search    文件:FieldCacheImpl.java   
private void printNewInsanity(PrintStream infoStream, Object value) {
  final FieldCacheSanityChecker.Insanity[] insanities = FieldCacheSanityChecker.checkSanity(wrapper);
  for(int i=0;i<insanities.length;i++) {
    final FieldCacheSanityChecker.Insanity insanity = insanities[i];
    final CacheEntry[] entries = insanity.getCacheEntries();
    for(int j=0;j<entries.length;j++) {
      if (entries[j].getValue() == value) {
        // OK this insanity involves our entry
        infoStream.println("WARNING: new FieldCache insanity created\nDetails: " + insanity.toString());
        infoStream.println("\nStack:\n");
        new Throwable().printStackTrace(infoStream);
        break;
      }
    }
  }
}
项目:NYBC    文件:FieldCacheImpl.java   
private void printNewInsanity(PrintStream infoStream, Object value) {
  final FieldCacheSanityChecker.Insanity[] insanities = FieldCacheSanityChecker.checkSanity(wrapper);
  for(int i=0;i<insanities.length;i++) {
    final FieldCacheSanityChecker.Insanity insanity = insanities[i];
    final CacheEntry[] entries = insanity.getCacheEntries();
    for(int j=0;j<entries.length;j++) {
      if (entries[j].getValue() == value) {
        // OK this insanity involves our entry
        infoStream.println("WARNING: new FieldCache insanity created\nDetails: " + insanity.toString());
        infoStream.println("\nStack:\n");
        new Throwable().printStackTrace(infoStream);
        break;
      }
    }
  }
}
项目:read-open-source-code    文件:FieldCacheImpl.java   
private void printNewInsanity(PrintStream infoStream, Object value) {
  final FieldCacheSanityChecker.Insanity[] insanities = FieldCacheSanityChecker.checkSanity(wrapper);
  for(int i=0;i<insanities.length;i++) {
    final FieldCacheSanityChecker.Insanity insanity = insanities[i];
    final CacheEntry[] entries = insanity.getCacheEntries();
    for(int j=0;j<entries.length;j++) {
      if (entries[j].getValue() == value) {
        // OK this insanity involves our entry
        infoStream.println("WARNING: new FieldCache insanity created\nDetails: " + insanity.toString());
        infoStream.println("\nStack:\n");
        new Throwable().printStackTrace(infoStream);
        break;
      }
    }
  }
}
项目:read-open-source-code    文件:FieldCacheImpl.java   
private void printNewInsanity(PrintStream infoStream, Object value) {
  final FieldCacheSanityChecker.Insanity[] insanities = FieldCacheSanityChecker.checkSanity(wrapper);
  for(int i=0;i<insanities.length;i++) {
    final FieldCacheSanityChecker.Insanity insanity = insanities[i];
    final CacheEntry[] entries = insanity.getCacheEntries();
    for(int j=0;j<entries.length;j++) {
      if (entries[j].getValue() == value) {
        // OK this insanity involves our entry
        infoStream.println("WARNING: new FieldCache insanity created\nDetails: " + insanity.toString());
        infoStream.println("\nStack:\n");
        new Throwable().printStackTrace(infoStream);
        break;
      }
    }
  }
}
项目:read-open-source-code    文件:FieldCacheImpl.java   
private void printNewInsanity(PrintStream infoStream, Object value) {
  final FieldCacheSanityChecker.Insanity[] insanities = FieldCacheSanityChecker.checkSanity(wrapper);
  for(int i=0;i<insanities.length;i++) {
    final FieldCacheSanityChecker.Insanity insanity = insanities[i];
    final CacheEntry[] entries = insanity.getCacheEntries();
    for(int j=0;j<entries.length;j++) {
      if (entries[j].getValue() == value) {
        // OK this insanity involves our entry
        infoStream.println("WARNING: new FieldCache insanity created\nDetails: " + insanity.toString());
        infoStream.println("\nStack:\n");
        new Throwable().printStackTrace(infoStream);
        break;
      }
    }
  }
}
项目:Maskana-Gestor-de-Conocimiento    文件:FieldCacheImpl.java   
private void printNewInsanity(PrintStream infoStream, Object value) {
  final FieldCacheSanityChecker.Insanity[] insanities = FieldCacheSanityChecker.checkSanity(wrapper);
  for(int i=0;i<insanities.length;i++) {
    final FieldCacheSanityChecker.Insanity insanity = insanities[i];
    final CacheEntry[] entries = insanity.getCacheEntries();
    for(int j=0;j<entries.length;j++) {
      if (entries[j].getValue() == value) {
        // OK this insanity involves our entry
        infoStream.println("WARNING: new FieldCache insanity created\nDetails: " + insanity.toString());
        infoStream.println("\nStack:\n");
        new Throwable().printStackTrace(infoStream);
        break;
      }
    }
  }
}