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) |
closeDocument readDocument(String collectionName, org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context, Class<Document> documentClass) throws NoDocumentFoundException
NoDocumentFoundExceptionList<Document> readDocumentList(String collectionName, org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context, Class<Document> documentClass, long documentsSize) throws NoDocumentFoundException
NoDocumentFoundExceptionCopyright © 2008–2024 Apache Software Foundation. All rights reserved.