public class DocTransformers extends DocTransformer
Constructor and Description |
---|
DocTransformers() |
Modifier and Type | Method and Description |
---|---|
void |
addTransformer(DocTransformer a) |
String |
getName() |
DocTransformer |
getTransformer(int idx) |
void |
setContext(TransformContext context)
This is called before transform and sets
|
int |
size() |
void |
transform(SolrDocument doc,
int docid)
This is where implementations do the actual work
|
toString
public String getName()
getName
in class DocTransformer
public void addTransformer(DocTransformer a)
public int size()
public DocTransformer getTransformer(int idx)
public void setContext(TransformContext context)
DocTransformer
setContext
in class DocTransformer
context
- The TransformContext
stores information about the current state of things in Solr that may be
useful for doing transformations.public void transform(SolrDocument doc, int docid) throws IOException
DocTransformer
transform
in class DocTransformer
doc
- The document to alterdocid
- The Lucene internal doc idIOException
- If there is a low-level I/O error.Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.