class AbstractTableRelation<T extends TableInfo> implements AnalyzedRelation, FieldResolver {

    protected final T tableInfo;
    private final List<Symbol> outputs;
    private final List<Symbol> hiddenOutputs;

    public AbstractTableRelation(T tableInfo, List<Symbol> outputs, List<Symbol> hiddenOutputs) {
        this.tableInfo = tableInfo;
        this.outputs = outputs;
        this.hiddenOutputs = hiddenOutputs;
    }

    public T tableInfo() {
        return tableInfo;
    }

    @NotNull
    @Override
    public List<Symbol> outputs() {
        return outputs;
    }

    @Override
    public List<Symbol> hiddenOutputs() {
        return hiddenOutputs;
    }

    @Nullable
    public Reference getField(ColumnIdent path) {
        return tableInfo.getReadReference(path);
    }

    @Override
    public RelationName relationName() {
        return tableInfo.ident();
    }

    @Override
    public String toString() {
        return getClass().getSimpleName() + '{' + this.tableInfo.ident() + '}';
    }

    @Override
    public boolean equals(Object o) {<FILL_FUNCTION_BODY>}

    @Override
    public int hashCode() {
        return tableInfo.hashCode();
    }

    @Override
    @Nullable
    public Reference resolveField(ScopedSymbol field) {
        if (field.relation().equals(tableInfo.ident())) {
            return getField(field.column());
        }
        return null;
    }
}

        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        AbstractTableRelation<?> that = (AbstractTableRelation<?>) o;

        return tableInfo.equals(that.tableInfo);
    
<no_super_class>