public class Neo4jItemReader<T> extends AbstractNeo4jItemReader
Extensions of the AbstractNeo4jItemReader intended for use with versions of
Spring Data Neo4J < 4. Conversions of the results are done using an external
ResultConverter.
Neo4j4ItemReader| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
page, pageSize, results| Constructor and Description |
|---|
Neo4jItemReader() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Iterator<T> |
doPageRead()
Method this
ItemStreamReader delegates to
for the actual work of reading a page. |
void |
setResultConverter(org.springframework.data.neo4j.conversion.ResultConverter<java.util.Map<java.lang.String,java.lang.Object>,T> resultConverter)
Set the converter used to convert node to the targetType.
|
afterPropertiesSet, generateLimitCypherQuery, getParameterValues, getTargetType, getTemplate, setMatchStatement, setOrderByStatement, setParameterValues, setReturnStatement, setStartStatement, setTargetType, setTemplate, setWhereStatementdoClose, doOpen, doRead, jumpToItem, setPageSizeclose, getCurrentItemCount, isSaveState, open, read, setCurrentItemCount, setMaxItemCount, setSaveState, updategetExecutionContextKey, setExecutionContextName, setNamepublic void setResultConverter(org.springframework.data.neo4j.conversion.ResultConverter<java.util.Map<java.lang.String,java.lang.Object>,T> resultConverter)
DefaultConverter is used.resultConverter - the converter to use.protected java.util.Iterator<T> doPageRead()
AbstractPaginatedDataItemReaderItemStreamReader delegates to
for the actual work of reading a page. Each time
this method is called, the resulting Iterator
should contain the items read within the next page.
Iterator is empty or null when it is
returned, this ItemReader will assume that the
input has been exhausted.doPageRead in class AbstractPaginatedDataItemReaderIterator containing the items within a page.