Class TmpFileSegmentWriteOutMediumFactory
- java.lang.Object
-
- org.apache.druid.segment.writeout.TmpFileSegmentWriteOutMediumFactory
-
- All Implemented Interfaces:
SegmentWriteOutMediumFactory
public final class TmpFileSegmentWriteOutMediumFactory extends Object implements SegmentWriteOutMediumFactory
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TmpFileSegmentWriteOutMediumFactory
instance()
SegmentWriteOutMedium
makeSegmentWriteOutMedium(File outDir)
Creates a new SegmentWriteOutMedium.
-
-
-
Method Detail
-
instance
public static TmpFileSegmentWriteOutMediumFactory instance()
-
makeSegmentWriteOutMedium
public SegmentWriteOutMedium makeSegmentWriteOutMedium(File outDir) throws IOException
Description copied from interface:SegmentWriteOutMediumFactory
Creates a new SegmentWriteOutMedium. If this type of SegmentWriteOutMedium needs to create some temprorary files, it creates a *subdirectory* in the given outDir, stores the files there, and removes the files and the subdirectory when closed.- Specified by:
makeSegmentWriteOutMedium
in interfaceSegmentWriteOutMediumFactory
- Throws:
IOException
-
-