Java反射机制获取内部类的静态成员Java认证考试

文章作者 100test 发表时间 2010:01:08 19:10:21
来源 100Test.Com百考试题网


  最近需要些一个可配置的索引构建程序,需要在运行时调用Lucene包的如下类及其成员:

  引用

  Nested Class Summary

  static class Field.Index

  Specifies whether and how a field should be indexed.

  static class Field.Store

  Specifies whether and how a field should be stored.

  static class Field.TermVector

  Specifies whether and how a field should have term vectors.

  lucene api中称之为Nested Class,意为嵌套类,而嵌套类内部的File.Index的成员又是静态成员。

  引用

  Field Summary

  static Field.Index ANALYZED

  Index the tokens produced by running the fields value through an Analyzer.

  static Field.Index ANALYZED_NO_NORMS

  Expert: Index the tokens produced by running the fields value through an Analyzer, and also separately disable the storing of norms.

  static Field.Index NO

  Do not index the field value.

  static Field.Index NO_NORMS

  Deprecated. This has been renamed to NOT_ANALYZED_NO_NORMS

  static Field.Index NOT_ANALYZED

  Index the fields value without using an Analyzer, so it can be searched.


相关文章


Java通过JNI调用Tuxedo方法Java认证考试
Java获取窗口鼠标坐标以及键盘按键Java认证考试
Java内存泄露问题分析Java认证考试
java的转义字符 在正则表达式中应用Java认证考试
Java反射机制获取内部类的静态成员Java认证考试
调整Java虚拟机支持其运行Java应用程序Java认证考试
JAVA初始化的陷阱Java认证考试
使用匿名内部类在方法内部定义并启动线程Java认证考试
JAVA驱动注册3种方法Java认证考试
澳大利亚华人论坛
考好网
日本华人论坛
华人移民留学论坛
英国华人论坛