|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractMap<K,V> java.util.HashMap<K,V> java.util.LinkedHashMap<java.lang.String,java.lang.Object> com.splunk.Args com.splunk.JobResultsPreviewArgs
public class JobResultsPreviewArgs
The JobResultsPreviewArgs
class contains arguments for getting job
results previews using the Job.getResultsPreview()
method.
Nested Class Summary | |
---|---|
static class |
JobResultsPreviewArgs.OutputMode
Specifies the format for the returned output. |
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Constructor Summary | |
---|---|
JobResultsPreviewArgs()
Class constructor. |
Method Summary | |
---|---|
void |
setCount(int count)
Sets the maximum number of results to return. |
void |
setFieldList(java.lang.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(java.lang.String search)
Sets the post-processing search to apply to results. |
Methods inherited from class com.splunk.Args |
---|
add, create, create, create, encode, encode, encode, get |
Methods inherited from class java.util.LinkedHashMap |
---|
clear, containsValue, get |
Methods inherited from class java.util.HashMap |
---|
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
---|
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
Constructor Detail |
---|
public JobResultsPreviewArgs()
Method Detail |
---|
public void setCount(int count)
count
- The maximum number of results. To return all available results, specify 0.public void setFieldList(java.lang.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(java.lang.String search)
search
- The post-processing search query.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |