public class Neo4jItemReaderBuilder<T>
extends java.lang.Object
Neo4jItemReader
.Neo4jItemReader
Constructor and Description |
---|
Neo4jItemReaderBuilder() |
Modifier and Type | Method and Description |
---|---|
Neo4jItemReader<T> |
build()
Returns a fully constructed
Neo4jItemReader . |
Neo4jItemReaderBuilder<T> |
currentItemCount(int currentItemCount)
Index for the current item.
|
Neo4jItemReaderBuilder<T> |
matchStatement(java.lang.String matchStatement)
An optional match fragment of the cypher query.
|
Neo4jItemReaderBuilder<T> |
maxItemCount(int maxItemCount)
Configure the max number of items to be read.
|
Neo4jItemReaderBuilder<T> |
name(java.lang.String name)
The name used to calculate the key within the
ExecutionContext . |
Neo4jItemReaderBuilder<T> |
orderByStatement(java.lang.String orderByStatement)
A list of properties to order the results by.
|
Neo4jItemReaderBuilder<T> |
pageSize(int pageSize)
The number of items to be read with each page.
|
Neo4jItemReaderBuilder<T> |
parameterValues(java.util.Map<java.lang.String,java.lang.Object> parameterValues)
Optional parameters to be used in the cypher query.
|
Neo4jItemReaderBuilder<T> |
returnStatement(java.lang.String returnStatement)
The return statement of the cypher query.
|
Neo4jItemReaderBuilder<T> |
saveState(boolean saveState)
Configure if the state of the
ItemStreamSupport
should be persisted within the ExecutionContext
for restart purposes. |
Neo4jItemReaderBuilder<T> |
sessionFactory(org.neo4j.ogm.session.SessionFactory sessionFactory)
Establish the session factory for the reader.
|
Neo4jItemReaderBuilder<T> |
startStatement(java.lang.String startStatement)
The start segment of the cypher query.
|
Neo4jItemReaderBuilder<T> |
targetType(java.lang.Class<T> targetType)
The object type to be returned from each call to
AbstractItemCountingItemStreamItemReader.read() |
Neo4jItemReaderBuilder<T> |
whereStatement(java.lang.String whereStatement)
An optional where fragment of the cypher query.
|
public Neo4jItemReaderBuilder<T> saveState(boolean saveState)
ItemStreamSupport
should be persisted within the ExecutionContext
for restart purposes.saveState
- defaults to truepublic Neo4jItemReaderBuilder<T> name(java.lang.String name)
ExecutionContext
. Required if
saveState(boolean)
is set to true.name
- name of the reader instanceItemStreamSupport.setName(String)
public Neo4jItemReaderBuilder<T> maxItemCount(int maxItemCount)
maxItemCount
- the max items to be readAbstractItemCountingItemStreamItemReader.setMaxItemCount(int)
public Neo4jItemReaderBuilder<T> currentItemCount(int currentItemCount)
currentItemCount
- current indexAbstractItemCountingItemStreamItemReader.setCurrentItemCount(int)
public Neo4jItemReaderBuilder<T> sessionFactory(org.neo4j.ogm.session.SessionFactory sessionFactory)
sessionFactory
- the factory to use for the reader.AbstractNeo4jItemReader.setSessionFactory(SessionFactory)
public Neo4jItemReaderBuilder<T> pageSize(int pageSize)
pageSize
- the number of itemsAbstractPaginatedDataItemReader.setPageSize(int)
public Neo4jItemReaderBuilder<T> parameterValues(java.util.Map<java.lang.String,java.lang.Object> parameterValues)
parameterValues
- the parameter values to be used in the cypher queryAbstractNeo4jItemReader.setParameterValues(Map)
public Neo4jItemReaderBuilder<T> startStatement(java.lang.String startStatement)
startStatement
- the start fragment of the cypher query.AbstractNeo4jItemReader.setStartStatement(String)
public Neo4jItemReaderBuilder<T> returnStatement(java.lang.String returnStatement)
returnStatement
- the return fragment of the cypher query.AbstractNeo4jItemReader.setReturnStatement(String)
public Neo4jItemReaderBuilder<T> matchStatement(java.lang.String matchStatement)
matchStatement
- the match fragment of the cypher queryAbstractNeo4jItemReader.setMatchStatement(String)
public Neo4jItemReaderBuilder<T> whereStatement(java.lang.String whereStatement)
whereStatement
- where fragment of the cypher queryAbstractNeo4jItemReader.setWhereStatement(String)
public Neo4jItemReaderBuilder<T> orderByStatement(java.lang.String orderByStatement)
orderByStatement
- order by fragment of the cypher query.AbstractNeo4jItemReader.setOrderByStatement(String)
public Neo4jItemReaderBuilder<T> targetType(java.lang.Class<T> targetType)
AbstractItemCountingItemStreamItemReader.read()
targetType
- the type of object to return.AbstractNeo4jItemReader.setTargetType(Class)
public Neo4jItemReader<T> build()
Neo4jItemReader
.Neo4jItemReader