public final class DocumentStoreFactory extends Object
DocumentStoreVendor that is configured,
 appropriate reader or writer would be instantiated.| Modifier and Type | Method and Description | 
|---|---|
| static <Document extends TimelineDocument> | createDocumentStoreReader(org.apache.hadoop.conf.Configuration conf)Creates a DocumentStoreReader for a  DocumentStoreVendor. | 
| static <Document extends TimelineDocument> | createDocumentStoreWriter(org.apache.hadoop.conf.Configuration conf)Creates a DocumentStoreWriter for a  DocumentStoreVendor. | 
public static <Document extends TimelineDocument> DocumentStoreWriter<Document> createDocumentStoreWriter(org.apache.hadoop.conf.Configuration conf) throws org.apache.hadoop.yarn.exceptions.YarnException
DocumentStoreVendor.Document - type of Document for which the writer has to be created,
                  i.e TimelineEntityDocument, FlowActivityDocument etcconf - for creating client connectionDocumentStoreNotSupportedException - if there is no implementation
         for a configured DocumentStoreVendor or unknown
         DocumentStoreVendor is configured.org.apache.hadoop.yarn.exceptions.YarnException - if the required configs for DocumentStore is missing.public static <Document extends TimelineDocument> DocumentStoreReader<Document> createDocumentStoreReader(org.apache.hadoop.conf.Configuration conf) throws org.apache.hadoop.yarn.exceptions.YarnException
DocumentStoreVendor.Document - type of Document for which the writer has to be created,
                  i.e TimelineEntityDocument, FlowActivityDocument etcconf - for creating client connectionDocumentStoreNotSupportedException - if there is no implementation
         for a configured DocumentStoreVendor or unknown
         DocumentStoreVendor is configured.org.apache.hadoop.yarn.exceptions.YarnException - if the required configs for DocumentStore is missing.Copyright © 2008–2023 Apache Software Foundation. All rights reserved.