org.apache.hadoop.hbase
Interface TableDescriptors

All Known Implementing Classes:
FSTableDescriptors

@InterfaceAudience.Private
public interface TableDescriptors

Get, remove and modify table descriptors. Used by servers to host descriptors.


Method Summary
 void add(HTableDescriptor htd)
          Add or update descriptor
 HTableDescriptor get(TableName tableName)
           
 Map<String,HTableDescriptor> getAll()
          Get Map of all HTableDescriptors.
 Map<String,HTableDescriptor> getByNamespace(String name)
          Get Map of all NamespaceDescriptors for a given namespace.
 HTableDescriptor remove(TableName tablename)
           
 void setCacheOff()
          Disables the tabledescriptor cache
 void setCacheOn()
          Enables the tabledescriptor cache
 

Method Detail

get

HTableDescriptor get(TableName tableName)
                     throws IOException
Parameters:
tableName -
Returns:
HTableDescriptor for tablename
Throws:
IOException

getByNamespace

Map<String,HTableDescriptor> getByNamespace(String name)
                                            throws IOException
Get Map of all NamespaceDescriptors for a given namespace.

Returns:
Map of all descriptors.
Throws:
IOException

getAll

Map<String,HTableDescriptor> getAll()
                                    throws IOException
Get Map of all HTableDescriptors. Populates the descriptor cache as a side effect.

Returns:
Map of all descriptors.
Throws:
IOException

add

void add(HTableDescriptor htd)
         throws IOException
Add or update descriptor

Parameters:
htd - Descriptor to set into TableDescriptors
Throws:
IOException

remove

HTableDescriptor remove(TableName tablename)
                        throws IOException
Parameters:
tablename -
Returns:
Instance of table descriptor or null if none found.
Throws:
IOException

setCacheOn

void setCacheOn()
                throws IOException
Enables the tabledescriptor cache

Throws:
IOException

setCacheOff

void setCacheOff()
                 throws IOException
Disables the tabledescriptor cache

Throws:
IOException


Copyright © 2015 The Apache Software Foundation. All rights reserved.