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.
|
FiniteFirehoseFactory<InputRowParser<Map<String,Object>>,String> |
withSplit(InputSplit<String> split) |
connect, getFetchTimeout, getMaxCacheCapacityBytes, getMaxFetchCapacityBytes, getNumSplits, getObjects, getPrefetchTriggerBytes, getSplits, initializeObjectsIfNeededclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisSplittableconnect, connectForSamplerpublic 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>public FiniteFirehoseFactory<InputRowParser<Map<String,Object>>,String> withSplit(InputSplit<String> split)
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.