/** @return a map containing ObjectType statistics. */ public Map<Integer, ObjectType> getObjectTypes() { HashMap<Integer, ObjectType> map = new HashMap<>(); map.put(Integer.valueOf(OBJ_BLOB), new ObjectType( statistics.objectTypes[OBJ_BLOB])); map.put(Integer.valueOf(OBJ_COMMIT), new ObjectType( statistics.objectTypes[OBJ_COMMIT])); map.put(Integer.valueOf(OBJ_TAG), new ObjectType( statistics.objectTypes[OBJ_TAG])); map.put(Integer.valueOf(OBJ_TREE), new ObjectType( statistics.objectTypes[OBJ_TREE])); return map; } }
/** * Get a map containing ObjectType statistics. * * @return a map containing ObjectType statistics. */ public Map<Integer, ObjectType> getObjectTypes() { HashMap<Integer, ObjectType> map = new HashMap<>(); map.put(Integer.valueOf(OBJ_BLOB), new ObjectType( statistics.objectTypes[OBJ_BLOB])); map.put(Integer.valueOf(OBJ_COMMIT), new ObjectType( statistics.objectTypes[OBJ_COMMIT])); map.put(Integer.valueOf(OBJ_TAG), new ObjectType( statistics.objectTypes[OBJ_TAG])); map.put(Integer.valueOf(OBJ_TREE), new ObjectType( statistics.objectTypes[OBJ_TREE])); return map; } }
/** * Get information about this type of object in the pack. * * @param typeCode * object type code, e.g. OBJ_COMMIT or OBJ_TREE. * @return information about this type of object in the pack. */ public ObjectType byObjectType(int typeCode) { return new ObjectType(statistics.objectTypes[typeCode]); }
/** * @return total number of bytes written. This size includes the * object headers as well as the compressed data. This size * also includes all of {@link #getDeltaBytes()}. */ public long getBytes() { return objectType.getBytes(); }
/** * @return total number of objects output. This total includes the * value of {@link #getDeltas()}. */ public long getObjects() { return objectType.getObjects(); }
/** * @return number of delta bytes written. This size includes the * object headers for the delta objects. */ public long getDeltaBytes() { return objectType.getDeltaBytes(); } }
/** * @return number of objects whose existing representation was * reused in the output. This count includes * {@link #getReusedDeltas()}. */ public long getReusedObjects() { return objectType.getReusedObjects(); }
/** * @return number of deltas whose existing representation was reused * in the output, as their base object was also output or * was assumed present for a thin pack. This may be lower * than the actual number of reused deltas if a cached pack * was reused. */ public long getReusedDeltas() { return objectType.getReusedDeltas(); }
/** * @return total number of deltas output. This may be lower than the * actual number of deltas if a cached pack was reused. */ public long getDeltas() { return objectType.getDeltas(); }
/** * @param typeCode * object type code, e.g. OBJ_COMMIT or OBJ_TREE. * @return information about this type of object in the pack. */ public ObjectType byObjectType(int typeCode) { return new ObjectType(statistics.objectTypes[typeCode]); }
/** * Get a map containing ObjectType statistics. * * @return a map containing ObjectType statistics. */ public Map<Integer, ObjectType> getObjectTypes() { HashMap<Integer, ObjectType> map = new HashMap<>(); map.put(Integer.valueOf(OBJ_BLOB), new ObjectType( statistics.objectTypes[OBJ_BLOB])); map.put(Integer.valueOf(OBJ_COMMIT), new ObjectType( statistics.objectTypes[OBJ_COMMIT])); map.put(Integer.valueOf(OBJ_TAG), new ObjectType( statistics.objectTypes[OBJ_TAG])); map.put(Integer.valueOf(OBJ_TREE), new ObjectType( statistics.objectTypes[OBJ_TREE])); return map; } }
/** * Get information about this type of object in the pack. * * @param typeCode * object type code, e.g. OBJ_COMMIT or OBJ_TREE. * @return information about this type of object in the pack. */ public ObjectType byObjectType(int typeCode) { return new ObjectType(statistics.objectTypes[typeCode]); }