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

pack-priv final Class Query

extends Object
Class Inheritance
Imports
java.text.ParseException, java.util.List, .Optional, .StringJoiner, java.util.function.Consumer

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static record
pack-priv static record
pack-priv static record
pack-priv static record
pack-priv static record
pack-priv static record
pack-priv static enum
pack-priv static record
pack-priv static record

Field Summary

Modifier and TypeField and Description
pack-priv final List<String>
pack-priv final List<Query.Formatter>
pack-priv final List<Query.Source>
pack-priv final List<Query.Grouper>
pack-priv final int
pack-priv final List<Query.OrderElement>
pack-priv final List<Query.Expression>
pack-priv final List<Query.Condition>

Constructor Summary

AccessConstructor and Description
public
Query(String text)

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

columnback to summary
pack-priv final List<String> column
formatback to summary
pack-priv final List<Query.Formatter> format
fromback to summary
pack-priv final List<Query.Source> from
groupByback to summary
pack-priv final List<Query.Grouper> groupBy
limitback to summary
pack-priv final int limit
orderByback to summary
pack-priv final List<Query.OrderElement> orderBy
selectback to summary
pack-priv final List<Query.Expression> select
whereback to summary
pack-priv final List<Query.Condition> where

Constructor Detail

Queryback to summary
public Query(String text) throws ParseException

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
jdk.jfr.internal.query back to summary

pack-priv final Record Query.Condition

extends Record
Class Inheritance
Record Components
field:String 
value:String 

Field Summary

Modifier and TypeField and Description
private final String
field

Record Component accessed by field().

private final String
value

Record Component accessed by value().

Constructor Summary

AccessConstructor and Description
pack-priv
Condition(String field, String value)

Method Summary

Modifier and TypeMethod and Description
public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public String
field()

Record Component getter of field.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

public String
value()

Record Component getter of value.

Field Detail

fieldback to summary
private final String field

Record Component accessed by field().

valueback to summary
private final String value

Record Component accessed by value().

Constructor Detail

Conditionback to summary
pack-priv Condition(String field, String value)

Method Detail

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
fieldback to summary
public String field()

Record Component getter of field.

hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.

valueback to summary
public String value()

Record Component getter of value.

jdk.jfr.internal.query back to summary

pack-priv final Record Query.Expression

extends Record
Class Inheritance
Record Components
name:String 
alias:Optional<String> 
aggregator:Aggregator 

Field Summary

Modifier and TypeField and Description
private final Aggregator
aggregator

Record Component accessed by aggregator().

private final Optional<String>
alias

Record Component accessed by alias().

private final String
name

Record Component accessed by name().

Constructor Summary

AccessConstructor and Description
pack-priv
Expression(String name, Optional<String> alias, Aggregator aggregator)

Method Summary

Modifier and TypeMethod and Description
public Aggregator
aggregator()

Record Component getter of aggregator.

public Optional<String>
alias()

Record Component getter of alias.

public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public String
name()

Record Component getter of name.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

aggregatorback to summary
private final Aggregator aggregator

Record Component accessed by aggregator().

aliasback to summary
private final Optional<String> alias

Record Component accessed by alias().

nameback to summary
private final String name

Record Component accessed by name().

Constructor Detail

Expressionback to summary
pack-priv Expression(String name, Optional<String> alias, Aggregator aggregator)

Method Detail

aggregatorback to summary
public Aggregator aggregator()

Record Component getter of aggregator.

aliasback to summary
public Optional<String> alias()

Record Component getter of alias.

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

nameback to summary
public String name()

Record Component getter of name.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.

jdk.jfr.internal.query back to summary

pack-priv final Record Query.Formatter

extends Record
Class Inheritance
Record Components
properties:List<Query.Property> 

Field Summary

Modifier and TypeField and Description
private final List<Query.Property>
properties

Record Component accessed by properties().

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public List<Query.Property>
properties()

Record Component getter of properties.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

propertiesback to summary
private final List<Query.Property> properties

Record Component accessed by properties().

Constructor Detail

Formatterback to summary
pack-priv Formatter(List<Query.Property> properties)

Method Detail

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

propertiesback to summary
public List<Query.Property> properties()

Record Component getter of properties.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.

jdk.jfr.internal.query back to summary

pack-priv final Record Query.Grouper

extends Record
Class Inheritance
Record Components
field:String 

Field Summary

Modifier and TypeField and Description
private final String
field

Record Component accessed by field().

Constructor Summary

AccessConstructor and Description
pack-priv
Grouper(String field)

Method Summary

