Class SpoolingManagerBridge
java.lang.Object
io.trino.server.protocol.spooling.SpoolingManagerBridge
- All Implemented Interfaces:
SpoolingManager
-
Constructor Summary
ConstructorsConstructorDescriptionSpoolingManagerBridge(SpoolingConfig spoolingConfig, SpoolingManagerRegistry registry) -
Method Summary
Modifier and TypeMethodDescriptionvoidacknowledge(SpooledSegmentHandle handle) booleancreate(SpoolingContext context) directLocation(SpooledSegmentHandle handle) handle(SpooledLocation location) longlocation(SpooledSegmentHandle handle) longopenInputStream(SpooledSegmentHandle handle)
-
Constructor Details
-
SpoolingManagerBridge
@Inject public SpoolingManagerBridge(SpoolingConfig spoolingConfig, SpoolingManagerRegistry registry)
-
-
Method Details
-
maximumSegmentSize
public long maximumSegmentSize()- Specified by:
maximumSegmentSizein interfaceSpoolingManager
-
initialSegmentSize
public long initialSegmentSize()- Specified by:
initialSegmentSizein interfaceSpoolingManager
-
allowSegmentInlining
public boolean allowSegmentInlining()- Specified by:
allowSegmentInliningin interfaceSpoolingManager
-
create
- Specified by:
createin interfaceSpoolingManager
-
createOutputStream
- Specified by:
createOutputStreamin interfaceSpoolingManager- Throws:
IOException
-
openInputStream
- Specified by:
openInputStreamin interfaceSpoolingManager- Throws:
IOException
-
acknowledge
- Specified by:
acknowledgein interfaceSpoolingManager- Throws:
IOException
-
location
- Specified by:
locationin interfaceSpoolingManager
-
directLocation
public Optional<SpooledLocation.DirectLocation> directLocation(SpooledSegmentHandle handle) throws IOException - Specified by:
directLocationin interfaceSpoolingManager- Throws:
IOException
-
handle
- Specified by:
handlein interfaceSpoolingManager
-