Skip to content

Commit

Permalink
[CALCITE-3559] Update formatting: remove "// End" trailers, move @test
Browse files Browse the repository at this point in the history
…from their own lines
  • Loading branch information
vlsi committed Dec 14, 2019
1 parent 41b9c96 commit 571731b
Show file tree
Hide file tree
Showing 1,966 changed files with 355 additions and 4,641 deletions.
2 changes: 0 additions & 2 deletions babel/src/main/codegen/includes/parserImpls.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,3 @@ void InfixCast(List<Object> list, ExprContext exprContext, Span s) :
list.add(dt);
}
}

// End parserImpls.ftl
2 changes: 0 additions & 2 deletions babel/src/main/java/org/apache/calcite/sql/babel/Babel.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,3 @@ public class Babel {
// This class is currently a place-holder. Javadoc gets upset
// if there are no classes in babel/java/main.
}

// End Babel.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,3 @@
* Parse tree for SQL extensions used by the Babel parser.
*/
package org.apache.calcite.sql.babel;

// End package-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -256,5 +256,3 @@ private void checkParseInfixCast(String sqlType) {
sql(sql).ok(expected);
}
}

// End BabelParserTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -185,5 +185,3 @@ private static class BabelCommandHandler implements CommandHandler {
}
}
}

// End BabelQuidemTest.java
2 changes: 0 additions & 2 deletions babel/src/test/java/org/apache/calcite/test/BabelTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,3 @@ private void checkInfixCast(Statement statement, String typeName, int sqlType)
}
}
}

// End BabelTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,3 @@ public void close() {
// Nothing to do here
}
}

// End CassandraEnumerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -280,5 +280,3 @@ private String translateOp2(String op, String name, RexLiteral right) {
}
}
}

// End CassandraFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,3 @@ public RelWriter explainTerms(RelWriter pw) {
return pw;
}
}

// End CassandraLimit.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,3 @@ public enum CassandraMethod {
this.method = Types.lookupMethod(clazz, methodName, argumentTypes);
}
}

// End CassandraMethod.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,3 @@ public void implement(Implementor implementor) {
implementor.add(fields, null);
}
}

// End CassandraProject.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,3 @@ public void visitChild(int ordinal, RelNode input) {
}
}
}

// End CassandraRel.java
Original file line number Diff line number Diff line change
Expand Up @@ -393,5 +393,3 @@ public void onMatch(RelOptRuleCall call) {
}
}
}

// End CassandraRules.java
Original file line number Diff line number Diff line change
Expand Up @@ -327,5 +327,3 @@ private KeyspaceMetadata getKeyspace() {
return session.getCluster().getMetadata().getKeyspace(keyspace);
}
}

// End CassandraSchema.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,3 @@ public Schema create(SchemaPlus parentSchema, String name,
}
}
}

// End CassandraSchemaFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,3 @@ public void implement(Implementor implementor) {
}
}
}

// End CassandraSort.java
Original file line number Diff line number Diff line change
Expand Up @@ -254,5 +254,3 @@ public Enumerable<Object> query(List<Map.Entry<String, Class>> fields,
}
}
}

// End CassandraTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,3 @@ public void implement(Implementor implementor) {
implementor.table = table;
}
}

// End CassandraTableScan.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,5 +146,3 @@ private static <T> List<Expression> constantList(List<T> values) {
return Lists.transform(values, Expressions::constant);
}
}

// End CassandraToEnumerableConverter.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,3 @@ public CassandraToEnumerableConverterRule(
return new CassandraToEnumerableConverter(rel.getCluster(), newTraitSet, rel);
}
}

// End CassandraToEnumerableConverterRule.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,3 @@
* <p>There is one table for each Cassandra column family.</p>
*/
package org.apache.calcite.adapter.cassandra;

// End package-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -227,5 +227,3 @@ public static void setUp() {
.explainContains("CassandraTableScan(table=[[twissandra, Tweets_By_User]])");
}
}

// End CassandraAdapterTest.java
2 changes: 0 additions & 2 deletions core/src/main/codegen/templates/Parser.jj
Original file line number Diff line number Diff line change
Expand Up @@ -7720,5 +7720,3 @@ void UnusedExtension() :
LOOKAHEAD({false}) <ZONE>
)
}

// End Parser.jj
2 changes: 0 additions & 2 deletions core/src/main/java/org/apache/calcite/DataContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,5 +141,3 @@ public <T> T get(DataContext dataContext) {
}
}
}

// End DataContext.java
2 changes: 0 additions & 2 deletions core/src/main/java/org/apache/calcite/Demo.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,3 @@ public static void main(String[] args) {
}
}
}

// End Demo.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,3 @@
*/
class Java9Workaround {
}

// End Java9Workaround.java
Original file line number Diff line number Diff line change
Expand Up @@ -896,5 +896,3 @@ public void close() {
}
}
}

// End ArrayTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,5 +163,3 @@ public Schema create(
}
}
}

// End CloneSchema.java
Original file line number Diff line number Diff line change
Expand Up @@ -451,5 +451,3 @@ public int compareTo(Kev o) {
}
}
}

// End ColumnLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,3 @@ public Enumerator<T> enumerator() {
};
}
}

// End ListTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,3 @@
* Provides utility classes.
*/
package org.apache.calcite.adapter.clone;

// End package-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,3 @@ public interface AggAddContext extends AggResultContext {
*/
RexToLixTranslator rowTranslator();
}

