Class OkHttpSegmentLoader
java.lang.Object
io.trino.client.OkHttpSegmentLoader
- All Implemented Interfaces:
SegmentLoader,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidacknowledge(SpooledSegment segment) voidclose()load(SpooledSegment segment)
-
Constructor Details
-
OkHttpSegmentLoader
public OkHttpSegmentLoader() -
OkHttpSegmentLoader
public OkHttpSegmentLoader(okhttp3.Call.Factory callFactory)
-
-
Method Details
-
load
- Specified by:
loadin interfaceSegmentLoader- Throws:
IOException
-
acknowledge
- Specified by:
acknowledgein interfaceSegmentLoader
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-