public class HBaseMailboxMapper extends HBaseNonTransactionalMapper implements MailboxMapper<UUID>
Mapper.Transaction<T>, Mapper.VoidTransaction| Constructor and Description |
|---|
HBaseMailboxMapper(org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(Mailbox<UUID> mlbx)
Delete the given
Mailbox from the underlying storage |
void |
deleteAllMailboxes() |
void |
deleteAllMemberships() |
void |
endRequest()
End request
|
Mailbox<UUID> |
findMailboxByPath(MailboxPath mailboxPath)
Return the
Mailbox for the given name |
List<Mailbox<UUID>> |
findMailboxWithPathLike(MailboxPath mailboxPath)
Return a List of
Mailbox which name is like the given name |
boolean |
hasChildren(Mailbox<UUID> mailbox,
char c)
Return if the given
Mailbox has children |
List<Mailbox<UUID>> |
list()
|
void |
save(Mailbox<UUID> mlbx)
Save the give
Mailbox to the underlying storage |
executepublic HBaseMailboxMapper(org.apache.hadoop.conf.Configuration conf)
public Mailbox<UUID> findMailboxByPath(MailboxPath mailboxPath) throws MailboxException, MailboxNotFoundException
MailboxMapperMailbox for the given namefindMailboxByPath in interface MailboxMapper<UUID>MailboxExceptionMailboxNotFoundExceptionpublic List<Mailbox<UUID>> findMailboxWithPathLike(MailboxPath mailboxPath) throws MailboxException
MailboxMapperMailbox which name is like the given namefindMailboxWithPathLike in interface MailboxMapper<UUID>MailboxExceptionpublic List<Mailbox<UUID>> list() throws MailboxException
MailboxMapperlist in interface MailboxMapper<UUID>MailboxExceptionpublic void endRequest()
HBaseNonTransactionalMapperendRequest in interface MapperendRequest in class HBaseNonTransactionalMapperpublic void save(Mailbox<UUID> mlbx) throws MailboxException
MailboxMapperMailbox to the underlying storagesave in interface MailboxMapper<UUID>MailboxExceptionpublic void delete(Mailbox<UUID> mlbx) throws MailboxException
MailboxMapperMailbox from the underlying storagedelete in interface MailboxMapper<UUID>MailboxExceptionpublic boolean hasChildren(Mailbox<UUID> mailbox, char c) throws MailboxException, MailboxNotFoundException
MailboxMapperMailbox has childrenhasChildren in interface MailboxMapper<UUID>mailbox - not nullc - path delimiterMailboxExceptionMailboxNotFoundExceptionpublic void deleteAllMemberships()
public void deleteAllMailboxes()
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.