com.datasalt.pangool.solr
Class DefaultTupleDocumentConverter

java.lang.Object
  extended by com.datasalt.pangool.solr.DefaultTupleDocumentConverter
All Implemented Interfaces:
TupleDocumentConverter, Serializable

public class DefaultTupleDocumentConverter
extends Object
implements TupleDocumentConverter

This default TupleDocumentConverter maps a ITuple to a SolrInputDocument using primitive Schema.Field types.

See Also:
Serialized Form

Constructor Summary
DefaultTupleDocumentConverter()
           
 
Method Summary
 void checkFieldType(Schema.Field field)
           
 org.apache.solr.common.SolrInputDocument convert(ITuple key, org.apache.hadoop.io.NullWritable value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTupleDocumentConverter

public DefaultTupleDocumentConverter()
Method Detail

convert

public org.apache.solr.common.SolrInputDocument convert(ITuple key,
                                                        org.apache.hadoop.io.NullWritable value)
                                                 throws IOException
Specified by:
convert in interface TupleDocumentConverter
Throws:
IOException

checkFieldType

public void checkFieldType(Schema.Field field)
                    throws IOException
Throws:
IOException


Copyright © –2014 Datasalt Systems S.L.. All rights reserved.