Examples of compact()


Examples of net.jcores.jre.cores.CoreNumber.compact()

                    return $(xx).I(0);
                }
            }).as(CoreNumber.class);

            Assert.assertEquals(Data.sn.length, as.size());
            Assert.assertEquals(Data.sn.length, as.compact().size());

            final long i = Data.sn.length - 1;
            Assert.assertEquals(i * (i + 1) / 2, (long) as.sum());
        }
    }
View Full Code Here

Examples of net.kuujo.copycat.test.TestLog.compact()

    }
    SnapshotEntry snapshot1 = new SnapshotEntry(1, new ClusterConfig()
      .withLocalMember(new Member("foo"))
      .withRemoteMembers(new Member("bar"), new Member("baz")),
      "Hello world!".getBytes());
    log1.compact(800, snapshot1);

    TestCluster cluster = new TestCluster();
    TestNode node1 = new TestNode()
      .withCluster("foo", "bar", "baz")
      .withProtocol(protocol)
View Full Code Here

Examples of net.pms.dlna.DLNAMediaDatabase.compact()

    sb.append("<html><head><title>").append(PropertiesUtil.getProjectProperties().get("project.name")).append(" HTML Console</title></head><body>");

    DLNAMediaDatabase database = PMS.get().getDatabase();
    PmsConfiguration configuration = PMS.getConfiguration();
    if (resource.equals("compact") && configuration.getUseCache()) {
      database.compact();
      sb.append("<p align=center><b>Database compacted!</b></p><br>");
    }

    if (resource.equals("scan") && configuration.getUseCache()) {
      if (!database.isScanLibraryRunning()) {
View Full Code Here

Examples of net.sf.cindy.Buffer.compact()

        buffer.position(100);
        buffer.limit(200);

        Buffer b = buffer.slice();
        b.position(40);
        b.compact();
        assertEquals(b.position(), 60);
        assertEquals(b.limit(), 100);

        for (int i = 0; i < 60; i++) {
            assertEquals(b.get(i), (byte) (140 + i));
View Full Code Here

Examples of org.ajax4jsf.io.ByteBuffer.compact()

        public InputStream getWrittenDataAsStream() throws IOException {
            flushBuffers();

            if (stream != null) {
                ByteBuffer firstBuffer = stream.getFirstBuffer();
                firstBuffer.compact();
                return new FastBufferInputStream(firstBuffer);
            } else {
                return EMPTY_STREAM;
            }
        }
View Full Code Here

Examples of org.ajax4jsf.io.ByteBuffer.compact()

                    // Swallow
                }
            }
        }
        ByteBuffer buffer = fbos.getFirstBuffer();
        buffer.compact();

        return new FastBufferInputStream(buffer);
    }

    protected void write(BufferedImage image, String formatName, ImageOutputStream imageOutputStream) throws IOException {
View Full Code Here

Examples of org.ajax4jsf.io.ByteBuffer.compact()

            }
        }

        ByteBuffer buffer = os.getFirstBuffer();

        buffer.compact();

        return buffer;
    }

    public void initialize(Resource resource) throws IOException {
View Full Code Here

Examples of org.apache.accumulo.core.client.admin.TableOperations.compact()

            fail();
          case 6:
            ops.clone(tableName, "2", true, Collections.<String,String> emptyMap(), Collections.<String> emptySet());
            fail();
          case 7:
            ops.compact(tableName, a, z, true, true);
            fail();
          case 8:
            ops.delete(tableName);
            fail();
          case 9:
View Full Code Here

Examples of org.apache.accumulo.server.master.LiveTServerSet.TServerConnection.compact()

   
    for (TServerInstance tsi : serversToFlush.keySet()) {
      try {
        final TServerConnection server = master.getConnection(tsi);
        if (server != null)
          server.compact(master.getMasterLock(), tableId, startRow, endRow);
      } catch (TException ex) {
        Logger.getLogger(CompactionDriver.class).error(ex.toString());
      }
    }
   
View Full Code Here

Examples of org.apache.accumulo.server.master.state.TServerInstance.compact()

   
    for (TServerInstance tsi : serversToFlush.keySet()) {
      try {
        final TServerConnection server = master.getConnection(tsi);
        if (server != null)
          server.compact(master.getMasterLock(), tableId, startRow, endRow);
      } catch (TException ex) {
        Logger.getLogger(CompactionDriver.class).error(ex.toString());
      }
    }
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.