@Override public String getURL() throws SQLException { return connection.getURL(); }
@Override public MutationState execute() throws SQLException { PhoenixConnection phxConn = stmt.getConnection(); Properties props = new Properties(); phxConn.getQueryServices().upgradeSystemTables(phxConn.getURL(), props); return MutationState.emptyMutationState(-1, -1, phxConn); }
public PhoenixConnection(PhoenixConnection connection, boolean isDescRowKeyOrderUpgrade, boolean isRunningUpgrade) throws SQLException { this(connection.getQueryServices(), connection.getURL(), connection .getClientInfo(), connection.metaData, connection .getMutationState(), isDescRowKeyOrderUpgrade, isRunningUpgrade, connection.buildingIndex); this.isAutoCommit = connection.isAutoCommit; this.isAutoFlush = connection.isAutoFlush; this.sampler = connection.sampler; this.statementExecutionCounter = connection.statementExecutionCounter; }
public PhoenixConnection(PhoenixConnection connection, Properties props) throws SQLException { this(connection.getQueryServices(), connection.getURL(), props, connection.metaData, connection .getMutationState(), connection.isDescVarLengthRowKeyUpgrade(), connection.isRunningUpgrade(), connection.buildingIndex); this.isAutoCommit = connection.isAutoCommit; this.isAutoFlush = connection.isAutoFlush; this.sampler = connection.sampler; this.statementExecutionCounter = connection.statementExecutionCounter; }
LOG.debug("Reading columns from {} :: {}", ((PhoenixConnection) conn).getURL(), qualifiedTableName);
public PhoenixConnection(PhoenixConnection connection, MutationState mutationState) throws SQLException { this(connection.getQueryServices(), connection.getURL(), connection .getClientInfo(), connection.getMetaDataCache(), mutationState, connection.isDescVarLengthRowKeyUpgrade(), connection .isRunningUpgrade(), connection.buildingIndex); }
String lastTenantId = null; Connection conn = globalConn; String url = globalConn.getURL(); boolean wasUpgraded = false; while (rs.next()) {
@Override public String getURL() throws SQLException { return connection.getURL(); }
String url = conn.unwrap(PhoenixConnection.class).getURL(); Properties props = new Properties(); props.setProperty(QueryServices.IS_NAMESPACE_MAPPING_ENABLED, Boolean.toString(true));
try (PhoenixConnection regularConnection = DriverManager.getConnection(url).unwrap(PhoenixConnection.class)) { String rebuildUrl = rebuildIndexConnection.getURL(); rebuildUrl.contains(MetaDataRegionObserver.REBUILD_INDEX_APPEND_TO_URL_STRING)); assertFalse(rebuildUrl.equals(regularConnection.getURL())); Configuration rebuildQueryServicesConfig = rebuildIndexConnection.getQueryServices().getConfiguration();
mapChildViewsToNamespace(conn.getURL(), conn.getClientInfo(), childViewsResult.getLinks());
p.remove(PhoenixRuntime.TENANT_ID_ATTRIB); PhoenixConnection conn = new PhoenixConnection( ConnectionQueryServicesImpl.this, metaConnection.getURL(), p, metaConnection.getMetaDataCache()); try {
public PhoenixConnection(PhoenixConnection connection, boolean isDescRowKeyOrderUpgrade, boolean isRunningUpgrade) throws SQLException { this(connection.getQueryServices(), connection.getURL(), connection .getClientInfo(), connection.metaData, connection .getMutationState(), isDescRowKeyOrderUpgrade, isRunningUpgrade, connection.buildingIndex); this.isAutoCommit = connection.isAutoCommit; this.isAutoFlush = connection.isAutoFlush; this.sampler = connection.sampler; this.statementExecutionCounter = connection.statementExecutionCounter; }
@Override public MutationState execute() throws SQLException { PhoenixConnection phxConn = stmt.getConnection(); Properties props = new Properties(); phxConn.getQueryServices().upgradeSystemTables(phxConn.getURL(), props); return MutationState.emptyMutationState(-1, -1, phxConn); }
@Override public MutationState execute() throws SQLException { PhoenixConnection phxConn = stmt.getConnection(); Properties props = new Properties(); phxConn.getQueryServices().upgradeSystemTables(phxConn.getURL(), props); return MutationState.emptyMutationState(-1, -1, phxConn); }
public PhoenixConnection(PhoenixConnection connection, boolean isDescRowKeyOrderUpgrade, boolean isRunningUpgrade) throws SQLException { this(connection.getQueryServices(), connection.getURL(), connection .getClientInfo(), connection.metaData, connection .getMutationState(), isDescRowKeyOrderUpgrade, isRunningUpgrade, connection.buildingIndex); this.isAutoCommit = connection.isAutoCommit; this.isAutoFlush = connection.isAutoFlush; this.sampler = connection.sampler; this.statementExecutionCounter = connection.statementExecutionCounter; }
public PhoenixConnection(PhoenixConnection connection, Properties props) throws SQLException { this(connection.getQueryServices(), connection.getURL(), props, connection.metaData, connection .getMutationState(), connection.isDescVarLengthRowKeyUpgrade(), connection.isRunningUpgrade(), connection.buildingIndex); this.isAutoCommit = connection.isAutoCommit; this.isAutoFlush = connection.isAutoFlush; this.sampler = connection.sampler; this.statementExecutionCounter = connection.statementExecutionCounter; }
public PhoenixConnection(PhoenixConnection connection, MutationState mutationState) throws SQLException { this(connection.getQueryServices(), connection.getURL(), connection .getClientInfo(), connection.getMetaDataCache(), mutationState, connection.isDescVarLengthRowKeyUpgrade(), connection .isRunningUpgrade(), connection.buildingIndex); }
public PhoenixConnection(ConnectionQueryServices services, PhoenixConnection connection, long scn) throws SQLException { this(services, connection.getURL(), newPropsWithSCN(scn, connection.getClientInfo()), connection.metaData, connection .getMutationState(), connection.isDescVarLengthRowKeyUpgrade(), connection.isRunningUpgrade(), connection.buildingIndex); this.isAutoCommit = connection.isAutoCommit; this.isAutoFlush = connection.isAutoFlush; this.sampler = connection.sampler; this.statementExecutionCounter = connection.statementExecutionCounter; }
public PhoenixConnection(PhoenixConnection connection, MutationState mutationState) throws SQLException { this(connection.getQueryServices(), connection.getURL(), connection .getClientInfo(), connection.getMetaDataCache(), mutationState, connection.isDescVarLengthRowKeyUpgrade(), connection .isRunningUpgrade(), connection.buildingIndex); }