public class FileFragment extends Object implements Fragment, Comparable<FileFragment>, Cloneable
Constructor and Description |
---|
FileFragment(com.google.protobuf.ByteString raw) |
FileFragment(CatalogProtos.FileFragmentProto proto) |
FileFragment(String tableName,
org.apache.hadoop.fs.Path uri,
org.apache.hadoop.fs.BlockLocation blockLocation) |
FileFragment(String fragmentId,
org.apache.hadoop.fs.Path path,
long start,
long length) |
FileFragment(String tableName,
org.apache.hadoop.fs.Path uri,
long start,
long length,
String[] hosts) |
FileFragment(String tableName,
org.apache.hadoop.fs.Path uri,
long start,
long length,
String[] hosts,
int[] diskIds) |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
int |
compareTo(FileFragment t)
The offset range of tablets MUST NOT be overlapped.
|
boolean |
equals(Object o) |
int[] |
getDiskIds()
Get the list of Disk Ids
Unknown disk is -1.
|
Long |
getEndKey() |
String[] |
getHosts()
Get the list of hosts (hostname) hosting this block
|
org.apache.hadoop.fs.Path |
getPath() |
CatalogProtos.FragmentProto |
getProto() |
Long |
getStartKey() |
String |
getTableName() |
int |
hashCode() |
void |
setDiskIds(int[] diskIds) |
void |
setPath(org.apache.hadoop.fs.Path path) |
String |
toString() |
public FileFragment(com.google.protobuf.ByteString raw) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public FileFragment(String tableName, org.apache.hadoop.fs.Path uri, org.apache.hadoop.fs.BlockLocation blockLocation) throws IOException
IOException
public FileFragment(String tableName, org.apache.hadoop.fs.Path uri, long start, long length, String[] hosts, int[] diskIds)
public FileFragment(String tableName, org.apache.hadoop.fs.Path uri, long start, long length, String[] hosts)
public FileFragment(String fragmentId, org.apache.hadoop.fs.Path path, long start, long length)
public FileFragment(CatalogProtos.FileFragmentProto proto)
public String[] getHosts()
public int[] getDiskIds()
public void setDiskIds(int[] diskIds)
public String getTableName()
getTableName
in interface Fragment
public org.apache.hadoop.fs.Path getPath()
public void setPath(org.apache.hadoop.fs.Path path)
public Long getStartKey()
public Long getEndKey()
public int compareTo(FileFragment t)
compareTo
in interface Comparable<FileFragment>
t
- public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public CatalogProtos.FragmentProto getProto()
getProto
in interface ProtoObject<CatalogProtos.FragmentProto>
getProto
in interface Fragment
Copyright © 2014 Apache Software Foundation. All Rights Reserved.