com.splunk
Class Pivot

java.lang.Object
  extended by com.splunk.Pivot

public class Pivot
extends java.lang.Object

A call of pivot on a PivotSpecification object queries splunkd to get the queries corresponding to that pivot, which will be returned as an instance of the Pivot class. Pivot is a container for the various queries for different purposes returned by the server.


Method Summary
 java.lang.String getAcceleratedQuery()
           
 java.lang.String getPivotQuery()
           
 java.lang.String getPrettyQuery()
           
 java.lang.String getQueryForDrilldown()
           
 java.lang.String getRawQuery()
           
 Job run()
           
 Job run(JobArgs args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPivotQuery

public java.lang.String getPivotQuery()
Returns:
a SPL query using the pivot search command to implement this pivot.

getAcceleratedQuery

public java.lang.String getAcceleratedQuery()
Returns:
an SPL query that uses tstats and a tsidx namespace to implement an accelerated version of this pivot. If there is no acceleration available, it returns null.

getQueryForDrilldown

public java.lang.String getQueryForDrilldown()
Returns:
an SPL query implementing this pivot that is appropriate for use when implementing drilldown interfaces.

getPrettyQuery

public java.lang.String getPrettyQuery()
Returns:
a readable version of the SPL query implementing this pivot.

getRawQuery

public java.lang.String getRawQuery()
Returns:
an SPL query implementing this pivot with no reference to the pivot command.

run

public Job run()
Returns:
a Job object running this pivot, accelerated if possible.

run

public Job run(JobArgs args)
Parameters:
args - options for creating a Job
Returns:
a Job object running this pivot, accelerated if possible.