Class TracingSpoolingManager
java.lang.Object
io.trino.spooling.filesystem.TracingSpoolingManager
- All Implemented Interfaces:
io.trino.spi.protocol.SpoolingManager
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.opentelemetry.api.common.AttributeKey<String> static final io.opentelemetry.api.common.AttributeKey<String> static final io.opentelemetry.api.common.AttributeKey<String> static final io.opentelemetry.api.common.AttributeKey<String> static final io.opentelemetry.api.common.AttributeKey<Long> static final io.opentelemetry.api.common.AttributeKey<Long> -
Method Summary
Modifier and TypeMethodDescriptionvoidacknowledge(io.trino.spi.protocol.SpooledSegmentHandle handle) io.trino.spi.protocol.SpooledSegmentHandlecreate(io.trino.spi.protocol.SpoolingContext context) createOutputStream(io.trino.spi.protocol.SpooledSegmentHandle handle) Optional<io.trino.spi.protocol.SpooledLocation.DirectLocation> directLocation(io.trino.spi.protocol.SpooledSegmentHandle handle) io.trino.spi.protocol.SpooledSegmentHandleio.trino.spi.protocol.SpooledLocationlocation(io.trino.spi.protocol.SpooledSegmentHandle handle) openInputStream(io.trino.spi.protocol.SpooledSegmentHandle handle) static io.opentelemetry.api.trace.Spanspan(io.opentelemetry.api.trace.Tracer tracer, io.trino.spi.protocol.SpooledSegmentHandle handle, String name) static <E extends Exception>
voidwithTracing(io.opentelemetry.api.trace.Span span, TracingSpoolingManager.CheckedRunnable<E> runnable) static <T,E extends Exception>
TwithTracing(io.opentelemetry.api.trace.Span span, TracingSpoolingManager.CheckedSupplier<T, E> supplier)
-
Field Details
-
SEGMENT_ID
-
SEGMENT_QUERY_ID
-
SEGMENT_ENCODING
-
SEGMENT_SIZE
-
SEGMENT_ROWS
-
SEGMENT_EXPIRATION
-
-
Method Details
-
create
public io.trino.spi.protocol.SpooledSegmentHandle create(io.trino.spi.protocol.SpoolingContext context) - Specified by:
createin interfaceio.trino.spi.protocol.SpoolingManager
-
createOutputStream
public OutputStream createOutputStream(io.trino.spi.protocol.SpooledSegmentHandle handle) throws IOException - Specified by:
createOutputStreamin interfaceio.trino.spi.protocol.SpoolingManager- Throws:
IOException
-
openInputStream
public InputStream openInputStream(io.trino.spi.protocol.SpooledSegmentHandle handle) throws IOException - Specified by:
openInputStreamin interfaceio.trino.spi.protocol.SpoolingManager- Throws:
IOException
-
acknowledge
- Specified by:
acknowledgein interfaceio.trino.spi.protocol.SpoolingManager- Throws:
IOException
-
directLocation
public Optional<io.trino.spi.protocol.SpooledLocation.DirectLocation> directLocation(io.trino.spi.protocol.SpooledSegmentHandle handle) throws IOException - Specified by:
directLocationin interfaceio.trino.spi.protocol.SpoolingManager- Throws:
IOException
-
location
public io.trino.spi.protocol.SpooledLocation location(io.trino.spi.protocol.SpooledSegmentHandle handle) throws IOException - Specified by:
locationin interfaceio.trino.spi.protocol.SpoolingManager- Throws:
IOException
-
handle
-
withTracing
public static <E extends Exception> void withTracing(io.opentelemetry.api.trace.Span span, TracingSpoolingManager.CheckedRunnable<E> runnable) throws E - Throws:
E
-
span
public static io.opentelemetry.api.trace.Span span(io.opentelemetry.api.trace.Tracer tracer, io.trino.spi.protocol.SpooledSegmentHandle handle, String name) -
withTracing
public static <T,E extends Exception> T withTracing(io.opentelemetry.api.trace.Span span, TracingSpoolingManager.CheckedSupplier<T, E> supplier) throws E- Throws:
E
-