Definition at line 24 of file SystemContextExtensions.cs.
static IQueryPlanNode Deveel.Data.Sql.Query.SystemContextExtensions.DeserializeQueryPlan |
( |
this ISystemContext |
context, |
|
|
Type |
nodeType, |
|
|
BinaryReader |
reader |
|
) |
| |
|
inlinestatic |
Definition at line 45 of file SystemContextExtensions.cs.
46 var serializers = context.ResolveAllServices<IQueryPlanNodeSerializer>();
47 foreach (var serializer
in serializers) {
48 if (serializer.CanSerialize(nodeType)) {
49 return (IQueryPlanNode)serializer.Deserialize(reader);
53 throw new InvalidOperationException(
string.Format(
"Could not find any serializer for node type '{0}'.", nodeType));
static void Deveel.Data.Sql.Query.SystemContextExtensions.SerializeQueryPlan |
( |
this ISystemContext |
context, |
|
|
IQueryPlanNode |
planNode, |
|
|
Stream |
stream |
|
) |
| |
|
inlinestatic |
Definition at line 25 of file SystemContextExtensions.cs.
26 using (var writer =
new BinaryWriter(stream, Encoding.Unicode)) {
27 context.SerializeQueryPlan(planNode, writer);
static void Deveel.Data.Sql.Query.SystemContextExtensions.SerializeQueryPlan |
( |
this ISystemContext |
context, |
|
|
IQueryPlanNode |
node, |
|
|
BinaryWriter |
writer |
|
) |
| |
|
inlinestatic |
Definition at line 31 of file SystemContextExtensions.cs.
32 var nodeType = node.GetType();
34 var serializers = context.ResolveAllServices<IQueryPlanNodeSerializer>();
35 foreach (var serializer
in serializers) {
36 if (serializer.CanSerialize(nodeType)) {
37 serializer.Serialize(node, writer);
42 throw new InvalidOperationException(
string.Format(
"Could not find any serializer for node type '{0}'.", nodeType));
The documentation for this class was generated from the following file: