Package org.apache.druid.client.indexing
Interface SamplerSpec
-
public interface SamplerSpec
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Set<ResourceAction>getInputSourceResources()default StringgetType()Returns the type of this sampler type.SamplerResponsesample()
-
-
-
Method Detail
-
sample
SamplerResponse sample()
-
getType
@Nullable default String getType()
Returns the type of this sampler type.- Returns:
- sampler spec type label
-
getInputSourceResources
@Nonnull default Set<ResourceAction> getInputSourceResources() throws org.apache.druid.java.util.common.UOE
- Returns:
- The types of
InputSourcethat the sampler spec uses. Empty set is returned if the sampler spec does not use any. Users can be given permission to access particular types of input sources but not others, using theAuthConfig.enableInputSourceSecurityconfig. - Throws:
org.apache.druid.java.util.common.UOE
-
-