public SnapshotCopy(byte[] name, PermissionStatus permissions, AclFeature aclFeature, long modificationTime, long accessTime, short replication, long preferredBlockSize, byte storagePolicyID, XAttrFeature xAttrsFeature) { super(name, permissions, aclFeature, modificationTime, accessTime, xAttrsFeature); header = HeaderFormat.toLong(preferredBlockSize, replication, storagePolicyID); }
public SnapshotCopy(byte[] name, PermissionStatus permissions, AclFeature aclFeature, long modificationTime, long accessTime, short replication, long preferredBlockSize, byte storagePolicyID, XAttrFeature xAttrsFeature, boolean isStriped) { super(name, permissions, aclFeature, modificationTime, accessTime, xAttrsFeature); header = HeaderFormat.toLong(preferredBlockSize, replication, isStriped, storagePolicyID); }
public SnapshotCopy(byte[] name, PermissionStatus permissions, long modificationTime, long accessTime, short replication, long preferredBlockSize) { super(name, permissions, modificationTime, accessTime); final long h = HeaderFormat.combineReplication(0L, replication); header = HeaderFormat.combinePreferredBlockSize(h, preferredBlockSize); }
public SnapshotCopy(byte[] name, PermissionStatus permissions, AclFeature aclFeature, long modificationTime, long accessTime, short replication, long preferredBlockSize) { super(name, permissions, aclFeature, modificationTime, accessTime); final long h = HeaderFormat.combineReplication(0L, replication); header = HeaderFormat.combinePreferredBlockSize(h, preferredBlockSize); }
@Override public short getFileReplication() { return HeaderFormat.getReplication(header); }
@Override public long getPreferredBlockSize() { return HeaderFormat.getPreferredBlockSize(header); }
@Override public byte getLocalStoragePolicyID() { return HeaderFormat.getStoragePolicyID(header); }
@Override public boolean isStriped() { return HeaderFormat.isStriped(header); }