/** * Encapsulate deserialized hash cache from bytes into Map. * The Map uses the row key as the key and the row as the value. * @author jtaylor * @since 0.1 */ @Immutable public interface HashCache extends Closeable { public List<Tuple> get(ImmutableBytesPtr hashKey); }
@Immutable public class PNormalizedName extends PNameImpl { public PNormalizedName(String nonNormalizedName) { super(SchemaUtil.normalizeIdentifier(nonNormalizedName)); } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + getString().hashCode(); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; PNormalizedName other = (PNormalizedName)obj; // Compare normalized stringName for equality, since bytesName // may differ since it remains case sensitive. if (!getString().equals(other.getString())) return false; return true; } }
@Immutable public static final class BuiltInFunctionInfo { private final String name;
@Immutable public static class GroupBy { private final List<Expression> expressions;
@Immutable public class PNameImpl implements PName {
@Immutable public interface QueryServices extends SQLCloseable { public static final String KEEP_ALIVE_MS_ATTRIB = "phoenix.query.keepAliveMs";
@Immutable public static class BuiltInFunctionArgInfo { private static final PDataType[] ENUMERATION_TYPES = new PDataType[] {PDataType.VARCHAR};
@Immutable public final class ColumnRef { private final TableRef tableRef;
@Immutable public class KeyValueSchema extends ValueSchema {
/** * Encapsulate deserialized hash cache from bytes into Map. * The Map uses the row key as the key and the row as the value. * * @since 0.1 */ @Immutable public interface HashCache extends Closeable { public int getClientVersion(); public List<Tuple> get(ImmutableBytesPtr hashKey) throws IOException; }
/** * Noop implementation of {@link UserTokenHandler} that always returns <code>null</code>. * * @since 4.3 */ @Immutable public class NoopUserTokenHandler implements UserTokenHandler { public static final NoopUserTokenHandler INSTANCE = new NoopUserTokenHandler(); public Object getUserToken(final HttpContext context) { return null; } }
/** * Noop implementation of {@link UserTokenHandler} that always returns <code>null</code>. * * @since 4.3 */ @Immutable public class NoopUserTokenHandler implements UserTokenHandler { public static final NoopUserTokenHandler INSTANCE = new NoopUserTokenHandler(); public Object getUserToken(final HttpContext context) { return null; } }
/** * Noop implementation of {@link UserTokenHandler} that always returns {@code null}. * * @since 4.3 */ @Immutable public class NoopUserTokenHandler implements UserTokenHandler { public static final NoopUserTokenHandler INSTANCE = new NoopUserTokenHandler(); @Override public Object getUserToken(final HttpContext context) { return null; } }
/** * Noop implementation of {@link UserTokenHandler} that always returns {@code null}. * * @since 4.3 */ @Immutable public class NoopUserTokenHandler implements UserTokenHandler { public static final NoopUserTokenHandler INSTANCE = new NoopUserTokenHandler(); @Override public Object getUserToken(final HttpContext context) { return null; } }
/** * Noop implementation of {@link UserTokenHandler} that always returns {@code null}. * * @since 4.3 */ @Immutable public class NoopUserTokenHandler implements UserTokenHandler { public static final NoopUserTokenHandler INSTANCE = new NoopUserTokenHandler(); @Override public Object getUserToken(final HttpContext context) { return null; } }
/** * Noop implementation of {@link UserTokenHandler} that always returns {@code null}. * * @since 4.3 */ @Immutable public class NoopUserTokenHandler implements UserTokenHandler { public static final NoopUserTokenHandler INSTANCE = new NoopUserTokenHandler(); @Override public Object getUserToken(final HttpContext context) { return null; } }
/** * Signals failure to establish connection using an unknown protocol scheme. * * @since 4.3 */ @Immutable public class UnsupportedSchemeException extends IOException { private static final long serialVersionUID = 3597127619218687636L; /** * Creates a UnsupportedSchemeException with the specified detail message. */ public UnsupportedSchemeException(final String message) { super(message); } }
/** * * @since 4.0 */ @Immutable public class BasicCommentHandlerHC4 extends AbstractCookieAttributeHandlerHC4 { public BasicCommentHandlerHC4() { super(); } public void parse(final SetCookie cookie, final String value) throws MalformedCookieException { Args.notNull(cookie, "Cookie"); cookie.setComment(value); } }
/** * A strategy that never re-uses a connection. * * @since 4.0 */ @Immutable public class NoConnectionReuseStrategyHC4 implements ConnectionReuseStrategy { public static final NoConnectionReuseStrategyHC4 INSTANCE = new NoConnectionReuseStrategyHC4(); public NoConnectionReuseStrategyHC4() { super(); } public boolean keepAlive(final HttpResponse response, final HttpContext context) { return false; } }
/** * Signals failure to establish connection using an unknown protocol scheme. * * @since 4.3 */ @Immutable public class UnsupportedSchemeException extends IOException { private static final long serialVersionUID = 3597127619218687636L; /** * Creates a UnsupportedSchemeException with the specified detail message. */ public UnsupportedSchemeException(final String message) { super(message); } }