public FileFragment(String tableName, Path uri, long start, long length, String[] hosts, int[] diskIds) { this.set(tableName, uri, start, length, hosts, diskIds); } // Non splittable
public FileFragment(String tableName, Path uri, long start, long length, String[] hosts, int[] diskIds) { this.set(tableName, uri, start, length, hosts, diskIds); } // Non splittable
public FileFragment(String tableName, Path uri, long start, long length, String[] hosts) { this.set(tableName, uri, start, length, hosts, null); }
public FileFragment(String fragmentId, Path path, long start, long length) { this.set(fragmentId, path, start, length, null, null); }
public FileFragment(String tableName, Path uri, long start, long length, String[] hosts) { this.set(tableName, uri, start, length, hosts, null); }
public FileFragment(String fragmentId, Path path, long start, long length) { this.set(fragmentId, path, start, length, null, null); }
public FileFragment(String tableName, Path uri, BlockLocation blockLocation) throws IOException { this.set(tableName, uri, blockLocation.getOffset(), blockLocation.getLength(), blockLocation.getHosts(), null); }
public FileFragment(String tableName, Path uri, BlockLocation blockLocation) throws IOException { this.set(tableName, uri, blockLocation.getOffset(), blockLocation.getLength(), blockLocation.getHosts(), null); }
private void init(FileFragmentProto proto) { int[] diskIds = new int[proto.getDiskIdsList().size()]; int i = 0; for(Integer eachValue: proto.getDiskIdsList()) { diskIds[i++] = eachValue; } this.set(proto.getId(), new Path(proto.getPath()), proto.getStartOffset(), proto.getLength(), proto.getHostsList().toArray(new String[]{}), diskIds); }
private void init(FileFragmentProto proto) { int[] diskIds = new int[proto.getDiskIdsList().size()]; int i = 0; for(Integer eachValue: proto.getDiskIdsList()) { diskIds[i++] = eachValue; } this.set(proto.getId(), new Path(proto.getPath()), proto.getStartOffset(), proto.getLength(), proto.getHostsList().toArray(new String[]{}), diskIds); }