view src/goodjava/lucene/logging/OpDoer.java @ 1551:9cc4cee39b8b

add LuanOpDoer
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 04 Oct 2020 16:29:54 -0600
parents 41c32da4cbd1
children 52241b69c339
line wrap: on
line source

package goodjava.lucene.logging;

import java.io.IOException;
import java.util.Map;
import org.apache.lucene.search.Query;
import goodjava.lucene.api.GoodIndexWriter;


public interface OpDoer {
	public GoodIndexWriter writer();
	public void commit() throws IOException;
	public void deleteAll(long time) throws IOException;
	public void deleteDocuments(long time,Query query) throws IOException;
	public void addDocument(long time,Map<String,Object> storedFields) throws IOException;
	public void updateDocument(long time,String keyFieldName,Map<String,Object> storedFields) throws IOException;
	public void tag(long time,String tag) throws IOException;
}