Class ElasticSearchDocumentMapper
- java.lang.Object
-
- org.jobrunr.storage.nosql.elasticsearch.ElasticSearchDocumentMapper
-
public class ElasticSearchDocumentMapper extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ElasticSearchDocumentMapper(JobMapper jobMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BackgroundJobServerStatus
toBackgroundJobServerStatus(org.elasticsearch.search.SearchHit searchHit)
Job
toJob(org.elasticsearch.action.get.GetResponse response)
Job
toJob(org.elasticsearch.search.SearchHit hit)
RecurringJob
toRecurringJob(org.elasticsearch.search.SearchHit hit)
org.elasticsearch.common.xcontent.XContentBuilder
toXContentBuilder(Job job)
org.elasticsearch.common.xcontent.XContentBuilder
toXContentBuilder(RecurringJob job)
org.elasticsearch.common.xcontent.XContentBuilder
toXContentBuilderForInsert(BackgroundJobServerStatus serverStatus)
org.elasticsearch.common.xcontent.XContentBuilder
toXContentBuilderForUpdate(BackgroundJobServerStatus serverStatus)
-
-
-
Constructor Detail
-
ElasticSearchDocumentMapper
public ElasticSearchDocumentMapper(JobMapper jobMapper)
-
-
Method Detail
-
toXContentBuilderForInsert
public org.elasticsearch.common.xcontent.XContentBuilder toXContentBuilderForInsert(BackgroundJobServerStatus serverStatus)
-
toXContentBuilderForUpdate
public org.elasticsearch.common.xcontent.XContentBuilder toXContentBuilderForUpdate(BackgroundJobServerStatus serverStatus)
-
toXContentBuilder
public org.elasticsearch.common.xcontent.XContentBuilder toXContentBuilder(Job job)
-
toXContentBuilder
public org.elasticsearch.common.xcontent.XContentBuilder toXContentBuilder(RecurringJob job)
-
toBackgroundJobServerStatus
public BackgroundJobServerStatus toBackgroundJobServerStatus(org.elasticsearch.search.SearchHit searchHit)
-
toJob
public Job toJob(org.elasticsearch.action.get.GetResponse response)
-
toJob
public Job toJob(org.elasticsearch.search.SearchHit hit)
-
toRecurringJob
public RecurringJob toRecurringJob(org.elasticsearch.search.SearchHit hit)
-
-