Skip to content

Commit

Permalink
Add javadocs to ColumnHandle and ConnectorTableHandle
Browse files Browse the repository at this point in the history
Engine requires ColumnHandle to handle to implement hashCode and equals.
  • Loading branch information
kokosing committed Jun 2, 2021
1 parent a499398 commit ee0bdb2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,21 @@
*/
package io.trino.spi.connector;

/**
* Represents a handle to a column within a {@link ConnectorTableHandle} returned from the connector to the engine.
* It will be used by the engine whenever given column will be accessed.
* <p>
* ColumnHandle should follow:
* <ul>
* <li>a table cannot have two equal column handles</li>
* <li>column handle is unique within a table scope. Two different tables can have two equal column handles</li>
* </ul>
*/
public interface ColumnHandle
{
@Override
int hashCode();

@Override
boolean equals(Object other);
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
*/
package io.trino.spi.connector;

/**
* Represents a handle to a relation returned from the connector to the engine.
* It will be used by the engine whenever given relation will be accessed.
*/
public interface ConnectorTableHandle
{
}

0 comments on commit ee0bdb2

Please sign in to comment.