Here you can find the source of executeCsvQuery(Connection csv, String csvTableName)
public static ResultSet executeCsvQuery(Connection csv, String csvTableName) throws SQLException
//package com.java2s; /*/* w w w . ja va2s . c o m*/ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; public class Main { /** * Executes a query on provided CSV connection. * <p> * The supplied table name is only used for the test identification. */ public static ResultSet executeCsvQuery(Connection csv, String csvTableName) throws SQLException { ResultSet expected = csv.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY) .executeQuery("SELECT * FROM " + csvTableName); // trigger data loading for type inference expected.beforeFirst(); return expected; } }