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 Summary
Nested ClassesModifier and TypeClassDescriptionstatic classImplementation ofSearchResultListenerinterface that just counts the results.static classImplementation ofEnumeratorthat parses results from a Splunk REST call. -
Constructor Summary
ConstructorsConstructorDescriptionSplunkConnectionImpl(String url, String username, String password) SplunkConnectionImpl(URL url, String username, String password) -
Method Summary
Modifier 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
-
SplunkConnectionImpl
public SplunkConnectionImpl(String url, String username, String password) throws MalformedURLException - Throws:
MalformedURLException
-
SplunkConnectionImpl
-
-
Method Details
-
getSearchResults
public void getSearchResults(String search, Map<String, String> otherArgs, @Nullable List<String> fieldList, SearchResultListener srl) - Specified by:
getSearchResultsin interfaceSplunkConnection
-
getSearchResultEnumerator
public Enumerator<Object> getSearchResultEnumerator(String search, Map<String, String> otherArgs, @Nullable List<String> fieldList) - Specified by:
getSearchResultEnumeratorin interfaceSplunkConnection
-
parseArgs
-
printUsage
-
main
- Throws:
MalformedURLException
-