Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * 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.facebook.presto.sql.analyzer;
 
 
 public class FeaturesConfig
 {
     private boolean experimentalSyntaxEnabled;
     private boolean distributedIndexJoinsEnabled;
     private boolean distributedJoinsEnabled;
     private boolean optimizeMetadataQueries;
     private boolean optimizeHashGeneration;
     private boolean optimizeSingleDistinct = true;
 
     @LegacyConfig("analyzer.experimental-syntax-enabled")
     @Config("experimental-syntax-enabled")
     public FeaturesConfig setExperimentalSyntaxEnabled(boolean enabled)
     {
          = enabled;
         return this;
     }
 
     public boolean isExperimentalSyntaxEnabled()
     {
         return ;
     }
 
     @Config("distributed-index-joins-enabled")
     public FeaturesConfig setDistributedIndexJoinsEnabled(boolean distributedIndexJoinsEnabled)
     {
         this. = distributedIndexJoinsEnabled;
         return this;
     }
 
     public boolean isDistributedIndexJoinsEnabled()
     {
         return ;
     }
 
     @Config("distributed-joins-enabled")
     public FeaturesConfig setDistributedJoinsEnabled(boolean distributedJoinsEnabled)
     {
         this. = distributedJoinsEnabled;
         return this;
     }
 
     public boolean isDistributedJoinsEnabled()
     {
         return ;
     }
 
     public boolean isOptimizeMetadataQueries()
     {
         return ;
     }
 
     @Config("optimizer.optimize-metadata-queries")
     public FeaturesConfig setOptimizeMetadataQueries(boolean optimizeMetadataQueries)
     {
         this. = optimizeMetadataQueries;
         return this;
     }
 
     public boolean isOptimizeHashGeneration()
     {
         return ;
     }
 
     @Config("optimizer.optimize-hash-generation")
     public FeaturesConfig setOptimizeHashGeneration(boolean optimizeHashGeneration)
     {
         this. = optimizeHashGeneration;
         return this;
     }
 
     public boolean isOptimizeSingleDistinct()
     {
         return ;
     }
 
     @Config("optimizer.optimize-single-distinct")
     public FeaturesConfig setOptimizeSingleDistinct(boolean optimizeSingleDistinct)
     {
         this. = optimizeSingleDistinct;
         return this;
     }
New to GrepCode? Check out our FAQ X