diff options
author | Brian S. O'Neill <bronee@gmail.com> | 2008-04-06 20:13:22 +0000 |
---|---|---|
committer | Brian S. O'Neill <bronee@gmail.com> | 2008-04-06 20:13:22 +0000 |
commit | 755d0fa1dfa42d8987dd9dc2439f8a1f9c058fe9 (patch) | |
tree | 24c43ecbcbf227017a3b16097a9fa804eb9b52ce /src/main/java/com/amazon/carbonado/qe/QueryHint.java | |
parent | 9d2d8ef94b327743f97ed40736de3e517c92a4e8 (diff) |
Added support for internal query hints.
Diffstat (limited to 'src/main/java/com/amazon/carbonado/qe/QueryHint.java')
-rw-r--r-- | src/main/java/com/amazon/carbonado/qe/QueryHint.java | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/main/java/com/amazon/carbonado/qe/QueryHint.java b/src/main/java/com/amazon/carbonado/qe/QueryHint.java new file mode 100644 index 0000000..870eb0b --- /dev/null +++ b/src/main/java/com/amazon/carbonado/qe/QueryHint.java @@ -0,0 +1,40 @@ +/*
+ * Copyright 2008 Amazon Technologies, Inc. or its affiliates.
+ * Amazon, Amazon.com and Carbonado are trademarks or registered trademarks
+ * of Amazon Technologies, Inc. or its affiliates. All rights reserved.
+ *
+ * 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.
+ */
+
+package com.amazon.carbonado.qe;
+
+/**
+ * Defines a hint key.
+ *
+ * @author Brian S O'Neill
+ * @see QueryHints
+ * @since 1.2
+ */
+public enum QueryHint {
+ /** Intention to consume all matched records */
+ //CONSUME_ALL,
+
+ /** Intention to consume a slice of matched records */
+ CONSUME_SLICE,
+
+ /** Favor low latency for query results */
+ //FAVOR_LATENCY,
+
+ /** Favor high throughput for query results */
+ //FAVOR_THROUGHPUT,
+}
|