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, recordLineage
lastRecord, PRODUCT, PRODUCT_VERSION, VENDOR, XML_INPUT_FACTORY_KEY
BUFFER_SIZE, captureElapsedTime, DEFAULT_READ_BUFFER_SIZE
id, 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) |
open
addLineage, available, getBufferSize, getNestedEndpoint, getNestedReader, getRootEndpoint, getRootReader, isExhausted, isLineageSupported, isSaveLineage, peek, pop, push, read, readImpl, setSaveLineage, skip
decrementRecordCount, enableJmx, getLastRecord, getRecordCount, getRecordCountAsBigInteger, getRecordCountAsString, incrementRecordCount, isRecordCountBigInteger, resetRecordCount, toString
addElapsedtime, assertClosed, assertNotOpened, assertOpened, finalize, getClosedOn, getDescription, getElapsedTime, getElapsedTimeAsString, getOpenedOn, getOpenElapsedTime, getOpenElapsedTimeAsString, getSelfTime, getSelfTimeAsString, getState, isCaptureElapsedTime, isClosed, isOpen, setCaptureElapsedTime, setDescription
protected 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
DataEndpoint
close
in class DataEndpoint
DataException
public DataException addExceptionProperties(DataException exception)
Endpoint
DataException
. Since this method is called whenever an
exception is thrown, subclasses should override it to add their specific information.addExceptionProperties
in class DataReader
protected <T extends GenericJson> T setJsonFactory(T object)
protected static DataException toException(GoogleJsonError e, HttpHeaders responseHeaders)
protected static Date toDate(DateTime dateTime)
Copyright (c) 2006-2024 North Concepts Inc. All Rights Reserved.