Class ColGroupIO
- java.lang.Object
- 
- org.apache.sysds.runtime.compress.colgroup.ColGroupIO
 
- 
 public class ColGroupIO extends Object This has the IO responsibility of ColGroups, such that it enables to read and write ColGroups to and from a DataInput and DataOutput
- 
- 
Constructor SummaryConstructors Constructor Description ColGroupIO()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static longgetExactSizeOnDisk(List<AColGroup> colGroups)Get the size on disk for the given list of column groupsstatic List<AColGroup>readGroups(DataInput in, int nRows)Read groups from a file.static voidwriteGroups(DataOutput out, List<AColGroup> colGroups)Writes the ColGroups out to the DataOutput.
 
- 
- 
- 
Method Detail- 
readGroupspublic static List<AColGroup> readGroups(DataInput in, int nRows) throws IOException Read groups from a file. Note that the information about how many should be in the file already.- Parameters:
- in- The Data input object to read from.
- nRows- The number of rows in the read groups.
- Returns:
- Return a List containing the ColGroups from the DataInput.
- Throws:
- IOException- Throws IO Exception if the in refuses to read data.
 
 - 
writeGroupspublic static void writeGroups(DataOutput out, List<AColGroup> colGroups) throws IOException Writes the ColGroups out to the DataOutput.- Parameters:
- out- The DataOutput the ColGroups are written to
- colGroups- List of the ColGroups to write to file.
- Throws:
- IOException- Throws IO Exception if the out refuses to write.
 
 
- 
 
-