72737475767778
return new SparseVectors($vectors, empty); } void initializeVector(int index, VectorSource source) { vectors[index] = new CompressedByteVector(source); }
99100101102103104105
ArrayUtils.swapObjects(vectors, i, j); } private ByteVector initCompressedVector() { return new CompressedByteVector(empty.length()); }
104105106107108109110
return new CompressedByteVector(empty.length()); } private ByteVector initCompressedVector(byte[] values, int[] indices, int cardinality) { return new CompressedByteVector(empty.length(), cardinality, values, indices); }
55565758596061
@Override public ByteVector createVector() { return new CompressedByteVector(); }
61626364656667
} @Override public ByteVector createVector(int length) { return new CompressedByteVector(length); }
67686970717273
} @Override public ByteVector createVector(byte[] array) { return new CompressedByteVector(array); }
73747576777879
} @Override public ByteVector createVector(ByteVector vector) { return new CompressedByteVector(vector); }
79808182838485
} @Override public ByteVector createVector(VectorSource source) { return new CompressedByteVector(source); }
93949596979899
for (int i = 0; i < length; i++) { indices[i] = i; values[i] = value; } return new CompressedByteVector(length, length, values, indices); }
111112113114115116117
indices[i] = random.nextInt(length); } Arrays.sort(indices); return new CompressedByteVector(length, cardinality, values, indices); }