public class JobResultsPreviewArgs extends Args
JobResultsPreviewArgs
class contains arguments for getting job
results previews using the Job.getResultsPreview()
method.Modifier and Type | Class and Description |
---|---|
static class |
JobResultsPreviewArgs.OutputMode
Specifies the format for the returned output.
|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
JobResultsPreviewArgs()
Class constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
setCount(int count)
Sets the maximum number of results to return.
|
void |
setFieldList(String[] fieldList)
Sets a list of fields to return for the event set.
|
void |
setOffset(int offset)
Specifies the index of the first result (inclusive) from which to begin returning data.
|
void |
setOutputMode(JobResultsPreviewArgs.OutputMode outputMode)
Sets the format of the output.
|
void |
setSearch(String search)
Sets the post-processing search to apply to results.
|
add, create, create, create, encode, encode, encode, get
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
public void setCount(int count)
count
- The maximum number of results. To return all available results, specify 0.public void setFieldList(String[] fieldList)
fieldList
- A list of fields.public void setOffset(int offset)
In Splunk 4.1+, negative offsets are allowed and are added to the count to compute the absolute offset (for example, offset=-1 is the last available offset). Offsets in the results are always absolute and never negative. The default value is 0.
offset
- The index of the first result to return.public void setOutputMode(JobResultsPreviewArgs.OutputMode outputMode)
outputMode
- The output format.public void setSearch(String search)
search
- The post-processing search query.Copyright © 2022 Splunk, Inc.. All rights reserved.