/** * Redirect request (can be either GET or HEAD). * * @since 4.0 */ @NotThreadSafe class HttpRedirect extends HttpRequestBase { private String method; public HttpRedirect(final String method, final URI uri) { super(); if (method.equalsIgnoreCase(HttpHead.METHOD_NAME)) { this.method = HttpHead.METHOD_NAME; } else { this.method = HttpGet.METHOD_NAME; } setURI(uri); } @Override public String getMethod() { return this.method; } }
@Contract(threading = ThreadingBehavior.IMMUTABLE_CONDITIONAL) public class UnixConnectionSocketFactory implements ConnectionSocketFactory {
/** * 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); }
@ThreadSafe public class ChildMemoryManager extends DelegatingMemoryManager { private final Object sync = new Object(); private final int maxPercOfTotal; @GuardedBy("sync") private long allocatedBytes;
private final long maxMemoryBytes; private final int maxWaitMs; @GuardedBy("sync") private volatile long usedMemoryBytes;
/** * Returns version of the state management this cookie specification * conforms to. * * @return version of the state management specification */ @Obsolete int getVersion();
@NotThreadSafe // e.g. managedConn public class DefaultRequestDirector implements RequestDirector {
@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; } }
@Contract(threading = ThreadingBehavior.IMMUTABLE_CONDITIONAL) public class NpipeConnectionSocketFactory implements ConnectionSocketFactory {
/** * Returns a request header identifying what version of the state management * specification is understood. May be {@code null} if the cookie * specification does not support {@code Cookie2} header. */ @Obsolete Header getVersionHeader();
@NotThreadSafe class HttpDeleteWithBody extends HttpEntityEnclosingRequestBase { public static final String METHOD_NAME = "DELETE"; public String getMethod() { return METHOD_NAME; } public HttpDeleteWithBody(final String uri) { super(); setURI(URI.create(uri)); } public HttpDeleteWithBody(final URI uri) { super(); setURI(uri); } public HttpDeleteWithBody() { super(); } }
@Immutable public static final class BuiltInFunctionInfo { private final String name;
@Contract(threading = ThreadingBehavior.IMMUTABLE_CONDITIONAL) public class UnixConnectionSocketFactory implements ConnectionSocketFactory {
@NotThreadSafe public class HttpGetWithBody extends HttpEntityEnclosingRequestBase { public final static String METHOD_NAME = "GET"; public HttpGetWithBody() { super(); } public HttpGetWithBody(final URI uri) { super(); setURI(uri); } /** * @throws IllegalArgumentException if the uri is invalid. */ public HttpGetWithBody(final String uri) { super(); setURI(URI.create(uri)); } @Override public String getMethod() { return METHOD_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 {