@Override public long size(String path, ObjectId id) throws IOException { try { return reader.getObjectSize(id, Constants.OBJ_BLOB); } catch (MissingObjectException ignore) { return 0; } }
@Override public boolean next() throws MissingObjectException, IOException { if (idItr.hasNext()) { cur = idItr.next(); sz = getObjectSize(cur, OBJ_ANY); return true; } else { return false; } }
@Override public long getObjectSize(AnyObjectId objectId, int typeHint) throws MissingObjectException, IncorrectObjectTypeException, IOException { return delegate().getObjectSize(objectId, typeHint); }
@Override public <T extends ObjectId> AsyncObjectSizeQueue<T> getObjectSize( Iterable<T> objectIds, boolean reportMissing) { return delegate().getObjectSize(objectIds, reportMissing); }
private void filterAndAddObject(@NonNull AnyObjectId src, int type, int pathHashCode, @NonNull Set<? extends AnyObjectId> want) throws IOException { // Check if this object needs to be rejected, doing the cheaper // checks first. boolean reject = filterBlobLimit >= 0 && type == OBJ_BLOB && !want.contains(src) && reader.getObjectSize(src, OBJ_BLOB) > filterBlobLimit; if (!reject) { addObject(src, type, pathHashCode); } }
@Override public long size(String path, ObjectId id) throws IOException { try { return reader.getObjectSize(id, Constants.OBJ_BLOB); } catch (MissingObjectException ignore) { return 0; } }
@Override public long size(String path, ObjectId id) throws IOException { try { return reader.getObjectSize(id, Constants.OBJ_BLOB); } catch (MissingObjectException ignore) { return 0; } }
public static long getBlobSize(AnyObjectId id, ObjectReader reader) throws IOException { return reader.getObjectSize(id, OBJ_BLOB); }
public static long getBlobSize(AnyObjectId id, ObjectReader reader) throws IOException { return reader.getObjectSize(id, OBJ_BLOB); }
AsyncObjectSizeQueue<ObjectToPack> sizeQueue = reader.getObjectSize( Arrays.<ObjectToPack> asList(list).subList(0, cnt), false); try {
public boolean next() throws MissingObjectException, IOException { if (idItr.hasNext()) { cur = idItr.next(); sz = getObjectSize(cur, OBJ_ANY); return true; } else { return false; } }
@Override public boolean next() throws MissingObjectException, IOException { if (idItr.hasNext()) { cur = idItr.next(); sz = getObjectSize(cur, OBJ_ANY); return true; } else { return false; } }
@Override public long getObjectSize(AnyObjectId objectId, int typeHint) throws MissingObjectException, IncorrectObjectTypeException, IOException { return delegate().getObjectSize(objectId, typeHint); }
@Override public <T extends ObjectId> AsyncObjectSizeQueue<T> getObjectSize( Iterable<T> objectIds, boolean reportMissing) { return delegate().getObjectSize(objectIds, reportMissing); }
@Override public <T extends ObjectId> AsyncObjectSizeQueue<T> getObjectSize( Iterable<T> objectIds, boolean reportMissing) { return delegate().getObjectSize(objectIds, reportMissing); }
@Override public long getObjectSize(AnyObjectId objectId, int typeHint) throws MissingObjectException, IncorrectObjectTypeException, IOException { return delegate().getObjectSize(objectId, typeHint); }
private static long getObjectSize(ObjectReader r, RevObject obj) throws IOException { return r.getObjectSize(obj.getId(), Constants.OBJ_BLOB); }
@Override public long getSize(@NotNull GitObject<? extends ObjectId> objectId) throws IOException { final ObjectReader reader = objectId.getRepo().newObjectReader(); return reader.getObjectSize(objectId.getObject(), Constants.OBJ_BLOB) + LINK_PREFIX.length; }
@Override public long getSize(@NotNull GitObject<? extends ObjectId> objectId) throws IOException { final ObjectReader reader = objectId.getRepo().newObjectReader(); return reader.getObjectSize(objectId.getObject(), Constants.OBJ_BLOB); }
private void filterAndAddObject(@NonNull AnyObjectId src, int type, int pathHashCode, @NonNull Set<? extends AnyObjectId> want) throws IOException { // Check if this object needs to be rejected, doing the cheaper // checks first. boolean reject = filterBlobLimit >= 0 && type == OBJ_BLOB && !want.contains(src) && reader.getObjectSize(src, OBJ_BLOB) > filterBlobLimit; if (!reject) { addObject(src, type, pathHashCode); } }