public interface DocumentStoreReader<Document extends TimelineDocument> extends AutoCloseable
DocumentStoreVendor
have to implement this for creating
reader to its backend.Modifier and Type | Method and Description |
---|---|
Set<String> |
fetchEntityTypes(String collectionName,
org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context) |
Document |
readDocument(String collectionName,
org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context,
Class<Document> documentClass) |
List<Document> |
readDocumentList(String collectionName,
org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context,
Class<Document> documentClass,
long documentsSize) |
close
Document readDocument(String collectionName, org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context, Class<Document> documentClass) throws NoDocumentFoundException
NoDocumentFoundException
List<Document> readDocumentList(String collectionName, org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context, Class<Document> documentClass, long documentsSize) throws NoDocumentFoundException
NoDocumentFoundException
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.