SOLR-421 -- make SolrParams and Solr*Documents serializable

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@600589 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan McKinley 2007-12-03 16:35:59 +00:00
parent b627573cba
commit cbfc1f07a2
4 changed files with 8 additions and 4 deletions

View File

@ -18,6 +18,7 @@
package org.apache.solr.client.solrj;
import java.io.IOException;
import java.io.Serializable;
import java.util.Collection;
import org.apache.solr.common.params.SolrParams;
@ -28,7 +29,7 @@ import org.apache.solr.common.util.ContentStream;
* @version $Id$
* @since solr 1.3
*/
public interface SolrRequest
public interface SolrRequest extends Serializable
{
public enum METHOD {
GET,

View File

@ -17,6 +17,7 @@
package org.apache.solr.common;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
@ -30,7 +31,7 @@ import java.util.Collection;
* @version $Id$
* @since solr 1.3
*/
public class SolrInputDocument implements Iterable<SolrInputField>
public class SolrInputDocument implements Iterable<SolrInputField>, Serializable
{
private final Map<String,SolrInputField> _fields;
private float _documentBoost = 1.0f;

View File

@ -17,6 +17,7 @@
package org.apache.solr.common;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
@ -25,7 +26,7 @@ import java.util.Iterator;
* @version $Id$
* @since solr 1.3
*/
public class SolrInputField implements Iterable<Object>
public class SolrInputField implements Iterable<Object>, Serializable
{
String name;
Object value = null;

View File

@ -17,6 +17,7 @@
package org.apache.solr.common.params;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
@ -29,7 +30,7 @@ import org.apache.solr.common.util.SimpleOrderedMap;
*
* @version $Id$
*/
public abstract class SolrParams {
public abstract class SolrParams implements Serializable {
/** returns the String value of a param, or null if not set */
public abstract String get(String param);