Refine search
/** Thrown for checksum errors. */ @InterfaceAudience.Public @InterfaceStability.Stable public class ChecksumException extends IOException { private static final long serialVersionUID = 1L; private long pos; public ChecksumException(String description, long pos) { super(description); this.pos = pos; } public long getPos() { return pos; } }
@InterfaceAudience.Public @InterfaceStability.Stable public class AlterISchemaEvent extends ListenerEvent { private final ISchema oldSchema, newSchema; public AlterISchemaEvent(boolean status, IHMSHandler handler, ISchema oldSchema, ISchema newSchema) { super(status, handler); this.oldSchema = oldSchema; this.newSchema = newSchema; } public ISchema getOldSchema() { return oldSchema; } public ISchema getNewSchema() { return newSchema; } }
@InterfaceAudience.Public @InterfaceStability.Stable public class PreAlterISchemaEvent extends PreEventContext { private final ISchema oldSchema, newSchema; public PreAlterISchemaEvent(IHMSHandler handler, ISchema oldSchema, ISchema newSchema) { super(PreEventType.ALTER_ISCHEMA, handler); this.oldSchema = oldSchema; this.newSchema = newSchema; } public ISchema getOldSchema() { return oldSchema; } public ISchema getNewSchema() { return newSchema; } }
@InterfaceAudience.Public @InterfaceStability.Stable public class AlterCatalogEvent extends ListenerEvent { private final Catalog oldCat, newCat; public AlterCatalogEvent(Catalog oldCat, Catalog newCat, boolean status, IHMSHandler handler) { super(status, handler); this.oldCat = oldCat; this.newCat = newCat; } public Catalog getOldCatalog() { return oldCat; } public Catalog getNewCatalog() { return newCat; } }
@InterfaceAudience.Public @InterfaceStability.Stable public class DropFunctionEvent extends ListenerEvent { private final Function function; public DropFunctionEvent(Function function, boolean status, IHMSHandler handler) { super(status, handler); this.function = function; } /** * @return the function */ public Function getFunction() { return function; } }
@InterfaceAudience.Public @InterfaceStability.Stable public class PreCreateDatabaseEvent extends PreEventContext { private final Database db; public PreCreateDatabaseEvent (Database db, IHMSHandler handler) { super (PreEventType.CREATE_DATABASE, handler); this.db = db; } /** * @return the db */ public Database getDatabase () { return db; } }
@InterfaceAudience.Public @InterfaceStability.Stable public class CreateDatabaseEvent extends ListenerEvent { private final Database db; public CreateDatabaseEvent (Database db, boolean status, IHMSHandler handler) { super (status, handler); this.db = db; } /** * @return the db */ public Database getDatabase () { return db; } }
@InterfaceAudience.Public @InterfaceStability.Stable public class CreateTableEvent extends ListenerEvent { private final Table table; public CreateTableEvent (Table table, boolean status, IHMSHandler handler) { super (status, handler); this.table = table; } /** * @return the table */ public Table getTable () { return table; } }
@InterfaceAudience.Public @InterfaceStability.Stable public interface PathFilter { /** * Tests whether or not the specified abstract pathname should be * included in a pathname list. * * @param path The abstract pathname to be tested * @return <code>true</code> if and only if <code>pathname</code> * should be included */ boolean accept(Path path); }
@InterfaceAudience.Public @InterfaceStability.Stable public class CreateFunctionEvent extends ListenerEvent { private final Function function; public CreateFunctionEvent (Function function, boolean status, IHMSHandler handler) { super (status, handler); this.function = function; } /** * @return the function */ public Function getFunction () { return function; } }
@InterfaceAudience.Public @InterfaceStability.Stable public class PreCreateTableEvent extends PreEventContext { private final Table table; public PreCreateTableEvent(Table table, IHMSHandler handler) { super(PreEventType.CREATE_TABLE, handler); this.table = table; } /** * @return the table */ public Table getTable() { return table; } }
@InterfaceAudience.Public @InterfaceStability.Stable public class DropDatabaseEvent extends ListenerEvent { private final Database db; public DropDatabaseEvent(Database db, boolean status, IHMSHandler handler) { super (status, handler); this.db = db; } /** * @return the db */ public Database getDatabase() { return db; } }
/** * Thrown by {@link NetUtils#connect(java.net.Socket, java.net.SocketAddress, int)} * if it times out while connecting to the remote host. */ @InterfaceAudience.Public @InterfaceStability.Stable public class ConnectTimeoutException extends SocketTimeoutException { private static final long serialVersionUID = 1L; public ConnectTimeoutException(String msg) { super(msg); } }
@InterfaceAudience.Public @InterfaceStability.Stable public class PreDropDatabaseEvent extends PreEventContext { private final Database db; public PreDropDatabaseEvent(Database db, IHMSHandler handler) { super(PreEventType.DROP_DATABASE, handler); this.db = db; } /** * @return the db */ public Database getDatabase() { return db; } }
/** Something that may be configured with a {@link Configuration}. */ @InterfaceAudience.Public @InterfaceStability.Stable public interface Configurable { /** Set the configuration to be used by this object. */ void setConf(Configuration conf); /** Return the configuration used by this object. */ Configuration getConf(); }
/** * Indicates if a shutdownHook is registered or not. * * @param shutdownHook shutdownHook to check if registered. * @return TRUE/FALSE depending if the shutdownHook is is registered. */ @InterfaceAudience.Public @InterfaceStability.Stable public boolean hasShutdownHook(Runnable shutdownHook) { return hooks.contains(new HookEntry(shutdownHook, 0)); }