Skip to content

Commit

Permalink
[ issue #12 ] Code clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
agazzarini committed Mar 23, 2015
1 parent 3c46cc2 commit 996a7fd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,6 @@ public Triple next() {
currentState = iterateOverCurrentPage;
return currentState.next();
}

public String toString() {
return "firstQueryExecution";
};
};

/**
Expand Down Expand Up @@ -111,10 +107,6 @@ public Triple next() {
currentState = iterateOverCurrentPage;
return currentState.next();
}

public String toString() {
return "executeQuery";
};
};

/**
Expand Down Expand Up @@ -162,10 +154,6 @@ DocIterator iterator() {
}
return iterator;
}

public String toString() {
return "iterateOverCurrentPage";
};
};

/**
Expand All @@ -187,10 +175,6 @@ public boolean hasNext() {
public Triple next() {
return currentState.next();
}

public String toString() {
return "checkForConsumptionCompleteness";
};
};

private Iterator<Triple> currentState = firstQueryExecution;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public boolean requireTripleBuild() {
}

@Override
public void onDocSet(DocSet docSet) {
public void onDocSet(final DocSet docSet) {
// Nothing to be done here.
}

Expand All @@ -50,7 +50,6 @@ public void afterTripleHasBeenBuilt(final Triple triple, final int docId) {
final SolrQueryRequest request;
final SolrQueryResponse response;
final QParser qParser;

final GraphEventConsumer listener;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.gazzax.labs.solrdf.handler.update;

import org.apache.solr.common.params.CommonParams;
import org.apache.solr.common.util.ContentStream;
import org.apache.solr.handler.loader.ContentStreamLoader;
import org.apache.solr.request.SolrQueryRequest;
Expand Down Expand Up @@ -29,19 +30,9 @@ public void load(
final ContentStream stream,
final UpdateRequestProcessor processor) throws Exception {

// final StringWriter writer = new StringWriter(
// stream.getSize() != null
// ? stream.getSize().intValue()
// : READ_BUFFER_DEFAULT_SIZE);
//
// IOUtils.copy(stream.getStream(), writer, "UTF-8");
// UpdateAction.execute(
// UpdateFactory.create(writer.toString()),
// new SolRDFDatasetGraph(request, response));

UpdateAction.execute(
UpdateFactory.create(
request.getParams().get("q")),
request.getParams().get(CommonParams.Q)),
new SolRDFDatasetGraph(request, response));

}
Expand Down

0 comments on commit 996a7fd

Please sign in to comment.