thinkmap.server.search
Class FieldDef.ClassDef

java.lang.Object
  extended by thinkmap.server.search.FieldDef<Class<?>>
      extended by thinkmap.server.search.FieldDef.ClassDef
All Implemented Interfaces:
Serializable
Enclosing class:
FieldDef<T>

public static class FieldDef.ClassDef
extends FieldDef<Class<?>>

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class thinkmap.server.search.FieldDef
FieldDef.ArrayDef<T>, FieldDef.BigDecimalDef, FieldDef.BooleanDef, FieldDef.ByteDef, FieldDef.CharDef, FieldDef.ClassDef, FieldDef.DateDef, FieldDef.DoubleDef, FieldDef.FloatDef, FieldDef.IntegerDef, FieldDef.LongDef, FieldDef.NumericDef<T extends Number>, FieldDef.ObjectDef<T>, FieldDef.ShortDef, FieldDef.StringDef
 
Field Summary
 
Fields inherited from class thinkmap.server.search.FieldDef
analyzer, field, name
 
Constructor Summary
FieldDef.ClassDef(String name)
           
 
Method Summary
 Class<?> decode(String s)
           
 String encode(Class<?> o)
           
 void encodeValue(org.apache.lucene.document.Document d, Class<?> value)
           
 Class getType()
           
 org.apache.lucene.analysis.Analyzer initAnalyzer()
           
protected  org.apache.lucene.document.Fieldable initField()
           
 org.apache.lucene.search.Query termQuery(Object term)
           
 
Methods inherited from class thinkmap.server.search.FieldDef
convertTo, decodeValue, equals, fieldFor, getAnalyzer, getField, getName, hashCode, humanEncode, isIndexed, range
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldDef.ClassDef

public FieldDef.ClassDef(String name)
Method Detail

getType

public Class getType()
Specified by:
getType in class FieldDef<Class<?>>

initAnalyzer

public org.apache.lucene.analysis.Analyzer initAnalyzer()
Overrides:
initAnalyzer in class FieldDef<Class<?>>

decode

public Class<?> decode(String s)
Specified by:
decode in class FieldDef<Class<?>>

initField

protected org.apache.lucene.document.Fieldable initField()
Overrides:
initField in class FieldDef<Class<?>>

encode

public String encode(Class<?> o)
Specified by:
encode in class FieldDef<Class<?>>

encodeValue

public void encodeValue(org.apache.lucene.document.Document d,
                        Class<?> value)
Specified by:
encodeValue in class FieldDef<Class<?>>

termQuery

public org.apache.lucene.search.Query termQuery(Object term)
Overrides:
termQuery in class FieldDef<Class<?>>


Copyright © 2013 Thinkmap, Inc. All Rights Reserved.