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, values
Methods 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:
save
in classcom.google.api.client.util.store.AbstractMemoryDataStore<V extends Serializable>
-
getStoredCredential
public com.google.api.client.auth.oauth2.StoredCredential getStoredCredential()Returns aStoredCredential
containing 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:
getDataStoreFactory
in interfacecom.google.api.client.util.store.DataStore<V extends Serializable>
- Overrides:
getDataStoreFactory
in classcom.google.api.client.util.store.AbstractDataStore<V extends Serializable>
-
toString
- Overrides:
toString
in classcom.google.api.client.util.store.AbstractMemoryDataStore<V extends Serializable>
-