Skip to content

Commit

Permalink
Remove dead method
Browse files Browse the repository at this point in the history
  • Loading branch information
niloc132 committed May 31, 2024
1 parent 7365e70 commit a2b2cad
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 @@ -1131,23 +1129,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 a2b2cad

Please sign in to comment.