private static TestShuffleDataContext createDataContext() { TestShuffleDataContext dataContext = new TestShuffleDataContext(10, 5); dataContext.create(); return dataContext; }
private static TestShuffleDataContext createDataContext() { TestShuffleDataContext dataContext = new TestShuffleDataContext(10, 5); dataContext.create(); return dataContext; }
private static TestShuffleDataContext createSomeData() throws IOException { Random rand = new Random(123); TestShuffleDataContext dataContext = new TestShuffleDataContext(10, 5); dataContext.create(); dataContext.insertSortShuffleData(rand.nextInt(1000), rand.nextInt(1000), new byte[][] { "ABC".getBytes(StandardCharsets.UTF_8), "DEF".getBytes(StandardCharsets.UTF_8)}); return dataContext; } }
private static TestShuffleDataContext createSomeData() throws IOException { Random rand = new Random(123); TestShuffleDataContext dataContext = new TestShuffleDataContext(10, 5); dataContext.create(); dataContext.insertSortShuffleData(rand.nextInt(1000), rand.nextInt(1000), new byte[][] { "ABC".getBytes(StandardCharsets.UTF_8), "DEF".getBytes(StandardCharsets.UTF_8)}); return dataContext; } }
private static TestShuffleDataContext createSomeData() throws IOException { Random rand = new Random(123); TestShuffleDataContext dataContext = new TestShuffleDataContext(10, 5); dataContext.create(); dataContext.insertSortShuffleData(rand.nextInt(1000), rand.nextInt(1000), new byte[][] { "ABC".getBytes(StandardCharsets.UTF_8), "DEF".getBytes(StandardCharsets.UTF_8)}); return dataContext; } }
@BeforeClass public static void beforeAll() throws IOException { dataContext = new TestShuffleDataContext(2, 5); dataContext.create(); // Write some sort data. dataContext.insertSortShuffleData(0, 0, new byte[][] { sortBlock0.getBytes(StandardCharsets.UTF_8), sortBlock1.getBytes(StandardCharsets.UTF_8)}); }
@BeforeClass public static void beforeAll() throws IOException { dataContext = new TestShuffleDataContext(2, 5); dataContext.create(); // Write some sort data. dataContext.insertSortShuffleData(0, 0, new byte[][] { sortBlock0.getBytes(StandardCharsets.UTF_8), sortBlock1.getBytes(StandardCharsets.UTF_8)}); }
@BeforeClass public static void beforeAll() throws IOException { dataContext = new TestShuffleDataContext(2, 5); dataContext.create(); // Write some sort data. dataContext.insertSortShuffleData(0, 0, new byte[][] { sortBlock0.getBytes(StandardCharsets.UTF_8), sortBlock1.getBytes(StandardCharsets.UTF_8)}); }
@BeforeClass public static void beforeAll() throws IOException { Random rand = new Random(); for (byte[] block : exec0Blocks) { rand.nextBytes(block); } for (byte[] block: exec1Blocks) { rand.nextBytes(block); } dataContext0 = new TestShuffleDataContext(2, 5); dataContext0.create(); dataContext0.insertSortShuffleData(0, 0, exec0Blocks); conf = new TransportConf("shuffle", MapConfigProvider.EMPTY); handler = new ExternalShuffleBlockHandler(conf, null); TransportContext transportContext = new TransportContext(conf, handler); server = transportContext.createServer(); }
@BeforeClass public static void beforeAll() throws IOException { Random rand = new Random(); for (byte[] block : exec0Blocks) { rand.nextBytes(block); } for (byte[] block: exec1Blocks) { rand.nextBytes(block); } dataContext0 = new TestShuffleDataContext(2, 5); dataContext0.create(); dataContext0.insertSortShuffleData(0, 0, exec0Blocks); conf = new TransportConf("shuffle", MapConfigProvider.EMPTY); handler = new ExternalShuffleBlockHandler(conf, null); TransportContext transportContext = new TransportContext(conf, handler); server = transportContext.createServer(); }
@BeforeClass public static void beforeAll() throws IOException { Random rand = new Random(); for (byte[] block : exec0Blocks) { rand.nextBytes(block); } for (byte[] block: exec1Blocks) { rand.nextBytes(block); } dataContext0 = new TestShuffleDataContext(2, 5); dataContext0.create(); dataContext0.insertSortShuffleData(0, 0, exec0Blocks); conf = new TransportConf("shuffle", MapConfigProvider.EMPTY); handler = new ExternalShuffleBlockHandler(conf, null); TransportContext transportContext = new TransportContext(conf, handler); server = transportContext.createServer(); }