Skip to content

Commit

Permalink
[CALCITE-4314] Add missing @OverRide annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
vlsi committed Oct 6, 2020
1 parent 36b31ba commit 66caa54
Show file tree
Hide file tree
Showing 745 changed files with 4,490 additions and 4,456 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class CassandraEnumerator implements Enumerator<Object> {
*
* @return A new row from the results
*/
public Object current() {
@Override public Object current() {
if (fieldTypes.size() == 1) {
// If we just have one field, produce it directly
return currentRowField(0);
Expand Down Expand Up @@ -123,7 +123,7 @@ private Object convertToEnumeratorObject(Object obj) {
return obj;
}

public boolean moveNext() {
@Override public boolean moveNext() {
if (iterator.hasNext()) {
current = iterator.next();
return true;
Expand All @@ -132,11 +132,11 @@ public boolean moveNext() {
}
}

public void reset() {
@Override public void reset() {
throw new UnsupportedOperationException();
}

public void close() {
@Override public void close() {
// Nothing to do here
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ public CassandraFilter(
return super.computeSelfCost(planner, mq).multiplyBy(0.1);
}

public CassandraFilter copy(RelTraitSet traitSet, RelNode input,
@Override public CassandraFilter copy(RelTraitSet traitSet, RelNode input,
RexNode condition) {
return new CassandraFilter(getCluster(), traitSet, input, condition,
partitionKeys, clusteringKeys, implicitFieldCollations);
}

public void implement(Implementor implementor) {
@Override public void implement(Implementor implementor) {
implementor.visitChild(0, getInput());
implementor.add(null, Collections.singletonList(match));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public CassandraLimit(RelOptCluster cluster, RelTraitSet traitSet,
return new CassandraLimit(getCluster(), traitSet, sole(newInputs), offset, fetch);
}

public void implement(Implementor implementor) {
@Override public void implement(Implementor implementor) {
implementor.visitChild(0, getInput());
if (offset != null) {
implementor.offset = RexLiteral.intValue(offset);
Expand All @@ -64,7 +64,7 @@ public void implement(Implementor implementor) {
}
}

public RelWriter explainTerms(RelWriter pw) {
@Override public RelWriter explainTerms(RelWriter pw) {
super.explainTerms(pw);
pw.itemIf("offset", offset, offset != null);
pw.itemIf("fetch", fetch, fetch != null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public CassandraProject(RelOptCluster cluster, RelTraitSet traitSet,
return super.computeSelfCost(planner, mq).multiplyBy(0.1);
}

public void implement(Implementor implementor) {
@Override public void implement(Implementor implementor) {
implementor.visitChild(0, getInput());
final CassandraRules.RexToCassandraTranslator translator =
new CassandraRules.RexToCassandraTranslator(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class CassandraSchemaFactory implements SchemaFactory {
public CassandraSchemaFactory() {
}

public Schema create(SchemaPlus parentSchema, String name,
@Override public Schema create(SchemaPlus parentSchema, String name,
Map<String, Object> operand) {
Map map = (Map) operand;
String host = (String) map.get("host");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public CassandraSort(RelOptCluster cluster, RelTraitSet traitSet,
return new CassandraSort(getCluster(), traitSet, input, collation);
}

public void implement(Implementor implementor) {
@Override public void implement(Implementor implementor) {
implementor.visitChild(0, getInput());

List<RelFieldCollation> sortCollations = collation.getFieldCollations();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ public CassandraTable(CassandraSchema schema, String columnFamily) {
this(schema, columnFamily, false);
}

public String toString() {
@Override public String toString() {
return "CassandraTable {" + columnFamily + "}";
}

public RelDataType getRowType(RelDataTypeFactory typeFactory) {
@Override public RelDataType getRowType(RelDataTypeFactory typeFactory) {
if (protoRowType == null) {
protoRowType = schema.getRelDataType(columnFamily, view);
}
Expand Down Expand Up @@ -191,7 +191,7 @@ public Enumerable<Object> query(final Session session, List<Map.Entry<String, Cl
final String query = queryBuilder.toString();

return new AbstractEnumerable<Object>() {
public Enumerator<Object> enumerator() {
@Override public Enumerator<Object> enumerator() {
final ResultSet results = session.execute(query);
// Skip results until we get to the right offset
int skip = 0;
Expand All @@ -204,12 +204,12 @@ public Enumerator<Object> enumerator() {
};
}

public <T> Queryable<T> asQueryable(QueryProvider queryProvider,
@Override public <T> Queryable<T> asQueryable(QueryProvider queryProvider,
SchemaPlus schema, String tableName) {
return new CassandraQueryable<>(queryProvider, schema, this, tableName);
}

public RelNode toRel(
@Override public RelNode toRel(
RelOptTable.ToRelContext context,
RelOptTable relOptTable) {
final RelOptCluster cluster = context.getCluster();
Expand All @@ -227,7 +227,7 @@ public CassandraQueryable(QueryProvider queryProvider, SchemaPlus schema,
super(queryProvider, schema, table, tableName);
}

public Enumerator<T> enumerator() {
@Override public Enumerator<T> enumerator() {
//noinspection unchecked
final Enumerable<T> enumerable =
(Enumerable<T>) getTable().query(getSession());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ protected CassandraTableScan(RelOptCluster cluster, RelTraitSet traitSet,
}
}

public void implement(Implementor implementor) {
@Override public void implement(Implementor implementor) {
implementor.cassandraTable = cassandraTable;
implementor.table = table;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ protected CassandraToEnumerableConverter(
return super.computeSelfCost(planner, mq).multiplyBy(.1);
}

public Result implement(EnumerableRelImplementor implementor, Prefer pref) {
@Override public Result implement(EnumerableRelImplementor implementor, Prefer pref) {
// Generates a call to "query" with the appropriate fields and predicates
final BlockBuilder list = new BlockBuilder();
final CassandraRel.Implementor cassandraImplementor = new CassandraRel.Implementor();
Expand Down
Loading

0 comments on commit 66caa54

Please sign in to comment.