return result;
}
private List<FileChunkEntity> getByFile(Long fileId) {
Query q = newQuery();
q.addFilter("fileId", EQUAL, fileId);
List<FileChunkEntity> result = selectNotCache(q);
Collections.sort(result, new Comparator<FileChunkEntity>() {
@Override
public int compare(FileChunkEntity o1, FileChunkEntity o2) {
if (o1.getIndex() > o2.getIndex()) {