Class InMemoryBeanQuerySession.Builder<T>
java.lang.Object
org.apache.juneau.commons.beanquery.BeanQuerySession.Builder<T,InMemoryBeanQuerySession.Builder<T>>
org.apache.juneau.commons.beanquery.InMemoryBeanQuerySession.Builder<T>
- Type Parameters:
T- The row type.
- Enclosing class:
- InMemoryBeanQuerySession<T>
public static final class InMemoryBeanQuerySession.Builder<T>
extends BeanQuerySession.Builder<T,InMemoryBeanQuerySession.Builder<T>>
Builder for
InMemoryBeanQuerySession. See the class Javadoc for an example.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the session.Sets a per-request filter, applied together with the context guard.rows(Collection<? extends T> value) Sets the rows to query.Methods inherited from class org.apache.juneau.commons.beanquery.BeanQuerySession.Builder
countPolicy, defaultLimit, maxExpressionDepth, maxLimit, maxSearchClauses, maxSearchLength, maxSortKeys, regexTimeout, restrictColumns, self
-
Method Details
-
rows
Sets the rows to query. Required.- Parameters:
value- The rows. Must not benull .- Returns:
- This object.
-
guard
Sets a per-request filter, applied together with the context guard.- Parameters:
value- The guard, ornull for none.- Returns:
- This object.
-
build
Builds the session.- Specified by:
buildin classBeanQuerySession.Builder<T,InMemoryBeanQuerySession.Builder<T>> - Returns:
- A new session. Close it when done.
- Throws:
IllegalStateException- If no rows were set.
-