public class SqlFirehoseFactory extends PrefetchSqlFirehoseFactory<String>
| Constructor and Description |
|---|
SqlFirehoseFactory(List<String> sqls,
Long maxCacheCapacityBytes,
Long maxFetchCapacityBytes,
Long prefetchTriggerBytes,
Long fetchTimeout,
boolean foldCase,
SQLFirehoseDatabaseConnector sqlFirehoseDatabaseConnector,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
| Modifier and Type | Method and Description |
|---|---|
protected Collection<String> |
initObjects() |
protected InputStream |
openObjectStream(String sql,
File fileName)
Open an input stream from the given object.
|
connect, getFetchTimeout, getMaxCacheCapacityBytes, getMaxFetchCapacityBytes, getPrefetchTriggerBytesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnect, connectForSampler, isSplittablepublic SqlFirehoseFactory(List<String> sqls, Long maxCacheCapacityBytes, Long maxFetchCapacityBytes, Long prefetchTriggerBytes, Long fetchTimeout, boolean foldCase, SQLFirehoseDatabaseConnector sqlFirehoseDatabaseConnector, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
protected InputStream openObjectStream(String sql, File fileName) throws IOException
PrefetchSqlFirehoseFactoryopenObjectStream in class PrefetchSqlFirehoseFactory<String>sql - an object to be readfileName - file to which the object is fetched intoIOExceptionprotected Collection<String> initObjects()
initObjects in class PrefetchSqlFirehoseFactory<String>Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.