blob: a7c2a25a139e08c8bff6733483a3971ad46768a1 [file] [log] [blame]
// Copyright 2011-2015 Quickstep Technologies LLC.
// Copyright 2015 Pivotal Software, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto2";
package quickstep.serialization;
import "expressions/Expressions.proto";
import "expressions/table_generator/GeneratorFunction.proto";
import "storage/AggregationOperationState.proto";
import "storage/HashTable.proto";
import "storage/InsertDestination.proto";
import "types/containers/Tuple.proto";
import "utility/SortConfiguration.proto";
message QueryContext {
message ScalarGroup {
repeated Scalar scalars = 1;
}
message UpdateGroup {
message UpdateAssignment {
required int32 attribute_id = 1;
required Scalar scalar = 2;
}
// NOTE(zuyu): Only used for validating UpdateAssignment's attribute_id.
required int32 relation_id = 1;
repeated UpdateAssignment update_assignments = 2;
}
repeated AggregationOperationState aggregation_states = 1;
repeated HashTable join_hash_tables = 2;
repeated InsertDestination insert_destinations = 3;
repeated Predicate predicates = 4;
repeated ScalarGroup scalar_groups = 5;
repeated SortConfiguration sort_configs = 6;
repeated Tuple tuples = 7;
repeated GeneratorFunctionHandle generator_functions = 8;
// NOTE(zuyu): For UpdateWorkOrder only.
repeated UpdateGroup update_groups = 9;
}