Class StagingFileUtils
- java.lang.Object
- 
- org.apache.sysds.runtime.controlprogram.parfor.util.StagingFileUtils
 
- 
 public class StagingFileUtils extends Object 
- 
- 
Field SummaryFields Modifier and Type Field Description static intCELL_BUFFER_SIZE
 - 
Constructor SummaryConstructors Constructor Description StagingFileUtils()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidnextKeyMap(BufferedReader in, HashMap<Integer,HashMap<Long,Long>> map, int bi, int blen)static intnextSizedKeyMap(BufferedReader in, HashMap<Integer,HashMap<Long,Long>> map, int blen, int size)static BufferedReaderopenKeyMap(String name)static MatrixBlockreadCellList2BlockFromLocal(String fname, int blen)static MatrixBlockreadCellList2BlockFromLocal(String fname, int blen, boolean sparse)static LinkedList<Cell>readCellListFromLocal(String fname)static voidwriteCellListToLocal(String fname, LinkedList<Cell> buffer)static voidwriteKeyMappingToLocal(String fname, long[][] keys)
 
- 
- 
- 
Field Detail- 
CELL_BUFFER_SIZEpublic static final int CELL_BUFFER_SIZE - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
writeCellListToLocalpublic static void writeCellListToLocal(String fname, LinkedList<Cell> buffer) throws IOException - Throws:
- IOException
 
 - 
writeKeyMappingToLocalpublic static void writeKeyMappingToLocal(String fname, long[][] keys) throws IOException - Throws:
- IOException
 
 - 
openKeyMappublic static BufferedReader openKeyMap(String name) throws FileNotFoundException - Throws:
- FileNotFoundException
 
 - 
nextKeyMappublic static void nextKeyMap(BufferedReader in, HashMap<Integer,HashMap<Long,Long>> map, int bi, int blen) throws NumberFormatException, IOException - Throws:
- NumberFormatException
- IOException
 
 - 
nextSizedKeyMappublic static int nextSizedKeyMap(BufferedReader in, HashMap<Integer,HashMap<Long,Long>> map, int blen, int size) throws NumberFormatException, IOException - Throws:
- NumberFormatException
- IOException
 
 - 
readCellListFromLocalpublic static LinkedList<Cell> readCellListFromLocal(String fname) throws IOException - Throws:
- IOException
 
 - 
readCellList2BlockFromLocalpublic static MatrixBlock readCellList2BlockFromLocal(String fname, int blen) throws IOException, DMLRuntimeException - Throws:
- IOException
- DMLRuntimeException
 
 - 
readCellList2BlockFromLocalpublic static MatrixBlock readCellList2BlockFromLocal(String fname, int blen, boolean sparse) throws IOException, DMLRuntimeException - Throws:
- IOException
- DMLRuntimeException
 
 
- 
 
-