Skip to content

Commit

Permalink
Make tableId a primitive long
Browse files Browse the repository at this point in the history
  • Loading branch information
martint committed Mar 12, 2019
1 parent 88c14ad commit a546ad2
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ public final class MemoryTableHandle
private final String connectorId;
private final String schemaName;
private final String tableName;
private final Long tableId;
private final long tableId;
private final List<MemoryColumnHandle> columnHandles;

public MemoryTableHandle(
String connectorId,
Long tableId,
long tableId,
ConnectorTableMetadata tableMetadata)
{
this(connectorId,
Expand All @@ -52,13 +52,13 @@ public MemoryTableHandle(
@JsonProperty("connectorId") String connectorId,
@JsonProperty("schemaName") String schemaName,
@JsonProperty("tableName") String tableName,
@JsonProperty("tableId") Long tableId,
@JsonProperty("tableId") long tableId,
@JsonProperty("columnHandles") List<MemoryColumnHandle> columnHandles)
{
this.connectorId = requireNonNull(connectorId, "connectorId is null");
this.schemaName = requireNonNull(schemaName, "schemaName is null");
this.tableName = requireNonNull(tableName, "tableName is null");
this.tableId = requireNonNull(tableId, "tableId is null");
this.tableId = tableId;
this.columnHandles = requireNonNull(columnHandles, "columnHandles is null");
}

Expand All @@ -81,7 +81,7 @@ public String getTableName()
}

@JsonProperty
public Long getTableId()
public long getTableId()
{
return tableId;
}
Expand Down

0 comments on commit a546ad2

Please sign in to comment.