Package com.datasift.client.historics

Examples of com.datasift.client.historics.HistoricsQuery$Chunk


        assertTrue(delete.isSuccessful());
    }

    @Test
    public void testIfUserCanGetDetailsForPlaybackQuery() {
        HistoricsQuery get = datasift.historics().get(id).sync();
        assertTrue(get.isSuccessful());

        assertEquals(get.getId(), id);
        assertEquals(get.getDefinitationId(), definition_id);
        assertEquals(get.getName(), name);
        assertEquals(get.getStart(), start.getMillis());
        assertEquals(get.getEnd(), end.getMillis());
        assertEquals(get.getCreatedAt(), created_at);
        assertEquals(get.getStatus(), status_g);
        assertEquals(get.getProgress(), progress, 0.00000001);
        assertEquals(get.getFeed(), feed);
        assertEquals(get.getSources(), source_g);
        assertEquals(get.getSample(), sample, 0.00000001);
        for (HistoricsQuery.Chunk chunk : get.getChunks()) {
            assertEquals(chunk.getEstimatedCompletion(), estimatedCompletion);
            assertEquals(chunk.getEndTime(), end.getMillis());
            assertEquals(chunk.getStartTime(), start.getMillis());
            assertEquals(chunk.getProgress(), progress, 0.00000001);
            assertEquals(chunk.getStatus(), status_g);
View Full Code Here


    CraftWorld craftWorld = (CraftWorld)world;
    WorldServer worldServer = craftWorld.getHandle();
   
    BiomeBase bb = BiomeBase.biomes[id];
    if (craftWorld.loadChunk(x >> 4, z >> 4, false)) {
      Chunk chunk = worldServer.getChunkAtWorldCoords(x, z);

      if (chunk != null) {
        byte[] biomevals = chunk.m();
        biomevals[((z & 0xF) << 4) | (x & 0xF)] = (byte)bb.id;
      }
    }
  }
View Full Code Here

TOP

Related Classes of com.datasift.client.historics.HistoricsQuery$Chunk

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.