Modifier and TypeMethod and Description
public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public String
field()

Record Component getter of field.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

fieldback to summary
private final String field

Record Component accessed by field().

Constructor Detail

Grouperback to summary
pack-priv Grouper(String field)

Method Detail

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
fieldback to summary
public String field()

Record Component getter of field.

hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.

jdk.jfr.internal.query back to summary

pack-priv final Record Query.OrderElement

extends Record
Class Inheritance
Record Components
name:String 
order:Query.SortOrder 

Field Summary

Modifier and TypeField and Description
private final String
name

Record Component accessed by name().

private final Query.SortOrder
order

Record Component accessed by order().

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public String
name()

Record Component getter of name.

public Query.SortOrder
order()

Record Component getter of order.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

nameback to summary
private final String name

Record Component accessed by name().

orderback to summary
private final Query.SortOrder order

Record Component accessed by order().

Constructor Detail

OrderElementback to summary
pack-priv OrderElement(String name, Query.SortOrder order)

Method Detail

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

nameback to summary
public String name()

Record Component getter of name.

orderback to summary
public Query.SortOrder order()

Record Component getter of order.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.

jdk.jfr.internal.query back to summary

pack-priv final Record Query.Property

extends Record
Class Inheritance
Record Components
name:String 
style:Consumer<Field> 

Field Summary

Modifier and TypeField and Description
private final String
name

Record Component accessed by name().

private final Consumer<Field>
style

Record Component accessed by style().

Constructor Summary

AccessConstructor and Description
pack-priv
Property(String name, Consumer<Field> style)

Method Summary

Modifier and TypeMethod and Description
public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public String
name()

Record Component getter of name.

public Consumer<Field>
style()

Record Component getter of style.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

nameback to summary
private final String name

Record Component accessed by name().

styleback to summary
private final Consumer<Field> style

Record Component accessed by style().

Constructor Detail

Propertyback to summary
pack-priv Property(String name, Consumer<Field> style)

Method Detail

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

nameback to summary
public String name()

Record Component getter of name.

styleback to summary
public Consumer<Field> style()

Record Component getter of style.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.

jdk.jfr.internal.query back to summary

pack-priv final Enum Query.SortOrder

extends Enum<Query.SortOrder>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final Query.SortOrder
public static final Query.SortOrder
public static final Query.SortOrder

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Query.SortOrder
public static Query.SortOrder[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ASCENDINGback to summary
public static final Query.SortOrder ASCENDING
DESCENDINGback to summary
public static final Query.SortOrder DESCENDING
NONEback to summary
public static final Query.SortOrder NONE

Constructor Detail

SortOrderback to summary
private SortOrder()

Method Detail

valueOfback to summary
public static Query.SortOrder valueOf(String name)
valuesback to summary
public static Query.SortOrder[] values()
jdk.jfr.internal.query back to summary

pack-priv final Record Query.Source

extends Record
Class Inheritance
Record Components
name:String 
alias:Optional<String> 

Field Summary

Modifier and TypeField and Description
private final Optional<String>
alias

Record Component accessed by alias().

private final String
name

Record Component accessed by name().

Constructor Summary

AccessConstructor and Description
pack-priv
Source(String name, Optional<String> alias)

Method Summary

Modifier and TypeMethod and Description
public Optional<String>
alias()

Record Component getter of alias.

public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public String
name()

Record Component getter of name.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

aliasback to summary
private final Optional<String> alias

Record Component accessed by alias().

nameback to summary
private final String name

Record Component accessed by name().

Constructor Detail

Sourceback to summary
pack-priv Source(String name, Optional<String> alias)

Method Detail

aliasback to summary
public Optional<String> alias()

Record Component getter of alias.

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

nameback to summary
public String name()

Record Component getter of name.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.

jdk.jfr.internal.query back to summary

pack-priv final Record Query.Where

extends Record
Class Inheritance
Record Components
conditions:List<Query.Condition> 

Field Summary

Modifier and TypeField and Description
private final List<Query.Condition>
conditions

Record Component accessed by conditions().

Constructor Summary

AccessConstructor and Description
pack-priv
Where(List<Query.Condition> conditions)

Method Summary

Modifier and TypeMethod and Description
public List<Query.Condition>
conditions()

Record Component getter of conditions.

public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

conditionsback to summary
private final List<Query.Condition> conditions

Record Component accessed by conditions().

Constructor Detail

Whereback to summary
pack-priv Where(List<Query.Condition> conditions)

Method Detail

conditionsback to summary
public List<Query.Condition> conditions()

Record Component getter of conditions.

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.