From 709d96623c7c0bbe9ea0a0cfe05323af6a4bc05e Mon Sep 17 00:00:00 2001 From: Colin Alworth Date: Tue, 18 Jun 2024 15:44:05 -0500 Subject: [PATCH] Remove unused BitSet param --- .../extensions/barrage/util/BarrageStreamReader.java | 1 - .../deephaven/extensions/barrage/util/StreamReader.java | 2 -- .../io/deephaven/client/impl/BarrageSnapshotImpl.java | 8 +------- .../io/deephaven/client/impl/BarrageSubscriptionImpl.java | 2 +- 4 files changed, 2 insertions(+), 11 deletions(-) diff --git a/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/util/BarrageStreamReader.java b/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/util/BarrageStreamReader.java index 3d749adee21..d535ffd0254 100644 --- a/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/util/BarrageStreamReader.java +++ b/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/util/BarrageStreamReader.java @@ -59,7 +59,6 @@ public BarrageStreamReader(final LongConsumer deserializeTmConsumer) { @Override public BarrageMessage safelyParseFrom(final StreamReaderOptions options, - final BitSet expectedColumns, final ChunkType[] columnChunkTypes, final Class[] columnTypes, final Class[] componentTypes, diff --git a/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/util/StreamReader.java b/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/util/StreamReader.java index 93b35af0863..be389e894b6 100644 --- a/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/util/StreamReader.java +++ b/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/util/StreamReader.java @@ -18,7 +18,6 @@ public interface StreamReader { * Converts an InputStream to a BarrageMessage in the context of the provided parameters. * * @param options the options related to parsing this message - * @param expectedColumns the columns expected to appear in the stream, null implies all columns * @param columnChunkTypes the types to use for each column chunk * @param columnTypes the actual type for the column * @param componentTypes the actual component type for the column @@ -26,7 +25,6 @@ public interface StreamReader { * @return a BarrageMessage filled out by the stream's payload */ BarrageMessage safelyParseFrom(final StreamReaderOptions options, - BitSet expectedColumns, ChunkType[] columnChunkTypes, Class[] columnTypes, Class[] componentTypes, diff --git a/java-client/barrage/src/main/java/io/deephaven/client/impl/BarrageSnapshotImpl.java b/java-client/barrage/src/main/java/io/deephaven/client/impl/BarrageSnapshotImpl.java index 6310f2cab1f..e0e0b1f7741 100644 --- a/java-client/barrage/src/main/java/io/deephaven/client/impl/BarrageSnapshotImpl.java +++ b/java-client/barrage/src/main/java/io/deephaven/client/impl/BarrageSnapshotImpl.java @@ -63,8 +63,6 @@ public class BarrageSnapshotImpl extends ReferenceCountedLivenessNode implements private final BarrageTable resultTable; private final CompletableFuture future; - private volatile BitSet expectedColumns; - private volatile int connected = 1; private static final AtomicIntegerFieldUpdater CONNECTED_UPDATER = AtomicIntegerFieldUpdater.newUpdater(BarrageSnapshotImpl.class, "connected"); @@ -209,9 +207,6 @@ public Future
partialTable( alreadyUsed = true; } - // store this for streamreader parser - expectedColumns = columns; - // Send the snapshot request: observer.onNext(FlightData.newBuilder() .setAppMetadata(ByteStringAccess.wrap(makeRequestInternal(viewport, columns, reverseViewport, options))) @@ -355,8 +350,7 @@ public InputStream stream(final BarrageMessage value) { @Override public BarrageMessage parse(final InputStream stream) { - return streamReader.safelyParseFrom(options, expectedColumns, columnChunkTypes, columnTypes, componentTypes, - stream); + return streamReader.safelyParseFrom(options, columnChunkTypes, columnTypes, componentTypes, stream); } } diff --git a/java-client/barrage/src/main/java/io/deephaven/client/impl/BarrageSubscriptionImpl.java b/java-client/barrage/src/main/java/io/deephaven/client/impl/BarrageSubscriptionImpl.java index 28d844780c4..0ddf9b9e87b 100644 --- a/java-client/barrage/src/main/java/io/deephaven/client/impl/BarrageSubscriptionImpl.java +++ b/java-client/barrage/src/main/java/io/deephaven/client/impl/BarrageSubscriptionImpl.java @@ -429,7 +429,7 @@ public InputStream stream(final BarrageMessage value) { @Override public BarrageMessage parse(final InputStream stream) { - return streamReader.safelyParseFrom(options, null, columnChunkTypes, columnTypes, componentTypes, stream); + return streamReader.safelyParseFrom(options, columnChunkTypes, columnTypes, componentTypes, stream); } }