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

    Modifier and Type
    Method
    Description
     
    com.google.api.client.auth.oauth2.StoredCredential
    Returns a StoredCredential containing the given user's access and refresh tokens.
    void
    Updates credentials in Drill's persistent store.
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • save

      public void save()
      Updates credentials in Drill's persistent store.
      Overrides:
      save in class com.google.api.client.util.store.AbstractMemoryDataStore<V extends Serializable>
    • getStoredCredential

      public com.google.api.client.auth.oauth2.StoredCredential getStoredCredential()
      Returns a StoredCredential 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

      public DrillDataStoreFactory getDataStoreFactory()
      Specified by:
      getDataStoreFactory in interface com.google.api.client.util.store.DataStore<V extends Serializable>
      Overrides:
      getDataStoreFactory in class com.google.api.client.util.store.AbstractDataStore<V extends Serializable>
    • toString

      public String toString()
      Overrides:
      toString in class com.google.api.client.util.store.AbstractMemoryDataStore<V extends Serializable>