Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Core / System / Linq / Parallel / QueryOperators / Options / QueryExecutionOption.cs / 1305376 / QueryExecutionOption.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ // // QueryExecutionOption.cs // //[....] // // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- using System.Collections.Generic; using System.Threading; namespace System.Linq.Parallel { ////// Represents operators that set various query execution options. /// ///internal class QueryExecutionOption : QueryOperator { private QueryOperator m_child; private OrdinalIndexState m_indexState; internal QueryExecutionOption(QueryOperator source, QuerySettings settings) : base(source.OutputOrdered, settings.Merge(source.SpecifiedQuerySettings)) { m_child = source; m_indexState = m_child.OrdinalIndexState; } internal override QueryResults Open(QuerySettings settings, bool preferStriping) { return m_child.Open(settings, preferStriping); } //---------------------------------------------------------------------------------------- // Returns an enumerable that represents the query executing sequentially. // internal override IEnumerable AsSequentialQuery(CancellationToken token) { return m_child.AsSequentialQuery(token); } internal override OrdinalIndexState OrdinalIndexState { get { return m_indexState; } } //--------------------------------------------------------------------------------------- // Whether this operator performs a premature merge. // internal override bool LimitsParallelism { get { return m_child.LimitsParallelism; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ // // QueryExecutionOption.cs // // [....] // // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- using System.Collections.Generic; using System.Threading; namespace System.Linq.Parallel { ////// Represents operators that set various query execution options. /// ///internal class QueryExecutionOption : QueryOperator { private QueryOperator m_child; private OrdinalIndexState m_indexState; internal QueryExecutionOption(QueryOperator source, QuerySettings settings) : base(source.OutputOrdered, settings.Merge(source.SpecifiedQuerySettings)) { m_child = source; m_indexState = m_child.OrdinalIndexState; } internal override QueryResults Open(QuerySettings settings, bool preferStriping) { return m_child.Open(settings, preferStriping); } //---------------------------------------------------------------------------------------- // Returns an enumerable that represents the query executing sequentially. // internal override IEnumerable AsSequentialQuery(CancellationToken token) { return m_child.AsSequentialQuery(token); } internal override OrdinalIndexState OrdinalIndexState { get { return m_indexState; } } //--------------------------------------------------------------------------------------- // Whether this operator performs a premature merge. // internal override bool LimitsParallelism { get { return m_child.LimitsParallelism; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MatrixConverter.cs
- FileDialog_Vista_Interop.cs
- ExpressionConverter.cs
- WebPartExportVerb.cs
- LoadRetryAsyncResult.cs
- SerializableAttribute.cs
- AddressHeader.cs
- RowVisual.cs
- QuaternionAnimation.cs
- AuthenticationService.cs
- Mutex.cs
- SecurityUtils.cs
- VirtualizedCellInfoCollection.cs
- GenericTypeParameterBuilder.cs
- RubberbandSelector.cs
- AssemblyInfo.cs
- DashStyle.cs
- Matrix.cs
- HttpRuntimeSection.cs
- DataGridViewLinkCell.cs
- DatePickerAutomationPeer.cs
- DefaultBinder.cs
- AttachInfo.cs
- TextModifier.cs
- ManagementBaseObject.cs
- DependencyObjectProvider.cs
- PowerModeChangedEventArgs.cs
- AnimationLayer.cs
- QuaternionAnimationUsingKeyFrames.cs
- RangeValuePattern.cs
- WhitespaceRule.cs
- tibetanshape.cs
- TypeElement.cs
- FloaterBaseParagraph.cs
- CompilationAssemblyInstallComponent.cs
- FrameworkName.cs
- SiteMapSection.cs
- CommentEmitter.cs
- ListBox.cs
- QueryCreatedEventArgs.cs
- RtfToXamlReader.cs
- DataGridViewColumnEventArgs.cs
- PrintDocument.cs
- WSSecurityPolicy11.cs
- ListViewSortEventArgs.cs
- HtmlInputFile.cs
- SessionStateSection.cs
- EventLogHandle.cs
- Window.cs
- BitmapEffect.cs
- ModelItemCollectionImpl.cs
- DataGridViewRowCollection.cs
- ShaperBuffers.cs
- DoubleLinkList.cs
- PrintSchema.cs
- SQLInt64.cs
- DetailsViewRowCollection.cs
- itemelement.cs
- WSSecureConversationFeb2005.cs
- ExtenderHelpers.cs
- RawMouseInputReport.cs
- AnnotationMap.cs
- MasterPage.cs
- WebPartAddingEventArgs.cs
- PolyQuadraticBezierSegment.cs
- SiteMapDataSourceDesigner.cs
- DropSource.cs
- SqlCaseSimplifier.cs
- TiffBitmapEncoder.cs
- ListViewItem.cs
- Base64WriteStateInfo.cs
- SeekStoryboard.cs
- SecureStringHasher.cs
- CellParagraph.cs
- AuthenticationException.cs
- ArraySortHelper.cs
- VirtualDirectoryMapping.cs
- SessionStateUtil.cs
- DependencyObjectPropertyDescriptor.cs
- XmlTextReaderImpl.cs
- AlgoModule.cs
- DynamicControlParameter.cs
- VisualTreeUtils.cs
- KeyInstance.cs
- VirtualizedItemProviderWrapper.cs
- DataPagerFieldCollection.cs
- InvalidOleVariantTypeException.cs
- OleDbDataReader.cs
- RoleManagerSection.cs
- __ComObject.cs
- OutputCacheSection.cs
- AdRotator.cs
- NativeMethods.cs
- Literal.cs
- RelatedPropertyManager.cs
- LogicalTreeHelper.cs
- Delegate.cs
- HttpFormatExtensions.cs
- CalendarDateRangeChangingEventArgs.cs
- MethodMessage.cs