Enum CacheType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<CacheType>

    public enum CacheType
    extends java.lang.Enum<CacheType>
    • Enum Constant Detail

      • CHILDREN

        public static final CacheType CHILDREN
      • DOCUMENT

        public static final CacheType DOCUMENT
      • PREV_DOCUMENT

        public static final CacheType PREV_DOCUMENT
      • LOCAL_DIFF

        public static final CacheType LOCAL_DIFF
    • Field Detail

      • VALUES

        public static final CacheType[] VALUES
    • Method Detail

      • values

        public static CacheType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CacheType c : CacheType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CacheType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getMapName

        public java.lang.String getMapName()
      • writeKey

        public abstract <K> void writeKey​(org.h2.mvstore.WriteBuffer buffer,
                                          K key)
      • readKey

        public abstract <K> K readKey​(java.nio.ByteBuffer buffer)
      • compareKeys

        public abstract <K> int compareKeys​(K a,
                                            K b)
      • writeValue

        public abstract <V> void writeValue​(org.h2.mvstore.WriteBuffer buffer,
                                            V value)
      • shouldCache

        public abstract <K> boolean shouldCache​(DocumentNodeStore store,
                                                K key)