Class HFileContextAttributesBuilderConsumer
java.lang.Object
org.apache.hadoop.hbase.io.hfile.trace.HFileContextAttributesBuilderConsumer
- All Implemented Interfaces:
Consumer<io.opentelemetry.api.common.AttributesBuilder>
@Private
public class HFileContextAttributesBuilderConsumer
extends Object
implements Consumer<io.opentelemetry.api.common.AttributesBuilder>
Populate fields on an AttributesBuilder based on an HFileContext. Passed around
inside an active Context, indexed under CONTEXT_KEY. The class is designed such
that calls to the accept(AttributesBuilder) method are idempotent with regards to the
instance of this class.
The true and truly ridiculous class name should be something more like
HFileContext_ContextAttributes_AttributesBuilder_Consumer.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.opentelemetry.context.ContextKey<Consumer<io.opentelemetry.api.common.AttributesBuilder>>Used to place extract attributes pertaining to theHFileContextthat scopes the activeContext.private final HFileContextprivate HBaseSemanticAttributes.ReadTypeprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(io.opentelemetry.api.common.AttributesBuilder builder) setReadType(HBaseSemanticAttributes.ReadType readType) Specify theHBaseSemanticAttributes.ReadTypeinvolced in this IO operation.setSkipChecksum(boolean skipChecksum) Specify that theChecksumTypeshould not be included in the attributes.
-
Field Details
-
CONTEXT_KEY
public static final io.opentelemetry.context.ContextKey<Consumer<io.opentelemetry.api.common.AttributesBuilder>> CONTEXT_KEYUsed to place extract attributes pertaining to theHFileContextthat scopes the activeContext. -
hFileContext
-
skipChecksum
-
readType
-
-
Constructor Details
-
HFileContextAttributesBuilderConsumer
-
-
Method Details
-
setSkipChecksum
Specify that theChecksumTypeshould not be included in the attributes. -
setReadType
Specify theHBaseSemanticAttributes.ReadTypeinvolced in this IO operation. -
accept
-