Class DrillDataStore<V extends Serializable>
java.lang.Object
com.google.api.client.util.store.AbstractDataStore<V>
com.google.api.client.util.store.AbstractMemoryDataStore<V>
org.apache.drill.exec.store.googlesheets.DrillDataStore<V>
- All Implemented Interfaces:
com.google.api.client.util.store.DataStore<V>
public class DrillDataStore<V extends Serializable>
extends com.google.api.client.util.store.AbstractMemoryDataStore<V>
-
Field Summary
Fields inherited from class com.google.api.client.util.store.AbstractMemoryDataStore
keyValueMap -
Method Summary
Methods inherited from class com.google.api.client.util.store.AbstractMemoryDataStore
clear, containsKey, containsValue, delete, get, isEmpty, keySet, set, size, valuesMethods inherited from class com.google.api.client.util.store.AbstractDataStore
getId
-
Method Details
-
save
public void save()Updates credentials in Drill's persistent store.- Overrides:
savein classcom.google.api.client.util.store.AbstractMemoryDataStore<V extends Serializable>
-
getStoredCredential
public com.google.api.client.auth.oauth2.StoredCredential getStoredCredential()Returns aStoredCredentialcontaining the given user's access and refresh tokens. This method must only be called AFTER the tokenTable has been initialized.- Returns:
- A
with the user's access and refresh tokens.
-
getDataStoreFactory
- Specified by:
getDataStoreFactoryin interfacecom.google.api.client.util.store.DataStore<V extends Serializable>- Overrides:
getDataStoreFactoryin classcom.google.api.client.util.store.AbstractDataStore<V extends Serializable>
-
toString
- Overrides:
toStringin classcom.google.api.client.util.store.AbstractMemoryDataStore<V extends Serializable>
-