Skip to content

Commit

Permalink
Change how to get the TableDefinition
Browse files Browse the repository at this point in the history
  • Loading branch information
nbauernfeind committed Dec 15, 2023
1 parent 92c1183 commit b934b43
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,10 @@ private static void setConversionFactor(final ConvertedArrowSchema result, final
result.conversionFactors[i] = factor;
}

public static TableDefinition convertTableDefinition(final ExportedTableCreationResponse response) {
return convertArrowSchema(SchemaHelper.flatbufSchema(response)).tableDef;
}

public static ConvertedArrowSchema convertArrowSchema(final ExportedTableCreationResponse response) {
return convertArrowSchema(SchemaHelper.flatbufSchema(response));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@ BarrageSnapshot snapshot(TableSpec tableSpec, BarrageSnapshotOptions options)
BarrageSnapshot snapshot(TableHandle tableHandle, BarrageSnapshotOptions options);
}

/**
* @return the {@link TableDefinition} of the subscribed table
*/
TableDefinition getTableDefinition();

/**
* Request a full snapshot of the data and populate a {@link Table} with the data that is received. The returned
* future will block until all rows for the snapshot table are available.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,6 @@ public void onCompleted() {
}
}

@Override
public TableDefinition getTableDefinition() {
return resultTable.getDefinition();
}

@Override
public Future<Table> entireTable() {
return partialTable(null, null, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@ BarrageSubscription subscribe(TableSpec tableSpec, BarrageSubscriptionOptions op
BarrageSubscription subscribe(TableHandle tableHandle, BarrageSubscriptionOptions options);
}

/**
* @return the {@link TableDefinition} of the subscribed table
*/
TableDefinition getTableDefinition();

/**
* Request a full subscription of the data and populate a {@link Table} with the incrementally updating data that is
* received. The returned future will block until all rows for the subscribed table are available.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,6 @@ public void onCompleted() {
}
}

@Override
public TableDefinition getTableDefinition() {
return resultTable.getDefinition();
}

@Override
public Future<Table> entireTable() {
return partialTable(null, null, false);
Expand Down

0 comments on commit b934b43

Please sign in to comment.