org.apache.solr.handler.dataimport
Class DataConfig

java.lang.Object
  extended by org.apache.solr.handler.dataimport.DataConfig

public class DataConfig
extends Object

Mapping for data-config.xml

Refer to http://wiki.apache.org/solr/DataImportHandler for more details.

This API is experimental and subject to change

Since:
solr 1.3
Version:
$Id: DataConfig.java 690134 2008-08-29 07:18:52Z shalin $

Nested Class Summary
static class DataConfig.Document
           
static class DataConfig.Entity
           
static class DataConfig.Field
           
static class DataConfig.Props
           
static class DataConfig.Script
           
 
Field Summary
static String CLASS
           
static String DATA_SRC
           
 Map<String,Properties> dataSources
           
 List<DataConfig.Document> documents
           
 Map<String,Evaluator> evaluators
           
static String FUNCTION
           
static String IMPORTER_NS
           
static String NAME
           
static String PROCESSOR
           
 List<DataConfig.Props> properties
           
static String ROOT_ENTITY
           
 DataConfig.Script script
           
static String SCRIPT
           
static String SCRIPT_LANG
           
static String SCRIPT_NAME
           
 
Constructor Summary
DataConfig()
           
 
Method Summary
 void clearCaches()
           
static List<Element> getChildNodes(Element e, String byName)
           
 DataConfig.Document getDocumentByName(String name)
           
static String getTxt(Node elem, StringBuffer buffer)
           
 void readFromXml(Element e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

documents

public List<DataConfig.Document> documents

properties

public List<DataConfig.Props> properties

evaluators

public Map<String,Evaluator> evaluators

script

public DataConfig.Script script

dataSources

public Map<String,Properties> dataSources

SCRIPT

public static final String SCRIPT
See Also:
Constant Field Values

NAME

public static final String NAME
See Also:
Constant Field Values

SCRIPT_LANG

public static final String SCRIPT_LANG
See Also:
Constant Field Values

SCRIPT_NAME

public static final String SCRIPT_NAME
See Also:
Constant Field Values

PROCESSOR

public static final String PROCESSOR
See Also:
Constant Field Values

IMPORTER_NS

public static final String IMPORTER_NS
See Also:
Constant Field Values

ROOT_ENTITY

public static final String ROOT_ENTITY
See Also:
Constant Field Values

FUNCTION

public static final String FUNCTION
See Also:
Constant Field Values

CLASS

public static final String CLASS
See Also:
Constant Field Values

DATA_SRC

public static final String DATA_SRC
See Also:
Constant Field Values
Constructor Detail

DataConfig

public DataConfig()
Method Detail

getDocumentByName

public DataConfig.Document getDocumentByName(String name)

readFromXml

public void readFromXml(Element e)

getTxt

public static String getTxt(Node elem,
                            StringBuffer buffer)

getChildNodes

public static List<Element> getChildNodes(Element e,
                                          String byName)

clearCaches

public void clearCaches()


Copyright © 2008 Apache Software Foundation. All Rights Reserved.