|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.datasource.bundle.MultipleObjectsBundle
public class MultipleObjectsBundle
This class represents a set of "packaged" objects, which is a transfer container for objects e.g. from parsers to a database. It contains the object with multiple representations outside of any index structure.
Field Summary | |
---|---|
private List<List<?>> |
columns
Storing the real contents. |
private BundleMeta |
meta
Storing the meta data. |
Constructor Summary | |
---|---|
MultipleObjectsBundle()
Constructor. |
|
MultipleObjectsBundle(BundleMeta meta,
List<List<?>> columns)
Deprecated. |
Method Summary | ||
---|---|---|
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
|
makeSimple(SimpleTypeInformation<? super V> type,
List<? extends V> data)
Helper to add a single column to the bundle. |
|
static
|
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
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private BundleMeta meta
private List<List<?>> columns
Constructor Detail |
---|
public MultipleObjectsBundle()
@Deprecated public MultipleObjectsBundle(BundleMeta meta, List<List<?>> columns)
meta
- Meta data contained.columns
- Content in columnsMethod Detail |
---|
public BundleMeta meta()
ObjectBundle
meta
in interface ObjectBundle
public SimpleTypeInformation<?> meta(int i)
ObjectBundle
meta
in interface ObjectBundle
i
- component
public int metaLength()
ObjectBundle
metaLength
in interface ObjectBundle
public Object data(int onum, int rnum)
ObjectBundle
data
in interface ObjectBundle
onum
- Object numberrnum
- Representation number
public 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 add
public List<?> getColumn(int i)
i
- column number
public 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
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |