public class AsyncConfig extends PipesConfigBase
DEFAULT_MAX_FILES_PROCESSED_PER_PROCESS, DEFAULT_MAX_FOR_EMIT_BATCH, DEFAULT_NUM_CLIENTS, DEFAULT_SHUTDOWN_CLIENT_AFTER_MILLS, DEFAULT_STARTUP_TIMEOUT_MILLIS, DEFAULT_TIMEOUT_MILLIS| Constructor and Description |
|---|
AsyncConfig() |
| Modifier and Type | Method and Description |
|---|---|
long |
getEmitMaxEstimatedBytes()
When the emit queue hits this estimated size (sum of
estimated extract sizes), emit the batch.
|
long |
getEmitWithinMillis() |
int |
getNumEmitters()
Number of emitters
|
PipesReporter |
getPipesReporter() |
int |
getQueueSize()
FetchEmitTuple queue size
|
boolean |
isEmitIntermediateResults() |
static AsyncConfig |
load(Path p) |
void |
setEmitIntermediateResults(boolean emitIntermediateResults) |
void |
setEmitMaxEstimatedBytes(long emitMaxEstimatedBytes) |
void |
setEmitWithinMillis(long emitWithinMillis)
If nothing has been emitted in this amount of time
and the
getEmitMaxEstimatedBytes() has not been reached yet,
emit what's in the emit queue. |
void |
setNumEmitters(int numEmitters) |
void |
setPipesReporter(PipesReporter pipesReporter) |
void |
setQueueSize(int queueSize) |
getForkedJvmArgs, getJavaPath, getMaxFilesProcessedPerProcess, getMaxForEmitBatchBytes, getNumClients, getShutdownClientAfterMillis, getSleepOnStartupTimeoutMillis, getStartupTimeoutMillis, getTikaConfig, getTimeoutMillis, setForkedJvmArgs, setJavaPath, setMaxFilesProcessedPerProcess, setMaxForEmitBatchBytes, setNumClients, setShutdownClientAfterMillis, setSleepOnStartupTimeoutMillis, setStartupTimeoutMillis, setTikaConfig, setTikaConfig, setTimeoutMillisbuildComposite, buildComposite, buildSingle, buildSingle, configure, handleSettingspublic static AsyncConfig load(Path p) throws IOException, TikaConfigException
IOExceptionTikaConfigExceptionpublic long getEmitWithinMillis()
public void setEmitWithinMillis(long emitWithinMillis)
getEmitMaxEstimatedBytes() has not been reached yet,
emit what's in the emit queue.emitWithinMillis - public long getEmitMaxEstimatedBytes()
public void setEmitMaxEstimatedBytes(long emitMaxEstimatedBytes)
public void setNumEmitters(int numEmitters)
public int getQueueSize()
public void setQueueSize(int queueSize)
public int getNumEmitters()
public PipesReporter getPipesReporter()
public void setPipesReporter(PipesReporter pipesReporter)
public void setEmitIntermediateResults(boolean emitIntermediateResults)
public boolean isEmitIntermediateResults()
Copyright © 2007–2024 The Apache Software Foundation. All rights reserved.