use of com.alibaba.alink.common.io.filesystem.AkStream in project Alink by alibaba.
the class FileModelStreamSink method open.
public void open(Timestamp modelId, int subId) throws IOException {
BaseFileSystem<?> fileSystem = filePath.getFileSystem();
Path confDirPath = new Path(filePath.getPath(), MODEL_CONF);
Path fileInProgress = new Path(confDirPath, String.format("%s_%d", ModelStreamUtils.toStringPresentation(modelId), subId));
collector = new AkStream(new FilePath(fileInProgress, fileSystem), new AkMeta(schemaStr)).getWriter().getCollector();
}