Examples of sizeInBytes()


Examples of com.googlecode.javaewah.EWAHCompressedBitmap.sizeInBytes()

              StoredBitmap other = byAddOrder.get(curr);
              EWAHCompressedBitmap bitmap = other.getBitmap()
                  .xor(item.getBitmap());

              if (bitmap.sizeInBytes()
                  < bestBitmap.sizeInBytes()) {
                bestBitmap = bitmap;
                bestXorOffset = i;
              }
            }
View Full Code Here

Examples of javaewah.EWAHCompressedBitmap.sizeInBytes()

              StoredBitmap other = byAddOrder.get(curr);
              EWAHCompressedBitmap bitmap = other.getBitmap()
                  .xor(item.getBitmap());

              if (bitmap.sizeInBytes()
                  < bestBitmap.sizeInBytes()) {
                bestBitmap = bitmap;
                bestXorOffset = i;
              }
            }
View Full Code Here

Examples of kafka.javaapi.message.ByteBufferMessageSet.sizeInBytes()

        ByteBufferMessageSet messageBuffer = fetchResponse.messageSet(
            kafkaRequest.getTopic(), kafkaRequest.getPartition());
        lastFetchTime = (System.currentTimeMillis() - tempTime);
        log.debug("Time taken to fetch : "
            + (lastFetchTime / 1000) + " seconds");
        log.debug("The size of the ByteBufferMessageSet returned is : " + messageBuffer.sizeInBytes());
        int skipped = 0;
        totalFetchTime += lastFetchTime;
        messageIter = messageBuffer.iterator();
        //boolean flag = false;
        Iterator<MessageAndOffset> messageIter2 = messageBuffer
View Full Code Here

Examples of kafka.message.ByteBufferMessageSet.sizeInBytes()

      MultiFetchResponse response = simpleConsumer.multifetch(list);
      if(response.hasNext())
      {
        ByteBufferMessageSet messages = response.next();
        offset+= messages.validBytes();
        bytesRec.getAndAdd(messages.sizeInBytes());
       
        Iterator<Message> it =  messages.iterator();
        while(it.hasNext())
        {
          it.next();
View Full Code Here

Examples of org.apache.lucene.index.SegmentCommitInfo.sizeInBytes()

                    segment.docCount = reader.reader().numDocs();
                    segment.delDocCount = reader.reader().numDeletedDocs();
                    segment.version = info.info.getVersion();
                    segment.compound = info.info.getUseCompoundFile();
                    try {
                        segment.sizeInBytes = info.sizeInBytes();
                    } catch (IOException e) {
                        logger.trace("failed to get size for [{}]", e, info.info.name);
                    }
                    segment.memoryInBytes = getReaderRamBytesUsed(reader);
                    segments.put(info.info.name, segment);
View Full Code Here

Examples of org.apache.lucene.index.SegmentInfo.sizeInBytes()

                    Segment segment = new Segment(info.name);
                    segment.search = true;
                    segment.docCount = reader.numDocs();
                    segment.delDocCount = reader.numDeletedDocs();
                    try {
                        segment.sizeInBytes = info.sizeInBytes(true);
                    } catch (IOException e) {
                        logger.trace("failed to get size for [{}]", e, info.name);
                    }
                    segments.put(info.name, segment);
                }
View Full Code Here

Examples of org.apache.lucene.index.SegmentInfo.sizeInBytes()

                            segment.delDocCount = indexWriter.numDeletedDocs(info);
                        } catch (IOException e) {
                            logger.trace("failed to get deleted docs for committed segment", e);
                        }
                        try {
                            segment.sizeInBytes = info.sizeInBytes(true);
                        } catch (IOException e) {
                            logger.trace("failed to get size for [{}]", e, info.name);
                        }
                        segments.put(info.name, segment);
                    } else {
View Full Code Here

Examples of org.apache.lucene.search.suggest.Lookup.sizeInBytes()

   */
  public void testStorageNeeds() throws Exception {
    System.err.println("-- RAM consumption");
    for (Class<? extends Lookup> cls : benchmarkClasses) {
      Lookup lookup = buildLookup(cls, dictionaryInput);
      long sizeInBytes = lookup.sizeInBytes();
      System.err.println(
          String.format(Locale.ROOT, "%-15s size[B]:%,13d",
              lookup.getClass().getSimpleName(),
              sizeInBytes));
    }
View Full Code Here

Examples of org.apache.lucene.store.MockDirectoryWrapper.sizeInBytes()

                      Field.Index.ANALYZED));
      writer.addDocument(d);
    }
    writer.close();

    long diskUsage = startDir.sizeInBytes();
    long diskFree = diskUsage + 10;

    IOException err = null;

    boolean done = false;
View Full Code Here

Examples of org.apache.lucene.store.MockDirectoryWrapper.sizeInBytes()

    // enough free disk space and addIndexes should
    // succeed and index should show all documents were
    // added.
   
    // String[] files = startDir.listAll();
    long diskUsage = startDir.sizeInBytes();
   
    long startDiskUsage = 0;
    String[] files = startDir.listAll();
    for(int i=0;i<files.length;i++) {
      startDiskUsage += startDir.fileLength(files[i]);
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.