APIdia Launch Partner
Top Description Fields Constructors Methods
jdk.jfr.internal.query

pack-priv final Class FieldBuilder

extends Object
Class Inheritance
Imports
java.time.Duration, .Instant, java.util.ArrayDeque, .ArrayList, .HashMap, .HashSet, .List, .Map, .Set, java.util.function.Function, .Predicate, jdk.jfr.DataAmount, .EventType, .Frequency, .MemoryAddress, .Percentage, .Timespan, .Timestamp, .ValueDescriptor, jdk.jfr.consumer.RecordedClass, .RecordedClassLoader, .RecordedEvent, .RecordedFrame, .RecordedStackTrace, jdk.jfr.internal.PrivateAccess, .Type, jdk.jfr.internal.util.Utils

This is a helper class to QueryResolver. It handles the creation of fields and their default configuration.

The class applies heuristics to decide how values should be formatted, and labeled.

Field Summary

Modifier and TypeField and Description
private ValueDescriptor
private final List<EventType>
private final Field
private final String
private static final Set<String>

Constructor Summary

AccessConstructor and Description
public
FieldBuilder(List<EventType> eventTypes, FilteredType type, String fieldName)

Method Summary

Modifier and TypeMethod and Description
public List<Field>
public static void
private void
private void
private void
private void
private void
private void
private void
private void
private void
private void
private boolean
private void
private Map<Long, String>
private static Set<String>
public static List<Field>
private static List<Field>
private static RecordedFrame
private boolean
private static boolean
private static String
makeLabel(ValueDescriptor v, boolean hasDuration)

private static RecordedFrame
private static RecordedFrame
private static Object
private static Function<RecordedEvent, Object>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

descriptorback to summary
private ValueDescriptor descriptor
eventTypesback to summary
private final List<EventType> eventTypes
fieldback to summary
private final Field field
fieldNameback to summary
private final String fieldName
KNOWN_TYPESback to summary
private static final Set<String> KNOWN_TYPES

Constructor Detail

FieldBuilderback to summary
public FieldBuilder(List<EventType> eventTypes, FilteredType type, String fieldName)

Method Detail

buildback to summary
public List<Field> build()
configureAggregatorback to summary
public static void configureAggregator(Field field)
configureAliasesback to summary
private void configureAliases()
configureDataAmountback to summary
private void configureDataAmount()
configureEventTypeback to summary
private void configureEventType(Function<RecordedEvent, Object> retriever)
configureEventTypeIdFieldback to summary
private void configureEventTypeIdField()
configureFrameback to summary
private void configureFrame(String frameName, Function<RecordedEvent, Object> getter)
configureFrequencyback to summary
private void configureFrequency()
configureKnownTypeback to summary
private void configureKnownType()
configureMemoryAddressback to summary
private void configureMemoryAddress()
configureNumericTypesback to summary
private void configureNumericTypes()
configurePercentageback to summary
private void configurePercentage()
configureSyntheticFieldsback to summary
private boolean configureSyntheticFields()
configureTimeback to summary
private void configureTime()
createEventTypeLookupback to summary
private Map<Long, String> createEventTypeLookup()
createKnownTypesback to summary
private static Set<String> createKnownTypes()
createWildcardFieldsback to summary
public static List<Field> createWildcardFields(List<EventType> eventTypes, List<FilteredType> types)
createWildcardFieldsback to summary
private static List<Field> createWildcardFields(List<EventType> eventTypes, FilteredType type)
findJavaFrameback to summary
private static RecordedFrame findJavaFrame(RecordedEvent event, Predicate<RecordedFrame> condition)
hasDurationback to summary
private boolean hasDuration()
hasDurationback to summary
private static boolean hasDuration(FilteredType type)
makeLabelback to summary
private static String makeLabel(ValueDescriptor v, boolean hasDuration)
topApplicationFrameback to summary
private static RecordedFrame topApplicationFrame(RecordedEvent event)
topFrameback to summary
private static RecordedFrame topFrame(RecordedEvent event)
topNotInitFrameback to summary
private static Object topNotInitFrame(RecordedEvent event)
valueGetterback to summary
private static Function<RecordedEvent, Object> valueGetter(String name)