org.apache.solr.schema
Class BCDStrField

java.lang.Object
  extended by org.apache.solr.schema.FieldType
      extended by org.apache.solr.schema.BCDIntField
          extended by org.apache.solr.schema.BCDStrField

public class BCDStrField
extends BCDIntField

Version:
$Id: BCDStrField.java 555343 2007-07-11 17:46:25Z hossman $

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.solr.schema.FieldType
FieldType.DefaultAnalyzer
 
Field Summary
 
Fields inherited from class org.apache.solr.schema.FieldType
analyzer, args, falseProperties, log, queryAnalyzer, trueProperties, typeName
 
Constructor Summary
BCDStrField()
           
 
Method Summary
 String toObject(Fieldable f)
          This only works for strings that represent an interger.
 void write(XMLWriter xmlWriter, String name, Fieldable f)
          Renders the specified field as XML
 
Methods inherited from class org.apache.solr.schema.BCDIntField
getSortField, getValueSource, indexedToReadable, init, toExternal, toInternal, write
 
Methods inherited from class org.apache.solr.schema.FieldType
createField, getAnalyzer, getArg, getFieldIndex, getFieldStore, getFieldTermVec, getQueryAnalyzer, getRangeQuery, getStringSort, getTypeName, getValueSource, isMultiValued, isTokenized, multiValuedFieldCache, readableToIndexed, restrictProps, setAnalyzer, setQueryAnalyzer, storedToIndexed, storedToReadable, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BCDStrField

public BCDStrField()
Method Detail

write

public void write(XMLWriter xmlWriter,
                  String name,
                  Fieldable f)
           throws IOException
Description copied from class: FieldType
Renders the specified field as XML

Overrides:
write in class BCDIntField
Throws:
IOException

toObject

public String toObject(Fieldable f)
This only works for strings that represent an interger. If the string is not an integer, it will not survive the base10k conversion!

Overrides:
toObject in class BCDIntField
See Also:
FieldType.toInternal(java.lang.String)


Copyright © 2009 Apache Software Foundation. All Rights Reserved.