org.hd.d.pg2k.svrCore
Enum ExhibitPropsComputableMutableVoteCache.CorrType

java.lang.Object
  extended by java.lang.Enum<ExhibitPropsComputableMutableVoteCache.CorrType>
      extended by org.hd.d.pg2k.svrCore.ExhibitPropsComputableMutableVoteCache.CorrType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ExhibitPropsComputableMutableVoteCache.CorrType>
Enclosing class:
ExhibitPropsComputableMutableVoteCache

public static enum ExhibitPropsComputableMutableVoteCache.CorrType
extends java.lang.Enum<ExhibitPropsComputableMutableVoteCache.CorrType>

Correlation types. By default most correlation types/data is "dense", ie there should be many examples for and against each value.

Some types are "sparse", ie where we usually expect only one or two examples for a given value, and so we want to filter these more gently than usual.


Enum Constant Summary
ATTRIBUTE
          By exhibit attribute word(s).
AUTHOR
          By author.
CATEGORY
          By exhibit category.
MAIN_WORD
          By exhibit main word.
MIME1
          By MIME primary type component.
PREFIX
          By prefixes.
RESOLUTION
          By exhibit resolution (eg pixels).
SIMILAR
          By similar exhibit (sparse).
SIZE
          By exhibit size (bytes).
STEM_WORDS
          By all stem words.
TYPE
          By exhibit type.
VARIANT
          By variation on same exhibit (sparse).
 
Field Summary
private  boolean sparse
          Is this correlation "sparse"?.
 
Method Summary
 boolean isSparse()
          Get the "sparseness" flag.
(package private) static void makeCacheKey(ExhibitPropsComputableMutableVoteCache.CorrType corrType, ExhibitStaticAttr esa, AllExhibitProperties aep, java.util.Set<java.lang.String> result)
          Make the appropriate cache lookup key(s) for a given value and full valid exhibit name; never null.
(package private) static java.util.Set<java.lang.String> makeCacheKeys(ExhibitStaticAttr esa, AllExhibitProperties aep)
          Make all cache keys for a given exhibit; never null.
static ExhibitPropsComputableMutableVoteCache.CorrType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ExhibitPropsComputableMutableVoteCache.CorrType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

VARIANT

public static final ExhibitPropsComputableMutableVoteCache.CorrType VARIANT
By variation on same exhibit (sparse).


SIMILAR

public static final ExhibitPropsComputableMutableVoteCache.CorrType SIMILAR
By similar exhibit (sparse).


SIZE

public static final ExhibitPropsComputableMutableVoteCache.CorrType SIZE
By exhibit size (bytes).


ATTRIBUTE

public static final ExhibitPropsComputableMutableVoteCache.CorrType ATTRIBUTE
By exhibit attribute word(s).


RESOLUTION

public static final ExhibitPropsComputableMutableVoteCache.CorrType RESOLUTION
By exhibit resolution (eg pixels).


MAIN_WORD

public static final ExhibitPropsComputableMutableVoteCache.CorrType MAIN_WORD
By exhibit main word.


CATEGORY

public static final ExhibitPropsComputableMutableVoteCache.CorrType CATEGORY
By exhibit category.


TYPE

public static final ExhibitPropsComputableMutableVoteCache.CorrType TYPE
By exhibit type.


AUTHOR

public static final ExhibitPropsComputableMutableVoteCache.CorrType AUTHOR
By author.


MIME1

public static final ExhibitPropsComputableMutableVoteCache.CorrType MIME1
By MIME primary type component.


PREFIX

public static final ExhibitPropsComputableMutableVoteCache.CorrType PREFIX
By prefixes.


STEM_WORDS

public static final ExhibitPropsComputableMutableVoteCache.CorrType STEM_WORDS
By all stem words.

Field Detail

sparse

private final boolean sparse
Is this correlation "sparse"?.

Method Detail

values

public static ExhibitPropsComputableMutableVoteCache.CorrType[] 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 (ExhibitPropsComputableMutableVoteCache.CorrType c : ExhibitPropsComputableMutableVoteCache.CorrType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ExhibitPropsComputableMutableVoteCache.CorrType 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

isSparse

public final boolean isSparse()
Get the "sparseness" flag.


makeCacheKey

static void makeCacheKey(ExhibitPropsComputableMutableVoteCache.CorrType corrType,
                         ExhibitStaticAttr esa,
                         AllExhibitProperties aep,
                         java.util.Set<java.lang.String> result)
                  throws java.io.IOException
Make the appropriate cache lookup key(s) for a given value and full valid exhibit name; never null. Add zero-or-more, non-null, non-empty cache key(s) of the form: ENUM : value eg SIZE:16

Parameters:
corrType - the correlation type; never null
esa - exhibit details; never null
aep - never null
result - non-null, mutable Set to which result is added
Throws:
java.io.IOException - if key cannot be constructed

makeCacheKeys

static java.util.Set<java.lang.String> makeCacheKeys(ExhibitStaticAttr esa,
                                                     AllExhibitProperties aep)
Make all cache keys for a given exhibit; never null. This may return a variable number of keys, and may ignore those that cannot currently be made and are unlikely ever to be made, but is as consistent as possible for any one exhibit.

Returns:
non-null, possibly-empty, set of cache keys

DHD Multimedia Gallery V1.50.55

Copyright (c) 1996-2008, Damon Hart-Davis. All rights reserved.