Class TabletMetadata
- java.lang.Object
-
- org.apache.accumulo.core.metadata.schema.TabletMetadata
-
public class TabletMetadata extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TabletMetadata.ColumnType
static class
TabletMetadata.Location
static class
TabletMetadata.LocationType
-
Constructor Summary
Constructors Constructor Description TabletMetadata()
-
Method Summary
-
-
-
Method Detail
-
getTableId
public TableId getTableId()
-
getExtent
public KeyExtent getExtent()
-
getPrevEndRow
public org.apache.hadoop.io.Text getPrevEndRow()
-
sawPrevEndRow
public boolean sawPrevEndRow()
-
getOldPrevEndRow
public org.apache.hadoop.io.Text getOldPrevEndRow()
-
sawOldPrevEndRow
public boolean sawOldPrevEndRow()
-
getEndRow
public org.apache.hadoop.io.Text getEndRow()
-
getLocation
public TabletMetadata.Location getLocation()
-
hasCurrent
public boolean hasCurrent()
-
getLoaded
public Map<TabletFile,Long> getLoaded()
-
getLast
public TabletMetadata.Location getLast()
-
getSuspend
public SuspendingTServer getSuspend()
-
getFiles
public Collection<StoredTabletFile> getFiles()
-
getFilesMap
public Map<StoredTabletFile,DataFileValue> getFilesMap()
-
getLogs
public Collection<LogEntry> getLogs()
-
getScans
public List<StoredTabletFile> getScans()
-
getDirName
public String getDirName()
-
getTime
public MetadataTime getTime()
-
getCloned
public String getCloned()
-
getFlushId
public OptionalLong getFlushId()
-
getCompactId
public OptionalLong getCompactId()
-
getSplitRatio
public Double getSplitRatio()
-
hasChopped
public boolean hasChopped()
-
getTabletState
public TabletState getTabletState(Set<TServerInstance> liveTServers)
-
getExternalCompactions
public Map<ExternalCompactionId,ExternalCompactionMetadata> getExternalCompactions()
-
convertRow
public static <E extends Map.Entry<Key,Value>> TabletMetadata convertRow(Iterator<E> rowIter, EnumSet<TabletMetadata.ColumnType> fetchedColumns, boolean buildKeyValueMap)
-
getLiveTServers
public static Set<TServerInstance> getLiveTServers(ClientContext context)
Get the tservers that are live from ZK. Live servers will have a valid ZooLock. This method was pulled from org.apache.accumulo.server.manager.LiveTServerSet
-
-