adding @Override to subclasses

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@615267 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan McKinley 2008-01-25 16:53:27 +00:00
parent b396846531
commit ea27734f4e
12 changed files with 25 additions and 6 deletions

View File

@ -19,8 +19,6 @@ package org.apache.solr.client.solrj;
import java.io.Reader; import java.io.Reader;
import java.io.InputStream; import java.io.InputStream;
import java.io.InputStreamReader;
import org.apache.solr.common.util.NamedList; import org.apache.solr.common.util.NamedList;
/** /**

View File

@ -85,6 +85,7 @@ public class EmbeddedSolrServer extends SolrServer
return new SolrRequestParsers( true, Long.MAX_VALUE ); return new SolrRequestParsers( true, Long.MAX_VALUE );
} }
@Override
public NamedList<Object> request(SolrRequest request) throws SolrServerException, IOException public NamedList<Object> request(SolrRequest request) throws SolrServerException, IOException
{ {
String path = request.getPath(); String path = request.getPath();

View File

@ -19,9 +19,7 @@ package org.apache.solr.client.solrj.impl;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream; import java.io.OutputStream;
import java.io.Reader;
import java.net.MalformedURLException; import java.net.MalformedURLException;
import java.net.URL; import java.net.URL;
import java.util.Collection; import java.util.Collection;
@ -131,6 +129,7 @@ public class CommonsHttpSolrServer extends SolrServer
//------------------------------------------------------------------------ //------------------------------------------------------------------------
//------------------------------------------------------------------------ //------------------------------------------------------------------------
@Override
public NamedList<Object> request( final SolrRequest request ) throws SolrServerException, IOException public NamedList<Object> request( final SolrRequest request ) throws SolrServerException, IOException
{ {
// TODO -- need to set the WRITER TYPE!!! // TODO -- need to set the WRITER TYPE!!!

View File

@ -68,11 +68,13 @@ public class XMLResponseParser extends ResponseParser
public XMLResponseParser() {} public XMLResponseParser() {}
@Override
public String getWriterType() public String getWriterType()
{ {
return "xml"; return "xml";
} }
@Override
public NamedList<Object> processResponse(Reader in) { public NamedList<Object> processResponse(Reader in) {
XMLStreamReader parser = null; XMLStreamReader parser = null;
try { try {
@ -84,6 +86,7 @@ public class XMLResponseParser extends ResponseParser
return processResponse(parser); return processResponse(parser);
} }
@Override
public NamedList<Object> processResponse(InputStream in, String encoding) public NamedList<Object> processResponse(InputStream in, String encoding)
{ {
XMLStreamReader parser = null; XMLStreamReader parser = null;

View File

@ -44,14 +44,17 @@ public class DirectXmlRequest extends SolrRequest
xml = body; xml = body;
} }
@Override
public Collection<ContentStream> getContentStreams() { public Collection<ContentStream> getContentStreams() {
return ClientUtils.toContentStreams( xml, ClientUtils.TEXT_XML ); return ClientUtils.toContentStreams( xml, ClientUtils.TEXT_XML );
} }
@Override
public SolrParams getParams() { public SolrParams getParams() {
return null; return null;
} }
@Override
public UpdateResponse process( SolrServer server ) throws SolrServerException, IOException public UpdateResponse process( SolrServer server ) throws SolrServerException, IOException
{ {
long startTime = System.currentTimeMillis(); long startTime = System.currentTimeMillis();

View File

@ -74,10 +74,12 @@ public class LukeRequest extends SolrRequest
this.showSchema = showSchema; this.showSchema = showSchema;
} }
@Override
public Collection<ContentStream> getContentStreams() { public Collection<ContentStream> getContentStreams() {
return null; return null;
} }
@Override
public SolrParams getParams() { public SolrParams getParams() {
ModifiableSolrParams params = new ModifiableSolrParams(); ModifiableSolrParams params = new ModifiableSolrParams();
if( fields != null && fields.size() > 0 ) { if( fields != null && fields.size() > 0 ) {
@ -92,6 +94,7 @@ public class LukeRequest extends SolrRequest
return params; return params;
} }
@Override
public LukeResponse process( SolrServer server ) throws SolrServerException, IOException public LukeResponse process( SolrServer server ) throws SolrServerException, IOException
{ {
long startTime = System.currentTimeMillis(); long startTime = System.currentTimeMillis();

View File

@ -80,6 +80,7 @@ public class MultiCoreRequest extends SolrRequest
// //
//--------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------
@Override
public SolrParams getParams() public SolrParams getParams()
{ {
if( action == null ) { if( action == null ) {
@ -95,10 +96,12 @@ public class MultiCoreRequest extends SolrRequest
// //
//--------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------
@Override
public Collection<ContentStream> getContentStreams() throws IOException { public Collection<ContentStream> getContentStreams() throws IOException {
return null; return null;
} }
@Override
public MultiCoreResponse process(SolrServer server) throws SolrServerException, IOException public MultiCoreResponse process(SolrServer server) throws SolrServerException, IOException
{ {
long startTime = System.currentTimeMillis(); long startTime = System.currentTimeMillis();

View File

@ -65,14 +65,17 @@ public class QueryRequest extends SolrRequest
//--------------------------------------------------------------------------------- //---------------------------------------------------------------------------------
//--------------------------------------------------------------------------------- //---------------------------------------------------------------------------------
@Override
public Collection<ContentStream> getContentStreams() { public Collection<ContentStream> getContentStreams() {
return null; return null;
} }
@Override
public SolrParams getParams() { public SolrParams getParams() {
return query; return query;
} }
@Override
public QueryResponse process( SolrServer server ) throws SolrServerException public QueryResponse process( SolrServer server ) throws SolrServerException
{ {
try try

View File

@ -42,14 +42,17 @@ public class SolrPing extends SolrRequest
params = new ModifiableSolrParams(); params = new ModifiableSolrParams();
} }
@Override
public Collection<ContentStream> getContentStreams() { public Collection<ContentStream> getContentStreams() {
return null; return null;
} }
@Override
public ModifiableSolrParams getParams() { public ModifiableSolrParams getParams() {
return params; return params;
} }
@Override
public SolrPingResponse process( SolrServer server ) throws SolrServerException, IOException public SolrPingResponse process( SolrServer server ) throws SolrServerException, IOException
{ {
long startTime = System.currentTimeMillis(); long startTime = System.currentTimeMillis();

View File

@ -131,6 +131,7 @@ public class UpdateRequest extends SolrRequest
//-------------------------------------------------------------------------- //--------------------------------------------------------------------------
//-------------------------------------------------------------------------- //--------------------------------------------------------------------------
@Override
public Collection<ContentStream> getContentStreams() throws IOException { public Collection<ContentStream> getContentStreams() throws IOException {
return ClientUtils.toContentStreams( getXML(), ClientUtils.TEXT_XML ); return ClientUtils.toContentStreams( getXML(), ClientUtils.TEXT_XML );
} }
@ -182,6 +183,7 @@ public class UpdateRequest extends SolrRequest
//-------------------------------------------------------------------------- //--------------------------------------------------------------------------
//-------------------------------------------------------------------------- //--------------------------------------------------------------------------
@Override
public SolrParams getParams() { public SolrParams getParams() {
if( action != null ) { if( action != null ) {
ModifiableSolrParams params = new ModifiableSolrParams(); ModifiableSolrParams params = new ModifiableSolrParams();
@ -198,6 +200,7 @@ public class UpdateRequest extends SolrRequest
return null; return null;
} }
@Override
public UpdateResponse process( SolrServer server ) throws SolrServerException, IOException public UpdateResponse process( SolrServer server ) throws SolrServerException, IOException
{ {
long startTime = System.currentTimeMillis(); long startTime = System.currentTimeMillis();

View File

@ -18,8 +18,6 @@
package org.apache.solr.client.solrj.response; package org.apache.solr.client.solrj.response;
import java.util.Date; import java.util.Date;
import java.util.List;
import org.apache.solr.common.util.NamedList; import org.apache.solr.common.util.NamedList;

View File

@ -36,6 +36,7 @@ public abstract class SolrResponseBase extends SolrResponse
response = res; response = res;
} }
@Override
public long getElapsedTime() { public long getElapsedTime() {
return elapsedTime; return elapsedTime;
} }
@ -44,6 +45,7 @@ public abstract class SolrResponseBase extends SolrResponse
this.elapsedTime = elapsedTime; this.elapsedTime = elapsedTime;
} }
@Override
public NamedList<Object> getResponse() { public NamedList<Object> getResponse() {
return response; return response;
} }