Search in sources :

Example 1 with SupervisorTaskAccessWithNullClient

use of org.apache.druid.indexing.common.task.SupervisorTaskAccessWithNullClient in project druid by druid-io.

the class HashPartitionCachingLocalSegmentAllocatorTest method setup.

@Before
public void setup() throws IOException {
    TaskToolbox toolbox = createToolbox();
    HashPartitionAnalysis partitionAnalysis = new HashPartitionAnalysis(PARTITIONS_SPEC);
    partitionAnalysis.updateBucket(INTERVAL, NUM_PARTITONS);
    target = SegmentAllocators.forNonLinearPartitioning(toolbox, DATASOURCE, TASKID, new UniformGranularitySpec(Granularities.HOUR, Granularities.NONE, ImmutableList.of()), new SupervisorTaskAccessWithNullClient(SUPERVISOR_TASKID), partitionAnalysis);
    sequenceNameFunction = ((CachingLocalSegmentAllocator) target).getSequenceNameFunction();
}
Also used : TaskToolbox(org.apache.druid.indexing.common.TaskToolbox) HashPartitionAnalysis(org.apache.druid.indexing.common.task.batch.partition.HashPartitionAnalysis) UniformGranularitySpec(org.apache.druid.segment.indexing.granularity.UniformGranularitySpec) SupervisorTaskAccessWithNullClient(org.apache.druid.indexing.common.task.SupervisorTaskAccessWithNullClient) Before(org.junit.Before)

Aggregations

TaskToolbox (org.apache.druid.indexing.common.TaskToolbox)1 SupervisorTaskAccessWithNullClient (org.apache.druid.indexing.common.task.SupervisorTaskAccessWithNullClient)1 HashPartitionAnalysis (org.apache.druid.indexing.common.task.batch.partition.HashPartitionAnalysis)1 UniformGranularitySpec (org.apache.druid.segment.indexing.granularity.UniformGranularitySpec)1 Before (org.junit.Before)1