Class ProfileThreadSnapshotQueryEsDAO
- java.lang.Object
-
- org.apache.skywalking.oap.server.core.storage.AbstractDAO<ElasticSearchClient>
-
- org.apache.skywalking.oap.server.storage.plugin.elasticsearch.base.EsDAO
-
- org.apache.skywalking.oap.server.storage.plugin.elasticsearch.query.ProfileThreadSnapshotQueryEsDAO
-
- All Implemented Interfaces:
DAO,IProfileThreadSnapshotQueryDAO,org.apache.skywalking.oap.server.library.module.Service
public class ProfileThreadSnapshotQueryEsDAO extends EsDAO implements IProfileThreadSnapshotQueryDAO
-
-
Field Summary
Fields Modifier and Type Field Description protected ProfileThreadSnapshotRecord.Builderbuilder-
Fields inherited from class org.apache.skywalking.oap.server.storage.plugin.elasticsearch.base.EsDAO
SCROLL_CONTEXT_RETENTION
-
-
Constructor Summary
Constructors Constructor Description ProfileThreadSnapshotQueryEsDAO(ElasticSearchClient client, int profileTaskQueryMaxSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SegmentRecordgetProfiledSegment(String segmentId)intqueryMaxSequence(String segmentId, long start, long end)intqueryMinSequence(String segmentId, long start, long end)List<BasicTrace>queryProfiledSegments(String taskId)List<ProfileThreadSnapshotRecord>queryRecords(String segmentId, int minSequence, int maxSequence)protected intquerySequenceWithAgg(org.apache.skywalking.library.elasticsearch.requests.search.aggregation.AggregationBuilder aggregationBuilder, String segmentId, long start, long end)-
Methods inherited from class org.apache.skywalking.oap.server.core.storage.AbstractDAO
getClient
-
-
-
-
Field Detail
-
builder
protected final ProfileThreadSnapshotRecord.Builder builder
-
-
Constructor Detail
-
ProfileThreadSnapshotQueryEsDAO
public ProfileThreadSnapshotQueryEsDAO(ElasticSearchClient client, int profileTaskQueryMaxSize)
-
-
Method Detail
-
queryProfiledSegments
public List<BasicTrace> queryProfiledSegments(String taskId)
- Specified by:
queryProfiledSegmentsin interfaceIProfileThreadSnapshotQueryDAO
-
queryMinSequence
public int queryMinSequence(String segmentId, long start, long end)
- Specified by:
queryMinSequencein interfaceIProfileThreadSnapshotQueryDAO
-
queryMaxSequence
public int queryMaxSequence(String segmentId, long start, long end)
- Specified by:
queryMaxSequencein interfaceIProfileThreadSnapshotQueryDAO
-
queryRecords
public List<ProfileThreadSnapshotRecord> queryRecords(String segmentId, int minSequence, int maxSequence)
- Specified by:
queryRecordsin interfaceIProfileThreadSnapshotQueryDAO
-
getProfiledSegment
public SegmentRecord getProfiledSegment(String segmentId)
- Specified by:
getProfiledSegmentin interfaceIProfileThreadSnapshotQueryDAO
-
querySequenceWithAgg
protected int querySequenceWithAgg(org.apache.skywalking.library.elasticsearch.requests.search.aggregation.AggregationBuilder aggregationBuilder, String segmentId, long start, long end)
-
-