Modifier and Type | Method and Description |
---|---|
LensResultSet |
ESDriver.execute(QueryContext context)
Elastic search does not have a concept of prepared query.
|
void |
ESDriver.executeAsync(QueryContext context) |
LensResultSet |
ESDriver.fetchResultSet(QueryContext context) |
void |
ESDriver.updateStatus(QueryContext context) |
Modifier and Type | Method and Description |
---|---|
LensResultSet |
HiveDriver.execute(QueryContext ctx) |
void |
HiveDriver.executeAsync(QueryContext ctx) |
void |
HiveDriver.registerForCompletionNotification(QueryContext context,
long timeoutMillis,
QueryCompletionListener listener) |
void |
HiveDriver.updateStatus(QueryContext context) |
Modifier and Type | Method and Description |
---|---|
String |
MaxJDBCConnectionCheckConstraint.allowsLaunchOf(QueryContext candidateQuery,
EstimatedImmutableQueryCollection launchedQueries) |
LensResultSet |
JDBCDriver.execute(QueryContext context)
Blocking execute of the query.
|
void |
JDBCDriver.executeAsync(QueryContext context)
Asynchronously execute the query.
|
void |
JDBCDriver.updateStatus(QueryContext context)
Get status of the query, specified by the handle.
|
Modifier and Type | Method and Description |
---|---|
void |
WrappedFileFormatter.init(QueryContext ctx,
LensResultSetMetadata metadata) |
void |
FileSerdeFormatter.init(QueryContext ctx,
LensResultSetMetadata metadata) |
void |
FilePersistentFormatter.init(QueryContext ctx,
LensResultSetMetadata metadata) |
void |
AbstractOutputFormatter.init(QueryContext ctx,
LensResultSetMetadata metadata) |
void |
AbstractFileFormatter.init(QueryContext ctx,
LensResultSetMetadata metadata) |
Modifier and Type | Method and Description |
---|---|
RetryPolicyDecider<QueryContext> |
LensDriver.getRetryPolicyDecider() |
RetryPolicyDecider<QueryContext> |
AbstractLensDriver.getRetryPolicyDecider() |
Modifier and Type | Method and Description |
---|---|
LensResultSet |
LensDriver.execute(QueryContext context)
Blocking execute of the query
|
void |
LensDriver.executeAsync(QueryContext context)
Asynchronously execute the query.
|
LensResultSet |
LensDriver.fetchResultSet(QueryContext context)
Fetch the results of the query, specified by the handle.
|
LensResultSet |
AbstractLensDriver.fetchResultSet(QueryContext ctx)
Default implementation for fetchResultSet for all drivers.
|
void |
LensDriver.registerForCompletionNotification(QueryContext context,
long timeoutMillis,
QueryCompletionListener listener)
Register for query completion notification.
|
void |
AbstractLensDriver.registerForCompletionNotification(QueryContext context,
long timeoutMillis,
QueryCompletionListener listener) |
void |
LensDriver.updateStatus(QueryContext context)
Update driver query status in the context object.
|
Modifier and Type | Method and Description |
---|---|
void |
NoOpDriverQueryHook.preLaunch(QueryContext ctx) |
void |
DriverQueryHook.preLaunch(QueryContext ctx)
Called just before launching the query on the selected driver.
|
void |
ChainedDriverQueryHook.preLaunch(QueryContext ctx) |
Modifier and Type | Method and Description |
---|---|
static QueryContext |
QueryContext.createContextWithSingleDriver(String query,
String user,
LensConf qconf,
org.apache.hadoop.conf.Configuration conf,
LensDriver driver,
String lensSessionPublicId,
boolean mergeDriverConf)
Utility create method to create context with single driver.
|
QueryContext |
FinishedLensQuery.toQueryContext(org.apache.hadoop.conf.Configuration conf,
Collection<LensDriver> drivers) |
Modifier and Type | Method and Description |
---|---|
BackOffRetryHandler<QueryContext> |
QueryContext.getDriverRetryPolicy() |
BackOffRetryHandler<QueryContext> |
QueryContext.getRetryPolicy() |
BackOffRetryHandler<QueryContext> |
QueryContext.getServerRetryPolicy() |
Modifier and Type | Method and Description |
---|---|
void |
QueryOutputFormatter.init(QueryContext ctx,
LensResultSetMetadata metadata)
Initialize the formatter.
|
Modifier and Type | Method and Description |
---|---|
void |
QueryContext.setDriverRetryPolicy(BackOffRetryHandler<QueryContext> driverRetryPolicy) |
void |
QueryContext.setServerRetryPolicy(BackOffRetryHandler<QueryContext> serverRetryPolicy) |
Constructor and Description |
---|
FinishedLensQuery(QueryContext ctx)
Instantiates a new finished lens query.
|
Modifier and Type | Method and Description |
---|---|
Set<QueryContext> |
ImmutableQueryCollection.getQueries() |
Set<QueryContext> |
EstimatedImmutableQueryCollection.getQueries(LensDriver driver) |
Set<QueryContext> |
ImmutableQueryCollection.getQueries(String user) |
Set<QueryContext> |
WaitingQueriesSelectionPolicy.selectQueries(FinishedLensQuery finishedQuery,
EstimatedImmutableQueryCollection waitingQueries)
Selects a subset of waiting queries eligible to move out of waiting state, based on logic of this selection policy.
|
Set<QueryContext> |
DriverSpecificWaitingQueriesSelectionPolicy.selectQueries(FinishedLensQuery finishedQuery,
EstimatedImmutableQueryCollection waitingQueries) |
Modifier and Type | Method and Description |
---|---|
Integer |
ImmutableQueryCollection.getQueryIndex(QueryContext query) |
Modifier and Type | Method and Description |
---|---|
int |
QueryPriorityComparator.compare(QueryContext o1,
QueryContext o2) |
int |
QueryCostComparator.compare(QueryContext o1,
QueryContext o2) |
int |
MoreRetriesFirstComparator.compare(QueryContext o1,
QueryContext o2) |
int |
FIFOQueryComparator.compare(QueryContext o1,
QueryContext o2) |
Modifier and Type | Method and Description |
---|---|
String |
QueryLaunchingConstraint.allowsLaunchOf(QueryContext candidateQuery,
EstimatedImmutableQueryCollection launchedQueries)
Returns whether this constraint allows candidate query to be launched.
|
String |
MaxConcurrentDriverQueriesConstraint.allowsLaunchOf(QueryContext candidateQuery,
EstimatedImmutableQueryCollection launchedQueries) |
Modifier and Type | Method and Description |
---|---|
QueryContext |
QueryEnded.getQueryContext() |
Modifier and Type | Method and Description |
---|---|
QueryContext |
QueryExecutionServiceImpl.FinishedQuery.getCtx()
The ctx.
|
QueryContext |
QueryExecutionServiceImpl.getQueryContext(QueryHandle queryHandle)
Gets the query context.
|
Constructor and Description |
---|
LensPersistentResult(QueryContext ctx,
org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
Set<QueryContext> |
ThreadSafeQueryCollection.getQueries() |
Set<QueryContext> |
ThreadSafeEstimatedQueryCollection.getQueries() |
Set<QueryContext> |
DefaultQueryCollection.getQueries() |
Set<QueryContext> |
DefaultEstimatedQueryCollection.getQueries() |
Set<QueryContext> |
ThreadSafeEstimatedQueryCollection.getQueries(LensDriver driver) |
Set<QueryContext> |
DefaultEstimatedQueryCollection.getQueries(LensDriver driver) |
Set<QueryContext> |
ThreadSafeQueryCollection.getQueries(String user) |
Set<QueryContext> |
ThreadSafeEstimatedQueryCollection.getQueries(String user) |
Set<QueryContext> |
DefaultQueryCollection.getQueries(String user) |
Set<QueryContext> |
DefaultEstimatedQueryCollection.getQueries(String user) |
Set<QueryContext> |
WaitingQueriesSelector.selectQueries(FinishedLensQuery finishedQuery,
EstimatedImmutableQueryCollection waitingQueries) |
Set<QueryContext> |
UserSpecificWaitingQueriesSelectionPolicy.selectQueries(FinishedLensQuery finishedQuery,
EstimatedImmutableQueryCollection waitingQueries) |
Set<QueryContext> |
UnioningWaitingQueriesSelector.selectQueries(FinishedLensQuery finishedQuery,
EstimatedImmutableQueryCollection waitingQueries)
Selects queries eligible by all
WaitingQueriesSelectionPolicy to move them out of waiting state. |
Modifier and Type | Method and Description |
---|---|
boolean |
ThreadSafeQueryCollection.add(QueryContext query) |
boolean |
ThreadSafeEstimatedQueryCollection.add(QueryContext query) |
boolean |
MutableQueryCollection.add(QueryContext query)
add the given query to existing queries
|
boolean |
DefaultQueryCollection.add(QueryContext query) |
boolean |
DefaultEstimatedQueryCollection.add(QueryContext query) |
Integer |
ThreadSafeQueryCollection.getQueryIndex(QueryContext query) |
Integer |
ThreadSafeEstimatedQueryCollection.getQueryIndex(QueryContext query) |
Integer |
DefaultQueryCollection.getQueryIndex(QueryContext query)
Since the collection is a linkedHashSet, the order of queries is always maintained.
|
Integer |
DefaultEstimatedQueryCollection.getQueryIndex(QueryContext query) |
boolean |
ThreadSafeQueryCollection.remove(QueryContext query) |
boolean |
ThreadSafeEstimatedQueryCollection.remove(QueryContext query) |
boolean |
MutableQueryCollection.remove(QueryContext query)
removes given query from existing queries
|
boolean |
DefaultQueryCollection.remove(QueryContext query) |
boolean |
DefaultEstimatedQueryCollection.remove(QueryContext query) |
Modifier and Type | Method and Description |
---|---|
boolean |
ThreadSafeQueryCollection.addAll(Set<QueryContext> queries) |
boolean |
ThreadSafeEstimatedQueryCollection.addAll(Set<QueryContext> queries) |
boolean |
MutableQueryCollection.addAll(Set<QueryContext> queries) |
boolean |
DefaultQueryCollection.addAll(Set<QueryContext> queries) |
boolean |
DefaultEstimatedQueryCollection.addAll(Set<QueryContext> queries) |
boolean |
ThreadSafeQueryCollection.removeAll(Set<QueryContext> queries) |
boolean |
ThreadSafeEstimatedQueryCollection.removeAll(Set<QueryContext> queries) |
boolean |
MutableQueryCollection.removeAll(Set<QueryContext> queries) |
boolean |
DefaultQueryCollection.removeAll(Set<QueryContext> queries) |
boolean |
DefaultEstimatedQueryCollection.removeAll(Set<QueryContext> queries) |
Constructor and Description |
---|
DefaultQueryCollection(Set<QueryContext> queries) |
DefaultQueryCollection(TreeSet<QueryContext> treeSet) |
Modifier and Type | Method and Description |
---|---|
BackOffRetryHandler<QueryContext> |
RetryPolicyToConstraingAdapter.getConstraint() |
Modifier and Type | Method and Description |
---|---|
String |
TotalQueryCostCeilingConstraint.allowsLaunchOf(QueryContext candidateQuery,
EstimatedImmutableQueryCollection launchedQueries)
This constraint allows a query to be launched by the user,
if total query cost of launched queries of
the user is less than or equal to the total query cost ceiling per user
OR
the total query cost ceiling per user is not present.
|
String |
RetryPolicyToConstraingAdapter.allowsLaunchOf(QueryContext candidateQuery,
EstimatedImmutableQueryCollection launchedQueries) |
boolean |
QueryLaunchingConstraintsChecker.canLaunch(QueryContext candidateQuery,
EstimatedImmutableQueryCollection launchedQueries) |
boolean |
DefaultQueryLaunchingConstraintsChecker.canLaunch(QueryContext candidateQuery,
EstimatedImmutableQueryCollection launchedQueries) |
Constructor and Description |
---|
RetryPolicyToConstraingAdapter(BackOffRetryHandler<QueryContext> constraint) |
Copyright © 2014–2018 Apache Software Foundation. All rights reserved.