|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mymedialite.io.AttributeData
public class AttributeData
Class that offers static methods to read (binary) attribute data into SparseBooleanMatrix objects. The expected (sparse) line format is: ENTITY_ID SEPARATOR ATTRIBUTE_ID for attributes that are set. SEPARATOR can be space, tab, or comma.
Method Summary | |
---|---|
static SparseBooleanMatrix |
read(java.io.BufferedReader reader,
IEntityMapping itemMapping,
IEntityMapping attributeMapping)
Read binary attribute data from a BufferedReader. |
static SparseBooleanMatrix |
read(java.lang.String filename,
IEntityMapping itemMapping,
IEntityMapping attributeMapping)
Read binary attribute data from a file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static SparseBooleanMatrix read(java.lang.String filename, IEntityMapping itemMapping, IEntityMapping attributeMapping) throws java.io.IOException
filename
- the name of the file to be read fromitemMapping
- the mapping object for the given entity typeattributeMapping
- the mapping object for the attributes
java.io.IOException
public static SparseBooleanMatrix read(java.io.BufferedReader reader, IEntityMapping itemMapping, IEntityMapping attributeMapping) throws java.io.IOException
reader
- a BufferedReader to be read fromitemMapping
- the mapping object for the given entity typeattributeMapping
- the mapping object for the attributes
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |