public class IngestFilesTester extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
IngestFilesTester.FileFormat |
static class |
IngestFilesTester.IngestPushFilesRequest |
protected static class |
IngestFilesTester.SecurityState |
| Modifier and Type | Field and Description |
|---|---|
protected Connection |
connection |
protected String |
DATABASE |
protected String |
fqStageName |
protected String |
fqTableName |
protected org.apache.http.impl.client.CloseableHttpClient |
httpClient |
protected String |
INGEST_TBL |
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
protected String |
RND_PAD |
protected String |
SCHEMA |
protected String |
STAGE_NAME |
protected Path |
tmpIngestStage |
| Modifier | Constructor and Description |
|---|---|
protected |
IngestFilesTester(Connection connection,
org.apache.http.impl.client.CloseableHttpClient httpClient) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkWithCopy(String truthTable) |
static org.apache.http.impl.client.CloseableHttpClient |
createHttpClient() |
Path |
createTempCsv(int rows) |
Collection<Path> |
createTempFiles(int num_files,
int max_rows,
IngestFilesTester.FileFormat fileFormat) |
protected Path |
createTempStageDir() |
static void |
disableIngestService() |
static void |
disableIngestServiceOld() |
int |
doQuery(String query) |
protected static void |
enableEncryption(boolean enabled) |
static void |
enableIngestForAccount(boolean enabled) |
static void |
enableIngestService() |
static void |
enableIngestServiceOld() |
static void |
enableKeyPairAuthn() |
static void |
main(String[] args) |
protected static String |
quote(String str) |
protected static void |
say(String arg) |
protected final String RND_PAD
protected final String SCHEMA
protected final String DATABASE
protected final String INGEST_TBL
protected final String STAGE_NAME
protected final String fqTableName
protected final String fqStageName
protected final Connection connection
protected final org.apache.http.impl.client.CloseableHttpClient httpClient
protected final Path tmpIngestStage
protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper
protected IngestFilesTester(Connection connection, org.apache.http.impl.client.CloseableHttpClient httpClient)
protected Path createTempStageDir()
public static org.apache.http.impl.client.CloseableHttpClient createHttpClient()
public static void enableIngestServiceOld()
throws SQLException,
IOException
SQLExceptionIOExceptionpublic static void enableIngestService()
throws SQLException,
IOException
SQLExceptionIOExceptionpublic static void disableIngestService()
throws SQLException,
IOException
SQLExceptionIOExceptionpublic static void enableKeyPairAuthn()
throws SQLException,
IOException
SQLExceptionIOExceptionprotected static void enableEncryption(boolean enabled)
throws SQLException,
IOException
SQLExceptionIOExceptionpublic static void enableIngestForAccount(boolean enabled)
throws SQLException,
IOException
SQLExceptionIOExceptionpublic static void disableIngestServiceOld()
throws SQLException,
IOException
SQLExceptionIOExceptionpublic boolean checkWithCopy(String truthTable) throws SQLException
SQLExceptionpublic Collection<Path> createTempFiles(int num_files, int max_rows, IngestFilesTester.FileFormat fileFormat) throws IOException
IOExceptionpublic Path createTempCsv(int rows) throws IOException
IOExceptionpublic int doQuery(String query) throws SQLException
SQLExceptionprotected static void say(String arg)
Copyright © 2017. All rights reserved.