public class MultipleObjectsBundle extends Object implements ObjectBundle
Modifier and Type | Field and Description |
---|---|
private List<List<?>> |
columns
Storing the real contents.
|
private BundleMeta |
meta
Storing the meta data.
|
Constructor and Description |
---|
MultipleObjectsBundle()
Constructor.
|
MultipleObjectsBundle(BundleMeta meta,
List<List<?>> columns)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
MultipleObjectsBundle |
appendColumn(SimpleTypeInformation<?> type,
List<?> data)
Helper to add a single column to the bundle.
|
void |
appendSimple(Object... data)
Append a new record to the data set.
|
Object |
data(int onum,
int rnum)
Access a particular object and representation.
|
int |
dataLength()
Get the number of objects contained.
|
List<?> |
getColumn(int i)
Get the raw objects columns.
|
Object[] |
getRow(int row)
Get an object row.
|
static <V> MultipleObjectsBundle |
makeSimple(SimpleTypeInformation<? super V> type,
List<? extends V> data)
Helper to add a single column to the bundle.
|
static <V1,V2> MultipleObjectsBundle |
makeSimple(SimpleTypeInformation<? super V1> type1,
List<? extends V1> data1,
SimpleTypeInformation<? super V2> type2,
List<? extends V2> data2)
Helper to add a single column to the bundle.
|
static <V1,V2,V3> MultipleObjectsBundle |
makeSimple(SimpleTypeInformation<? super V1> type1,
List<? extends V1> data1,
SimpleTypeInformation<? super V2> type2,
List<? extends V2> data2,
SimpleTypeInformation<? super V3> type3,
List<? extends V3> data3)
Helper to add a single column to the bundle.
|
BundleMeta |
meta()
Access the meta data.
|
SimpleTypeInformation<?> |
meta(int i)
Access the meta data.
|
int |
metaLength()
Get the metadata length.
|
private BundleMeta meta
public MultipleObjectsBundle()
@Deprecated public MultipleObjectsBundle(BundleMeta meta, List<List<?>> columns)
meta
- Meta data contained.columns
- Content in columnspublic BundleMeta meta()
ObjectBundle
meta
in interface ObjectBundle
public SimpleTypeInformation<?> meta(int i)
ObjectBundle
meta
in interface ObjectBundle
i
- componentpublic int metaLength()
ObjectBundle
metaLength
in interface ObjectBundle
public Object data(int onum, int rnum)
ObjectBundle
data
in interface ObjectBundle
onum
- Object numberrnum
- Representation numberpublic int dataLength()
ObjectBundle
dataLength
in interface ObjectBundle
public void appendSimple(Object... data)
data
- Data to appendpublic MultipleObjectsBundle appendColumn(SimpleTypeInformation<?> type, List<?> data)
type
- Type informationdata
- Data to addpublic List<?> getColumn(int i)
i
- column numberpublic static <V> MultipleObjectsBundle makeSimple(SimpleTypeInformation<? super V> type, List<? extends V> data)
V
- Object typetype
- Type informationdata
- Data to addpublic static <V1,V2> MultipleObjectsBundle makeSimple(SimpleTypeInformation<? super V1> type1, List<? extends V1> data1, SimpleTypeInformation<? super V2> type2, List<? extends V2> data2)
V1
- First Object typeV2
- Second Object typetype1
- Type informationdata1
- Data column to addtype2
- Second Type informationdata2
- Second data column to addpublic static <V1,V2,V3> MultipleObjectsBundle makeSimple(SimpleTypeInformation<? super V1> type1, List<? extends V1> data1, SimpleTypeInformation<? super V2> type2, List<? extends V2> data2, SimpleTypeInformation<? super V3> type3, List<? extends V3> data3)
V1
- First Object typeV2
- Second Object typeV3
- Third Object typetype1
- First type informationdata1
- First data column to addtype2
- Second type informationdata2
- Second data column to addtype3
- Third type informationdata3
- Third data column to addpublic Object[] getRow(int row)
row
- Row number