| Modifier and Type | Field and Description |
|---|---|
| private static final PassThroughResultTransformer | |
| private final int[] | |
| private final boolean[] | |
| private final int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static CacheableResultTransformer | Returns: a CacheableResultTransformer that is used to transform tuples to a value(s) that can be cached.- result transformer that will ultimately be
be used (after caching results) transformer, String[] - the aliases that correspond to the tuple;
if it is non-null, its length must equal the number
of true elements in includeInTuple[] aliases, boolean[] - array with the i-th element indicating
whether the i-th expression returned by a query is
included in the tuple; the number of true values equals
the length of the tuple that will be transformed;
must be non-null includeInTuple)Returns a CacheableResultTransformer that is used to transform tuples to a value(s) that can be cached. |
| private static CacheableResultTransformer | Returns: a CacheableResultTransformer that is used to transform tuples to a value(s) that can be cached.- a tuple subset result transformer;
must be non-null; transformer, String[] - the aliases that correspond to the tuple;
if it is non-null, its length must equal the number
of true elements in includeInTuple[] aliases, boolean[] - array with the i-th element indicating
whether the i-th expression returned by a query is
included in the tuple; the number of true values equals
the length of the tuple that will be transformed;
must be non-null includeInTuple)Returns a CacheableResultTransformer that is used to transform tuples to a value(s) that can be cached. |
| private static CacheableResultTransformer | Returns: a CacheableResultTransformer that is used to transform tuples to a value(s) that can be cached.- array with the i-th element indicating
whether the i-th expression returned by a query is
included in the tuple; the number of true values equals
the length of the tuple that will be transformed;
must be non-null includeInTuple)Returns a CacheableResultTransformer that is used to transform tuples to a value(s) that can be cached. |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public Type[] | |
| public int | |
| private <T> T[] | |
| public List | Returns: transformedResults, with each element re-transformed (if necessary)- results that were previously transformed transformedResults, String[] - the aliases that correspond to the untransformed tuple; aliases, ResultTransformer - the transformer for the re-transformation transformer, boolean[] indicates the indexes of includeInTuple)Re-transforms, if necessary, a List of values previously transformed by this (or an equivalent) CacheableResultTransformer. |
| public List | transformList(List<E>
The result. list)Implements org. |
| public Object | transformTuple(Object[]
The result elements tuple, String[] The result aliases ("parallel" array to tuple) aliases)Implements org. |
| private <T> T[] | |
| public List | Returns: results, with each element untransformed (if necessary)- results that were previously transformed results)Untransforms, if necessary, a List of values previously transformed by this (or an equivalent) CacheableResultTransformer. |
| ACTUAL_TRANSFORMER | back to summary |
|---|---|
| private static final PassThroughResultTransformer ACTUAL_TRANSFORMER | |
| includeInTransformIndex | back to summary |
|---|---|
| private final int[] includeInTransformIndex | |
| includeInTuple | back to summary |
|---|---|
| private final boolean[] includeInTuple | |
| tupleLength | back to summary |
|---|---|
| private final int tupleLength | |
| tupleSubsetLength | back to summary |
|---|---|
| private final int tupleSubsetLength | |
| CacheableResultTransformer | back to summary |
|---|---|
| private CacheableResultTransformer(boolean[] includeInTuple, boolean[] includeInTransform) | |
| create | back to summary |
|---|---|
| public static CacheableResultTransformer create(ResultTransformer transformer, String[] aliases, boolean[] includeInTuple) Returns a CacheableResultTransformer that is used to transform tuples to a value(s) that can be cached.
| |
| create | back to summary |
|---|---|
| private static CacheableResultTransformer create(TupleSubsetResultTransformer transformer, String[] aliases, boolean[] includeInTuple) Returns a CacheableResultTransformer that is used to transform tuples to a value(s) that can be cached.
| |
| create | back to summary |
|---|---|
| private static CacheableResultTransformer create(boolean[] includeInTuple) Returns a CacheableResultTransformer that is used to transform tuples to a value(s) that can be cached.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getCachedResultTypes | back to summary |
|---|---|
| public Type[] getCachedResultTypes(Type[] tupleResultTypes) | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| index | back to summary |
|---|---|
| private <T> T[] index(Class<? extends T[]> clazz, T[] objects) | |
| retransformResults | back to summary |
|---|---|
| public List Re-transforms, if necessary, a List of values previously transformed by this (or an equivalent) CacheableResultTransformer. Each element of the list is re-transformed in place (i.e, List elements are replaced with re-transformed values) and the original List is returned. If re-transformation is unnecessary, the original List is returned unchanged.
| |
| transformList | back to summary |
|---|---|
| public List Implements org. Doc from org. Here we have an opportunity to perform transformation on the query result as a whole. This might be useful to convert from one collection type to another or to remove duplicates from the result, etc. | |
| transformTuple | back to summary |
|---|---|
| public Object transformTuple(Object[] tuple, String[] aliases) Implements org. Doc from org. Tuples are the elements making up each "row" of the query result. The contract here is to transform these elements into the final row. | |
| unindex | back to summary |
|---|---|
| private <T> T[] unindex(Class<? extends T[]> clazz, T[] objects) | |
| untransformToTuples | back to summary |
|---|---|
| public List Untransforms, if necessary, a List of values previously transformed by this (or an equivalent) CacheableResultTransformer. Each element of the list is untransformed in place (i.e, List elements are replaced with untransformed values) and the original List is returned. If not unnecessary, the original List is returned unchanged. Note If transformed values are a subset of the original tuple, then, on return, elements corresponding to excluded tuple elements will be null.
| |