org.apache.hadoop.hbase
Interface TableDescriptors

All Known Implementing Classes:
FSTableDescriptors

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(byte[] tablename)
           
 HTableDescriptor get(String tablename)
           
 Map<String,HTableDescriptor> getAll()
          Get Map of all HTableDescriptors.
 HTableDescriptor remove(String tablename)
           
 

Method Detail

get

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

get

HTableDescriptor get(byte[] tablename)
                     throws IOException
Parameters:
tablename -
Returns:
HTableDescriptor for tablename
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(String tablename)
                        throws IOException
Parameters:
tablename -
Returns:
Instance of table descriptor or null if none found.
Throws:
IOException


Copyright © 2015 The Apache Software Foundation. All Rights Reserved.