嘿,我有带有这些标头的csv格式的数据
url,title,last_poster,total_posts,last_post_time,thread_starter
我正在使用SQL查询CSV文件(http://harelba.github.io/q/)
我想列出前10个thread_starters,查询是什么样的?
这里是数据CSV File
答案 0 :(得分:1)
您可以执行以下查询:
TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
KeyStore truststore = createTrustStore(truststorePath, truststorePassword);
trustManagerFactory.init(truststore);
// Get hold of the default trust manager
X509TrustManager x509Tm = null;
for (TrustManager tm : trustManagerFactory.getTrustManagers()) {
if (tm instanceof X509TrustManager) {
x509Tm = (X509TrustManager) tm;
break;
}
}
final X509TrustManager finalTm = x509Tm;
X509TrustManager customTm = new X509TrustManager() {
@Override
public X509Certificate[] getAcceptedIssuers() {
return finalTm.getAcceptedIssuers();
}
@Override
public void checkServerTrusted(X509Certificate[] chain,String authType) throws CertificateException {
finalTm.checkServerTrusted(chain, authType);