Skip to content

Commit

Permalink
Remove dead method
Browse files Browse the repository at this point in the history
  • Loading branch information
niloc132 committed Jun 3, 2024
1 parent 59b8d8b commit 48b7f89
Showing 1 changed file with 1 addition and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
import io.deephaven.util.datastructures.SizeException;
import io.deephaven.util.mutable.MutableInt;
import io.deephaven.util.mutable.MutableLong;
import io.grpc.Drainable;
import org.apache.arrow.flatbuf.Buffer;
import org.apache.arrow.flatbuf.FieldNode;
import org.apache.arrow.flatbuf.RecordBatch;
Expand All @@ -47,7 +46,6 @@
import org.jetbrains.annotations.Nullable;

import java.io.IOException;
import java.io.OutputStream;
import java.nio.ByteBuffer;
import java.util.*;
import java.util.function.Consumer;
Expand Down Expand Up @@ -1122,23 +1120,12 @@ protected int addToFlatBuffer(final RowSet viewport, final FlatBufferBuilder bui
public static class BitSetGenerator extends ByteArrayGenerator {
public final BitSet original;

public BitSetGenerator(final BitSet bitset) throws IOException {
public BitSetGenerator(final BitSet bitset) {
this.original = bitset == null ? new BitSet() : bitset;
this.raw = original.toByteArray();
final int nBits = original.previousSetBit(Integer.MAX_VALUE - 1) + 1;
this.len = (int) ((long) nBits + 7) / 8;
}

public int addToFlatBuffer(final BitSet mine, final FlatBufferBuilder builder) throws IOException {
if (mine.equals(original)) {
return addToFlatBuffer(builder);
}

final byte[] nraw = mine.toByteArray();
final int nBits = mine.previousSetBit(Integer.MAX_VALUE - 1) + 1;
final int nlen = (int) ((long) nBits + 7) / 8;
return builder.createByteVector(nraw, 0, nlen);
}
}

public static class RowSetShiftDataGenerator extends ByteArrayGenerator {
Expand Down

0 comments on commit 48b7f89

Please sign in to comment.