public class ToListResultTransformer extends BasicTransformerAdapter
Tranforms each result row from a tuple into a List whose elements are each tuple value
| Modifier and Type | Field and Description |
|---|---|
static ToListResultTransformer |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
Object |
transformTuple(Object[] tuple,
String[] aliases)
Tuples are the elements making up each "row" of the query result.
|
transformListpublic static final ToListResultTransformer INSTANCE
public Object transformTuple(Object[] tuple, String[] aliases)
ResultTransformerTuples are the elements making up each "row" of the query result. The contract here is to transform these elements into the final row.
transformTuple in interface ResultTransformertransformTuple in class BasicTransformerAdaptertuple - The result elementsaliases - The result aliases ("parallel" array to tuple)Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.