Package org.apache.calcite.test
Class FoodMartQuerySet
- java.lang.Object
-
- org.apache.calcite.test.FoodMartQuerySet
-
public class FoodMartQuerySet extends java.lang.Object
Set of queries against the FoodMart database.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FoodMartQuerySet.FoodmartColumn
JSON column element.static class
FoodMartQuerySet.FoodmartQuery
JSON query element.static class
FoodMartQuerySet.FoodmartRoot
JSON root element.
-
Field Summary
Fields Modifier and Type Field Description java.util.Map<java.lang.Integer,FoodMartQuerySet.FoodmartQuery>
queries
private static java.lang.ref.SoftReference<FoodMartQuerySet>
ref
-
Constructor Summary
Constructors Modifier Constructor Description private
FoodMartQuerySet()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FoodMartQuerySet
instance()
Returns the singleton instance of the query set.
-
-
-
Field Detail
-
ref
private static java.lang.ref.SoftReference<FoodMartQuerySet> ref
-
queries
public final java.util.Map<java.lang.Integer,FoodMartQuerySet.FoodmartQuery> queries
-
-
Method Detail
-
instance
public static FoodMartQuerySet instance() throws java.io.IOException
Returns the singleton instance of the query set. It is backed by a soft reference, so it may be freed if memory is short and no one is using it.- Throws:
java.io.IOException
-
-