internal static DocumentMapNode CreateNode(IDocumentMap docMap) { if (docMap == null) { return(null); } Stack <NodeStackEntry> stack = new Stack <NodeStackEntry>(); List <DocumentMapNode> workspace = new List <DocumentMapNode>(); OnDemandDocumentMapNode onDemandDocumentMapNode = null; NodeStackEntry item = default(NodeStackEntry); while (docMap.MoveNext()) { onDemandDocumentMapNode = docMap.Current; item.Node = FromOnDemandNode(onDemandDocumentMapNode); item.Level = onDemandDocumentMapNode.Level; while (stack.Count > 0 && onDemandDocumentMapNode.Level < stack.Peek().Level) { CollapseTopLevel(stack, workspace); } stack.Push(item); } while (stack.Count > 1) { CollapseTopLevel(stack, workspace); } return(stack.Pop().Node); }
internal static DocumentMapNode CreateTree(IDocumentMap docMap, string rootName) { DocumentMapNode documentMapNode = CreateNode(docMap); if (documentMapNode != null) { documentMapNode.m_label = rootName; } return(documentMapNode); }
public IDocumentMap GetDocumentMap() { if (!m_executionSession.ExecutionInfo.HasDocMap) { return(null); } using (ProcessingStreamHandler @object = new ProcessingStreamHandler()) { ProcessingContext processingContext = CreateProcessingContext(@object.StreamCallback); OnDemandProcessingResult result; IDocumentMap documentMap = CreateAndConfigureReportProcessing().GetDocumentMap(m_executionSession.EventInfo, processingContext, out result); m_executionSession.SaveProcessingResult(result); return(documentMap); } }
public void Register(IDocumentMap map) { Register(new List <IDocumentMap> { map }); }
public FluentSearchMappingDefinition(IDocumentMap documentMap) : this(new [] { documentMap }) { }
public FieldMappingPart(IDocumentMap documentMap, PropertyInfo property) { this.documentMap = documentMap; this.property = property; }
public FluentSearchMappingDefinition(IDocumentMap documentMap) : this(new []{documentMap}) { }