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>
_fragments
protected String
_prefix
protected String
_separator
protected String
_suffix
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
internalVisit(long rowIndex, Row row, long total, Writer writer, Properties bindings, ColumnModel columnModel, Map<String,OverlayModel> overlayModels, long projectId, Record record)
void
setPrefix(String prefix)
void
setSeparator(String separator)
void
setSuffix(String suffix)
void
writeRecords(CloseableIterator<Record> records, Writer writer, ColumnModel columnModel, Map<String,OverlayModel> overlayModels, long projectId, int limit)
void
writeRows(CloseableIterator<IndexedRow> rows, Writer writer, ColumnModel columnModel, Map<String,OverlayModel> overlayModels, long projectId, int limit)
protected void
writeValue(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
-
-