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
- EpmSyndicationContentDeSerializer.cs
- WmpBitmapDecoder.cs
- ExceptionHelpers.cs
- CodeCatchClauseCollection.cs
- ComponentSerializationService.cs
- MessageProperties.cs
- PagesSection.cs
- DomNameTable.cs
- TextAnchor.cs
- PersonalizationDictionary.cs
- ConfigXmlAttribute.cs
- DriveNotFoundException.cs
- SqlReferenceCollection.cs
- ReliabilityContractAttribute.cs
- ChainedAsyncResult.cs
- TreeNode.cs
- BitmapEffectCollection.cs
- MultiByteCodec.cs
- TreeViewItem.cs
- InvalidateEvent.cs
- RegistryKey.cs
- TextEditorCharacters.cs
- ContentElementCollection.cs
- Stack.cs
- BitmapCodecInfoInternal.cs
- InkCanvasSelectionAdorner.cs
- SQLChars.cs
- Parsers.cs
- EtwTrackingBehaviorElement.cs
- IDispatchConstantAttribute.cs
- UserUseLicenseDictionaryLoader.cs
- DataGridViewRowEventArgs.cs
- InternalConfigConfigurationFactory.cs
- SqlGatherProducedAliases.cs
- PageThemeCodeDomTreeGenerator.cs
- Rectangle.cs
- Rect.cs
- SqlProfileProvider.cs
- AnnotationMap.cs
- ParseChildrenAsPropertiesAttribute.cs
- lengthconverter.cs
- OperationAbortedException.cs
- ButtonRenderer.cs
- DynamicEndpointElement.cs
- GenericAuthenticationEventArgs.cs
- DependencyProperty.cs
- NewItemsContextMenuStrip.cs
- SqlXmlStorage.cs
- ObjectDataSourceStatusEventArgs.cs
- IDQuery.cs
- ListBindingHelper.cs
- BindingSource.cs
- QuotedPrintableStream.cs
- SerializerWriterEventHandlers.cs
- remotingproxy.cs
- Function.cs
- Int64AnimationUsingKeyFrames.cs
- Asn1IntegerConverter.cs
- PropertyFilterAttribute.cs
- ResolvedKeyFrameEntry.cs
- LostFocusEventManager.cs
- OledbConnectionStringbuilder.cs
- Slider.cs
- HelpProvider.cs
- ValidatorCompatibilityHelper.cs
- XmlILIndex.cs
- CopyOfAction.cs
- ResourcesBuildProvider.cs
- ControlPropertyNameConverter.cs
- Membership.cs
- ToolBarButtonClickEvent.cs
- QueryContext.cs
- ExpressionPrefixAttribute.cs
- JulianCalendar.cs
- SystemIPGlobalStatistics.cs
- ImmutableAssemblyCacheEntry.cs
- FixedSOMElement.cs
- DataGridViewRowConverter.cs
- XmlEncodedRawTextWriter.cs
- UnsignedPublishLicense.cs
- GrammarBuilderRuleRef.cs
- SecurityTokenException.cs
- WebPartCatalogAddVerb.cs
- CharacterBufferReference.cs
- webbrowsersite.cs
- StringFunctions.cs
- hwndwrapper.cs
- XmlSignatureManifest.cs
- SpeechSynthesizer.cs
- FormViewDeletedEventArgs.cs
- FolderLevelBuildProviderCollection.cs
- SettingsPropertyIsReadOnlyException.cs
- XPathDocumentIterator.cs
- XmlIgnoreAttribute.cs
- HMACRIPEMD160.cs
- XPathNodePointer.cs
- WaitingCursor.cs
- InProcStateClientManager.cs
- TypeCollectionPropertyEditor.cs
- StoreConnection.cs