// End AggAddContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,3 @@ public interface AggContext {
/** Returns the grouping sets we are aggregating on. */
List<ImmutableBitSet> groupSets();
}

// End AggContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,3 @@ public AggImpState(int aggIdx, AggregateCall call, boolean windowContext) {
}
}
}

// End AggImpState.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,3 @@ public interface AggImplementor {
*/
Expression implementResult(AggContext info, AggResultContext result);
}

// End AggImplementor.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,3 @@ public interface AggResetContext extends NestedBlockBuilder {
*/
List<Expression> accumulator();
}

// End AggResetContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,3 @@ public interface AggResultContext extends NestedBlockBuilder, AggResetContext {

AggregateCall call();
}

// End AggResultContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,3 @@ Function1<TAccumulate, TResult> singleGroupResultSelector(
Function2<TKey, TAccumulate, TResult> resultSelector(
Function2<TKey, TOrigAccumulate, TResult> resultSelector);
}

// End AggregateLambdaFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,3 @@ private class AccumulatorAdderSeq
}
}
}

// End BasicAggregateLambdaFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,3 @@ public BasicLazyAccumulator(Function2<TAccumulate, TSource, TAccumulate> accumul
}
}
}

// End BasicLazyAccumulator.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,3 @@ Expression implement(
RexCall call,
RexImpTable.NullAs nullAs);
}

// End CallImplementor.java
Original file line number Diff line number Diff line change
Expand Up @@ -638,5 +638,3 @@ static Expression generatePredicate(
return Expressions.lambda(Predicate2.class, builder.toBlock(), left_, right_);
}
}

// End EnumUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -610,5 +610,3 @@ public List<? extends Type> keyTypes() {
}
}
}

// End EnumerableAggregate.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,3 @@ public RelNode convert(RelNode rel) {
}
}
}

// End EnumerableAggregateRule.java
Original file line number Diff line number Diff line change
Expand Up @@ -214,5 +214,3 @@ public static EnumerableBatchNestedLoopJoin create(
return implementor.result(physType, builder.toBlock());
}
}

// End EnumerableBatchNestedLoopJoin.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,5 +138,3 @@ public EnumerableBatchNestedLoopJoinRule(RelBuilderFactory relBuilderFactory, in
joinType));
}
}

// End EnumerableBatchNestedLoopJoinRule.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,3 @@ public EnumerableToBindableConverterRule(
}
}
}

// End EnumerableBindable.java
Original file line number Diff line number Diff line change
Expand Up @@ -269,5 +269,3 @@ public RexProgram getProgram() {
return program;
}
}

// End EnumerableCalc.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,3 @@ public RelNode convert(RelNode rel) {
calc.getProgram());
}
}

// End EnumerableCalcRule.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,3 @@ public Result implement(EnumerableRelImplementor implementor, Prefer pref) {
return implementor.result(physType, builder.toBlock());
}
}

// End EnumerableCollect.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,3 @@ public RelNode convert(RelNode rel) {
collect.getFieldName());
}
}

// End EnumerableCollectRule.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,3 @@ public boolean useAbstractConvertersForConversion(RelTraitSet fromTraits,
return useAbstractConvertersForConversion;
}
}

// End EnumerableConvention.java
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,3 @@ public Result implement(EnumerableRelImplementor implementor,
return implementor.result(physType, builder.toBlock());
}
}

// End EnumerableCorrelate.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,3 @@ public RelNode convert(RelNode rel) {
c.getJoinType());
}
}

// End EnumerableCorrelateRule.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,3 @@ public Result implement(EnumerableRelImplementor implementor, Prefer pref) {
throw new UnsupportedOperationException();
}
}

// End EnumerableFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,3 @@ public RelNode convert(RelNode rel) {
filter.getCondition());
}
}

// End EnumerableFilterRule.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,3 @@ public void onMatch(RelOptRuleCall call) {
call.transformTo(calc);
}
}

// End EnumerableFilterToCalcRule.java
Original file line number Diff line number Diff line change
Expand Up @@ -249,5 +249,3 @@ private Result implementHashJoin(EnumerableRelImplementor implementor, Prefer pr
.toBlock());
}
}

// End EnumerableHashJoin.java
Original file line number Diff line number Diff line change
Expand Up @@ -235,5 +235,3 @@ public void run() throws InterruptedException {
}
}
}

// End EnumerableInterpretable.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,3 @@ public Result implement(EnumerableRelImplementor implementor, Prefer pref) {
return implementor.result(physType, builder.toBlock());
}
}

// End EnumerableInterpreter.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,3 @@ public EnumerableInterpreterRule(RelBuilderFactory relBuilderFactory) {
return EnumerableInterpreter.create(rel, 0.5d);
}
}

// End EnumerableInterpreterRule.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,3 @@ public Result implement(EnumerableRelImplementor implementor, Prefer pref) {
return implementor.result(physType, builder.toBlock());
}
}

// End EnumerableIntersect.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,3 @@ public RelNode convert(RelNode rel) {
convertList(intersect.getInputs(), out), intersect.all);
}
}

// End EnumerableIntersectRule.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,3 @@ class EnumerableJoinRule extends ConverterRule {
join.getJoinType());
}
}

// End EnumerableJoinRule.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,5 +138,3 @@ private static Expression getExpression(RexNode offset) {
}
}
}

// End EnumerableLimit.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,3 @@ class EnumerableLimitRule extends RelOptRule {
sort.fetch));
}
}

// End EnumerableLimitRule.java
Loading

0 comments on commit 571731b

Please sign in to comment.