Package org.openrefine.templating
Class Template
- java.lang.Object
-
- org.openrefine.templating.Template
-
public class Template extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Fragment>_fragmentsprotected String_prefixprotected String_separatorprotected String_suffix
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinternalVisit(long rowIndex, Row row, long total, Writer writer, Properties bindings, ColumnModel columnModel, Map<String,OverlayModel> overlayModels, long projectId, Record record)voidsetPrefix(String prefix)voidsetSeparator(String separator)voidsetSuffix(String suffix)voidwriteRecords(CloseableIterator<Record> records, Writer writer, ColumnModel columnModel, Map<String,OverlayModel> overlayModels, long projectId, int limit)voidwriteRows(CloseableIterator<IndexedRow> rows, Writer writer, ColumnModel columnModel, Map<String,OverlayModel> overlayModels, long projectId, int limit)protected voidwriteValue(Object v, Writer writer)
-
-
-
Method Detail
-
setPrefix
public void setPrefix(String prefix)
-
setSuffix
public void setSuffix(String suffix)
-
setSeparator
public void setSeparator(String separator)
-
writeRows
public void writeRows(CloseableIterator<IndexedRow> rows, Writer writer, ColumnModel columnModel, Map<String,OverlayModel> overlayModels, long projectId, int limit) throws IOException
- Throws:
IOException
-
writeRecords
public void writeRecords(CloseableIterator<Record> records, Writer writer, ColumnModel columnModel, Map<String,OverlayModel> overlayModels, long projectId, int limit) throws IOException
- Throws:
IOException
-
internalVisit
public void internalVisit(long rowIndex, Row row, long total, Writer writer, Properties bindings, ColumnModel columnModel, Map<String,OverlayModel> overlayModels, long projectId, Record record) throws IOException- Throws:
IOException
-
writeValue
protected void writeValue(Object v, Writer writer) throws IOException
- Throws:
IOException
-
-