@Description(value="writes to a lucene index")
@In(value=org.culturegraph.mf.framework.StreamReceiver.class)
public final class LuceneIndex
extends org.culturegraph.mf.framework.DefaultStreamReceiver
Constructor and Description |
---|
LuceneIndex(String morphDef) |
Modifier and Type | Method and Description |
---|---|
void |
closeStream() |
void |
endEntity() |
void |
endRecord() |
void |
literal(String name,
String value) |
void |
resetStream() |
void |
setBatchSize(int batchSize) |
void |
setIndexPath(String indexName) |
void |
setRamBuffer(int ramBuffer) |
void |
startEntity(String name) |
void |
startRecord(String identifier) |
public LuceneIndex(String morphDef)
public void setBatchSize(int batchSize)
public void setRamBuffer(int ramBuffer)
ramBuffer
- in MBpublic void startRecord(String identifier)
startRecord
in interface org.culturegraph.mf.framework.StreamReceiver
startRecord
in class org.culturegraph.mf.framework.DefaultStreamReceiver
public void endRecord()
endRecord
in interface org.culturegraph.mf.framework.StreamReceiver
endRecord
in class org.culturegraph.mf.framework.DefaultStreamReceiver
public void startEntity(String name)
startEntity
in interface org.culturegraph.mf.framework.StreamReceiver
startEntity
in class org.culturegraph.mf.framework.DefaultStreamReceiver
public void endEntity()
endEntity
in interface org.culturegraph.mf.framework.StreamReceiver
endEntity
in class org.culturegraph.mf.framework.DefaultStreamReceiver
public void literal(String name, String value)
literal
in interface org.culturegraph.mf.framework.StreamReceiver
literal
in class org.culturegraph.mf.framework.DefaultStreamReceiver
public void resetStream()
resetStream
in interface org.culturegraph.mf.framework.LifeCycle
resetStream
in class org.culturegraph.mf.framework.DefaultLifeCycle
public void closeStream()
closeStream
in interface org.culturegraph.mf.framework.LifeCycle
closeStream
in class org.culturegraph.mf.framework.DefaultLifeCycle
public void setIndexPath(String indexName)
Copyright © 2015. All Rights Reserved.