org.apache.solr.response.transform
Class DocTransformers
java.lang.Object
org.apache.solr.response.transform.DocTransformer
org.apache.solr.response.transform.DocTransformers
public class DocTransformers
- extends DocTransformer
Transform a document before it gets sent out
DocTransformers
public DocTransformers()
getName
public String getName()
- Specified by:
getName
in class DocTransformer
- Returns:
- The name of the transformer
addTransformer
public void addTransformer(DocTransformer a)
size
public int size()
getTransformer
public DocTransformer getTransformer(int idx)
setContext
public void setContext(TransformContext context)
- Description copied from class:
DocTransformer
- This is called before transform and sets
- Overrides:
setContext
in class DocTransformer
- Parameters:
context
- The TransformContext
stores information about the current state of things in Solr that may be
useful for doing transformations.
transform
public void transform(SolrDocument doc,
int docid)
throws IOException
- Description copied from class:
DocTransformer
- This is where implementations do the actual work
- Specified by:
transform
in class DocTransformer
- Parameters:
doc
- The document to alterdocid
- The Lucene internal doc id
- Throws:
IOException
- If there is a low-level I/O error.
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.