This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ArrayUtils { | |
public static int[][] removeRow(int[][] array, int row) { | |
if (array == null || array.length == 0 || row < 0 || row >= array[0].length) { | |
return array; | |
} | |
int[][] newArray = new int[array.length][array[0].length - 1]; | |
for (int i = 0; i < array.length; i++) { | |
for (int j = 0, k = 0; j < array[0].length; j++) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.jooq.* | |
import org.jooq.impl.DSL | |
import java.sql.SQLFeatureNotSupportedException | |
import java.sql.Types | |
@Suppress("UNCHECKED_CAST") | |
class PGVectorBinding : Binding<Any, List<Double>> { | |
override fun converter(): Converter<Any, List<Double>> { | |
return object : Converter<Any, List<Double>> { |