From 8ff4498bd32d0898b9ec9b8be72a1e3e727e7dc9 Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Fri, 22 Jul 2011 09:53:33 +0000 Subject: [PATCH] added ALS header and fixed missing inteface method git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1149532 13f79535-47bb-0310-9956-ffa450edef68 --- .../solr/handler/dataimport/DIHWriter.java | 23 +++++++++++++++---- .../solr/handler/dataimport/SolrWriter.java | 5 ++++ 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/DIHWriter.java b/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/DIHWriter.java index 18d7fd3a275..1781ddd7278 100644 --- a/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/DIHWriter.java +++ b/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/DIHWriter.java @@ -1,8 +1,20 @@ package org.apache.solr.handler.dataimport; - -import java.util.Map; -import java.util.Set; - +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import org.apache.solr.common.SolrInputDocument; /** @@ -77,5 +89,8 @@ public interface DIHWriter { * @param context */ public void init(Context context) ; + + //TODO add comments + public DebugLogger getDebugLogger(); } diff --git a/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/SolrWriter.java b/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/SolrWriter.java index cd12996780c..0aa62d2fb28 100644 --- a/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/SolrWriter.java +++ b/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/SolrWriter.java @@ -163,4 +163,9 @@ public class SolrWriter implements DIHWriter { /* NO-OP */ } + @Override + public DebugLogger getDebugLogger() { + return debugLogger; + } + }