org.apache.solr.schema
Class LongField
java.lang.Object
org.apache.solr.schema.FieldType
org.apache.solr.schema.LongField
public class LongField
- extends FieldType
- Version:
- $Id: LongField.java 479793 2006-11-27 22:40:21Z klaas $
- Author:
- yonik
Method Summary |
org.apache.lucene.search.SortField |
getSortField(SchemaField field,
boolean reverse)
Returns the SortField instance that should be used to sort fields
of this type. |
ValueSource |
getValueSource(SchemaField field)
called to get the default value source (normally, from the
Lucene FieldCache.) |
protected void |
init(IndexSchema schema,
java.util.Map<java.lang.String,java.lang.String> args)
subclasses should initialize themselves with the args provided
and remove valid arguments. |
void |
write(TextResponseWriter writer,
java.lang.String name,
org.apache.lucene.document.Fieldable f)
calls back to TextResponseWriter to write the field value |
void |
write(XMLWriter xmlWriter,
java.lang.String name,
org.apache.lucene.document.Fieldable f)
Renders the specified field as XML |
Methods inherited from class org.apache.solr.schema.FieldType |
createField, getAnalyzer, getFieldIndex, getFieldStore, getFieldTermVec, getQueryAnalyzer, getStringSort, getTypeName, indexedToReadable, isTokenized, restrictProps, setAnalyzer, setQueryAnalyzer, storedToIndexed, storedToReadable, toExternal, toInternal, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LongField
public LongField()
init
protected void init(IndexSchema schema,
java.util.Map<java.lang.String,java.lang.String> args)
- Description copied from class:
FieldType
- subclasses should initialize themselves with the args provided
and remove valid arguments. leftover arguments will cause an exception.
Common boolean properties have already been handled.
- Overrides:
init
in class FieldType
getSortField
public org.apache.lucene.search.SortField getSortField(SchemaField field,
boolean reverse)
- Description copied from class:
FieldType
- Returns the SortField instance that should be used to sort fields
of this type.
- Specified by:
getSortField
in class FieldType
getValueSource
public ValueSource getValueSource(SchemaField field)
- Description copied from class:
FieldType
- called to get the default value source (normally, from the
Lucene FieldCache.)
- Overrides:
getValueSource
in class FieldType
write
public void write(XMLWriter xmlWriter,
java.lang.String name,
org.apache.lucene.document.Fieldable f)
throws java.io.IOException
- Description copied from class:
FieldType
- Renders the specified field as XML
- Specified by:
write
in class FieldType
- Throws:
java.io.IOException
write
public void write(TextResponseWriter writer,
java.lang.String name,
org.apache.lucene.document.Fieldable f)
throws java.io.IOException
- Description copied from class:
FieldType
- calls back to TextResponseWriter to write the field value
- Specified by:
write
in class FieldType
- Throws:
java.io.IOException
Copyright © 2006 - 2008 The Apache Software Foundation