Tabnine Logo
TableResultIterator
Code IndexAdd Tabnine to your IDE (free)

How to use
TableResultIterator
in
org.apache.phoenix.iterate

Best Java code snippets using org.apache.phoenix.iterate.TableResultIterator (Showing top 20 results out of 315)

origin: apache/phoenix

  @Override
public TableResultIterator newIterator(MutationState mutationState, TableRef tableRef,
    Scan scan, ScanMetricsHolder scanMetricsHolder, long renewLeaseThreshold,
    QueryPlan plan, ParallelScanGrouper scanGrouper, Map<ImmutableBytesPtr,ServerCache> caches) throws SQLException {
  return new TableResultIterator(mutationState, scan, scanMetricsHolder, renewLeaseThreshold,
      plan, scanGrouper, caches);
}
origin: apache/phoenix

@Override
public synchronized void initScanner() throws SQLException {
  super.initScanner();
}

origin: apache/phoenix

  return UNINITIALIZED;
long delay = now() - renewLeaseTime;
if (delay < renewLeaseThreshold) {
  return THRESHOLD_NOT_REACHED;
    renewLeaseTime = now();
    return RENEWED;
  } else {
origin: apache/phoenix

RenewLeaseStatus status = scanningItr.renewLease();
switch (status) {
case RENEWED:
origin: apache/phoenix

@Override
public Tuple next() throws SQLException {
  delay();
  return super.next();
}

origin: org.apache.phoenix/phoenix-core

RenewLeaseStatus status = scanningItr.renewLease();
switch (status) {
case RENEWED:
origin: apache/phoenix

    .toBytes(true));
ScanMetricsHolder scanMetricsHolder = ScanMetricsHolder.getInstance(readMetrics, tableName, scan, ctx.getConnection().getLogLevel());
final TableResultIterator tableResultIterator = new TableResultIterator(
    queryPlan.getContext().getConnection().getMutationState(), scan, scanMetricsHolder,
    renewScannerLeaseThreshold, queryPlan, MapReduceParallelScanGrouper.getInstance());
origin: apache/phoenix

try {
  renewLeaseLock.lock();
  initScanner();
  try {
    lastTuple = scanIterator.next();
origin: com.aliyun.phoenix/ali-phoenix-core

  return UNINITIALIZED;
long delay = now() - renewLeaseTime;
if (delay < renewLeaseThreshold) {
  return THRESHOLD_NOT_REACHED;
    renewLeaseTime = now();
    return RENEWED;
  } else {
origin: com.aliyun.phoenix/ali-phoenix-core

RenewLeaseStatus status = scanningItr.renewLease();
switch (status) {
case RENEWED:
origin: apache/phoenix

      context.getConnection().getLogLevel());
TableResultIterator itr =
    new TableResultIterator(mutationState, currentScan, scanMetricsHolder,
        renewLeaseThreshold, plan, scanGrouper, caches);
PeekingResultIterator peekingItr = iteratorFactory.newIterator(context, itr, currentScan, tableName, plan);
origin: com.aliyun.phoenix/ali-phoenix-core

try {
  renewLeaseLock.lock();
  initScanner();
  try {
    lastTuple = scanIterator.next();
origin: org.apache.phoenix/phoenix-core

  return UNINITIALIZED;
long delay = now() - renewLeaseTime;
if (delay < renewLeaseThreshold) {
  return THRESHOLD_NOT_REACHED;
    renewLeaseTime = now();
    return RENEWED;
  } else {
origin: org.apache.phoenix/phoenix-core

  @Override
public TableResultIterator newIterator(MutationState mutationState, TableRef tableRef,
    Scan scan, ScanMetricsHolder scanMetricsHolder, long renewLeaseThreshold,
    QueryPlan plan, ParallelScanGrouper scanGrouper, Map<ImmutableBytesPtr,ServerCache> caches) throws SQLException {
  return new TableResultIterator(mutationState, scan, scanMetricsHolder, renewLeaseThreshold,
      plan, scanGrouper, caches);
}
origin: org.apache.phoenix/phoenix-core

try {
  renewLeaseLock.lock();
  initScanner();
  try {
    lastTuple = scanIterator.next();
origin: com.aliyun.phoenix/ali-phoenix-core

  @Override
public TableResultIterator newIterator(MutationState mutationState, TableRef tableRef,
    Scan scan, ScanMetricsHolder scanMetricsHolder, long renewLeaseThreshold,
    QueryPlan plan, ParallelScanGrouper scanGrouper, Map<ImmutableBytesPtr,ServerCache> caches) throws SQLException {
  return new TableResultIterator(mutationState, scan, scanMetricsHolder, renewLeaseThreshold,
      plan, scanGrouper, caches);
}
origin: apache/phoenix

private PeekingResultIterator getResultIterator() throws SQLException {
  if (resultIterator.peek() == null && lastKey != null) {
    resultIterator.close();
    scan = ScanUtil.newScan(scan);
    if(ScanUtil.isLocalIndex(scan)) {
      scan.setAttribute(SCAN_START_ROW_SUFFIX, ByteUtil.copyKeyBytesIfNecessary(lastKey));
    } else {
      scan.setStartRow(ByteUtil.copyKeyBytesIfNecessary(lastKey));
    }
    if (logger.isDebugEnabled()) logger.debug(LogUtil.addCustomAnnotations("Get next chunked result iterator over " + tableRef.getTable().getPhysicalName().getString() + " with " + scan, ScanUtil.getCustomAnnotations(scan)));
    String tableName = tableRef.getTable().getPhysicalName().getString();
    ReadMetricQueue readMetrics = context.getReadMetricsQueue();
    ScanMetricsHolder scanMetricsHolder = ScanMetricsHolder.getInstance(readMetrics, tableName, scan,
        context.getConnection().getLogLevel());
    long renewLeaseThreshold = context.getConnection().getQueryServices().getRenewLeaseThresholdMilliSeconds();
    ResultIterator singleChunkResultIterator =
        new SingleChunkResultIterator(new TableResultIterator(mutationState, scan,
            scanMetricsHolder, renewLeaseThreshold, plan,
            DefaultParallelScanGrouper.getInstance()), chunkSize);
    resultIterator = delegateIteratorFactory.newIterator(context, singleChunkResultIterator, scan, tableName, plan);
  }
  return resultIterator;
}
origin: apache/phoenix

} else {
 final TableResultIterator tableResultIterator =
   new TableResultIterator(
     queryPlan.getContext().getConnection().getMutationState(), scan,
     scanMetricsHolder, renewScannerLeaseThreshold, queryPlan,
origin: apache/phoenix

        queryPlan.getContext().getConnection().getLogLevel());
final TableResultIterator tableResultIterator =
    new TableResultIterator(
        queryPlan.getContext().getConnection().getMutationState(), scan,
        scanMetricsHolder, renewScannerLeaseThreshold, queryPlan,
origin: org.apache.phoenix/phoenix-core

      context.getConnection().getLogLevel());
TableResultIterator itr =
    new TableResultIterator(mutationState, currentScan, scanMetricsHolder,
        renewLeaseThreshold, plan, scanGrouper, caches);
PeekingResultIterator peekingItr = iteratorFactory.newIterator(context, itr, currentScan, tableName, plan);
org.apache.phoenix.iterateTableResultIterator

Javadoc

Wrapper for ResultScanner creation that closes HTableInterface when ResultScanner is closed.

Most used methods

  • <init>
  • initScanner
  • now
  • renewLease
  • next

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setRequestProperty (URLConnection)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • notifyDataSetChanged (ArrayAdapter)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • String (java.lang)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • JLabel (javax.swing)
  • Runner (org.openjdk.jmh.runner)
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now