RecordPageSource.getCursor
Code IndexAdd Codota to your IDE (free)

Best code snippets using com.facebook.presto.spi.RecordPageSource.getCursor(Showing top 6 results out of 315)

origin: prestodb/presto

protected static void assertPageSourceType(ConnectorPageSource pageSource, HiveStorageFormat hiveStorageFormat)
{
  if (pageSource instanceof RecordPageSource) {
    RecordCursor hiveRecordCursor = ((RecordPageSource) pageSource).getCursor();
    hiveRecordCursor = ((HiveRecordCursor) hiveRecordCursor).getRegularColumnRecordCursor();
    if (hiveRecordCursor instanceof HiveCoercionRecordCursor) {
      hiveRecordCursor = ((HiveCoercionRecordCursor) hiveRecordCursor).getRegularColumnRecordCursor();
    }
    assertInstanceOf(hiveRecordCursor, recordCursorType(hiveStorageFormat), hiveStorageFormat.name());
  }
  else {
    assertInstanceOf(((HivePageSource) pageSource).getPageSource(), pageSourceType(hiveStorageFormat), hiveStorageFormat.name());
  }
}
origin: prestodb/presto

@Override
public Page getOutput()
{
  if (split == null) {
    return null;
  }
  if (!finishing && pageSource == null && cursor == null) {
    ConnectorPageSource source = pageSourceProvider.createPageSource(operatorContext.getSession(), split, columns);
    if (source instanceof RecordPageSource) {
      cursor = ((RecordPageSource) source).getCursor();
    }
    else {
      pageSource = source;
    }
  }
  if (pageSource != null) {
    return processPageSource();
  }
  else {
    return processColumnSource();
  }
}
origin: prestodb/presto

    ImmutableMap.of());
RecordCursor cursor = ((RecordPageSource) pageSource.get()).getCursor();
origin: com.facebook.presto/presto-hive

protected static void assertPageSourceType(ConnectorPageSource pageSource, HiveStorageFormat hiveStorageFormat)
{
  if (pageSource instanceof RecordPageSource) {
    RecordCursor hiveRecordCursor = ((RecordPageSource) pageSource).getCursor();
    hiveRecordCursor = ((HiveRecordCursor) hiveRecordCursor).getRegularColumnRecordCursor();
    if (hiveRecordCursor instanceof HiveCoercionRecordCursor) {
      hiveRecordCursor = ((HiveCoercionRecordCursor) hiveRecordCursor).getRegularColumnRecordCursor();
    }
    assertInstanceOf(hiveRecordCursor, recordCursorType(hiveStorageFormat), hiveStorageFormat.name());
  }
  else {
    assertInstanceOf(((HivePageSource) pageSource).getPageSource(), pageSourceType(hiveStorageFormat), hiveStorageFormat.name());
  }
}
origin: com.facebook.presto/presto-main

@Override
public Page getOutput()
{
  if (split == null) {
    return null;
  }
  if (!finishing && pageSource == null && cursor == null) {
    ConnectorPageSource source = pageSourceProvider.createPageSource(operatorContext.getSession(), split, columns);
    if (source instanceof RecordPageSource) {
      cursor = ((RecordPageSource) source).getCursor();
    }
    else {
      pageSource = source;
    }
  }
  if (pageSource != null) {
    return processPageSource();
  }
  else {
    return processColumnSource();
  }
}
origin: com.facebook.presto/presto-hive

    ImmutableMap.of());
RecordCursor cursor = ((RecordPageSource) pageSource.get()).getCursor();
com.facebook.presto.spiRecordPageSourcegetCursor

Popular methods of RecordPageSource

  • <init>

Popular classes and methods

  • getOriginalFilename (MultipartFile)
  • getContentResolver (Context)
  • onCreateOptionsMenu (Activity)
  • Window (java.awt)
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • JButton (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble

For IntelliJ IDEA and
Android Studio

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)