Package alluxio.wire
Class FileBlockInfo
- java.lang.Object
-
- alluxio.wire.FileBlockInfo
-
- All Implemented Interfaces:
java.io.Serializable
@PublicApi @NotThreadSafe public final class FileBlockInfo extends java.lang.Object implements java.io.Serializable
The file block information.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FileBlockInfo()
Creates a new instance ofFileBlockInfo
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
BlockInfo
getBlockInfo()
long
getOffset()
java.util.List<java.lang.String>
getUfsLocations()
int
hashCode()
FileBlockInfo
setBlockInfo(BlockInfo blockInfo)
FileBlockInfo
setOffset(long offset)
FileBlockInfo
setUfsLocations(java.util.List<java.lang.String> ufsLocations)
java.lang.String
toString()
-
-
-
Constructor Detail
-
FileBlockInfo
public FileBlockInfo()
Creates a new instance ofFileBlockInfo
.
-
-
Method Detail
-
getBlockInfo
public BlockInfo getBlockInfo()
- Returns:
- the block info
-
getOffset
public long getOffset()
- Returns:
- the offset
-
getUfsLocations
public java.util.List<java.lang.String> getUfsLocations()
- Returns:
- the UFS locations
-
setBlockInfo
public FileBlockInfo setBlockInfo(BlockInfo blockInfo)
- Parameters:
blockInfo
- the block info to use- Returns:
- the file block information
-
setOffset
public FileBlockInfo setOffset(long offset)
- Parameters:
offset
- the offset to use- Returns:
- the file block information
-
setUfsLocations
public FileBlockInfo setUfsLocations(java.util.List<java.lang.String> ufsLocations)
- Parameters:
ufsLocations
- the UFS locations to use- Returns:
- the file block information
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-