Class SplunkConnectionImpl
java.lang.Object
org.apache.calcite.adapter.splunk.search.SplunkConnectionImpl
- All Implemented Interfaces:
- SplunkConnection
Implementation of 
SplunkConnection based on Splunk's REST API.- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classImplementation ofSearchResultListenerinterface that just counts the results.static classImplementation ofEnumeratorthat parses results from a Splunk REST call.
- 
Constructor SummaryConstructorsConstructorDescriptionSplunkConnectionImpl(String url, String username, String password) SplunkConnectionImpl(URL url, String username, String password) 
- 
Method SummaryModifier and TypeMethodDescriptiongetSearchResultEnumerator(String search, Map<String, String> otherArgs, @Nullable List<String> fieldList) voidgetSearchResults(String search, Map<String, String> otherArgs, @Nullable List<String> fieldList, SearchResultListener srl) static voidstatic voidstatic voidprintUsage(String errorMsg) 
- 
Constructor Details- 
SplunkConnectionImplpublic SplunkConnectionImpl(String url, String username, String password) throws MalformedURLException - Throws:
- MalformedURLException
 
- 
SplunkConnectionImpl
 
- 
- 
Method Details- 
getSearchResultspublic void getSearchResults(String search, Map<String, String> otherArgs, @Nullable List<String> fieldList, SearchResultListener srl) - Specified by:
- getSearchResultsin interface- SplunkConnection
 
- 
getSearchResultEnumeratorpublic Enumerator<Object> getSearchResultEnumerator(String search, Map<String, String> otherArgs, @Nullable List<String> fieldList) - Specified by:
- getSearchResultEnumeratorin interface- SplunkConnection
 
- 
parseArgs
- 
printUsage
- 
main- Throws:
- MalformedURLException
 
 
-