public abstract class GoogleApiReader extends IntegrationReader
DataEndpoint.State| Modifier and Type | Field and Description |
|---|---|
protected Credential |
credentials |
protected static JsonFactory |
JSON_FACTORY |
protected HttpTransport |
transport |
fieldLineage, recordLineagelastRecord, PRODUCT, PRODUCT_VERSION, VENDOR, XML_INPUT_FACTORY_KEYBUFFER_SIZE, captureElapsedTime, DEFAULT_READ_BUFFER_SIZEid, log, name, TIMESTAMP_FORMAT| Constructor and Description |
|---|
GoogleApiReader(Credential credential) |
GoogleApiReader(Credential credentials,
HttpTransport transport) |
| Modifier and Type | Method and Description |
|---|---|
DataException |
addExceptionProperties(DataException exception)
Adds this endpoint's current state to a
DataException. |
void |
close()
Indicates that this endpoint has finished reading or writing.
|
String |
getApplicationName() |
GoogleApiReader |
setApplicationName(String applicationName) |
protected <T extends GenericJson> |
setJsonFactory(T object) |
protected static Date |
toDate(DateTime dateTime) |
protected static DataException |
toException(GoogleJsonError e,
HttpHeaders responseHeaders) |
openaddLineage, available, getBufferSize, getNestedEndpoint, getNestedReader, getReader, getRootEndpoint, getRootReader, isExhausted, isLineageSupported, isSaveLineage, peek, pop, push, read, readImpl, setSaveLineage, skipdecrementRecordCount, enableJmx, getLastRecord, getRecordCount, getRecordCountAsBigInteger, getRecordCountAsString, incrementRecordCount, isRecordCountBigInteger, resetRecordCount, toStringaddElapsedtime, assertClosed, assertNotOpened, assertOpened, finalize, getClosedOn, getDescription, getElapsedTime, getElapsedTimeAsString, getOpenedOn, getOpenElapsedTime, getOpenElapsedTimeAsString, getSelfTime, getSelfTimeAsString, getState, isCaptureElapsedTime, isClosed, isOpen, setCaptureElapsedTime, setDescriptionprotected static final JsonFactory JSON_FACTORY
protected final Credential credentials
protected final HttpTransport transport
public GoogleApiReader(Credential credentials,
HttpTransport transport)
public GoogleApiReader(Credential credential)
public String getApplicationName()
public GoogleApiReader setApplicationName(String applicationName)
public void close()
throws DataException
DataEndpointclose in class DataEndpointDataExceptionpublic DataException addExceptionProperties(DataException exception)
EndpointDataException. Since this method is called whenever an
exception is thrown, subclasses should override it to add their specific information.addExceptionProperties in class DataReaderprotected <T extends GenericJson> T setJsonFactory(T object)
protected static DataException toException(GoogleJsonError e, HttpHeaders responseHeaders)
protected static Date toDate(DateTime dateTime)
Copyright (c) 2006-2025 North Concepts Inc. All Rights Reserved.