Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.forum.database.querycache
Class IDKeyValueExtractor

java.lang.Object
  extended by com.tangosol.util.Base
      extended by com.tangosol.util.extractor.AbstractExtractor
          extended by com.tangosol.util.extractor.KeyExtractor
              extended by com.jivesoftware.forum.database.querycache.IDKeyValueExtractor
All Implemented Interfaces:
com.tangosol.io.ExternalizableLite, com.tangosol.io.pof.PortableObject, com.tangosol.util.comparator.QueryMapComparator, com.tangosol.util.ValueExtractor, java.io.Serializable, java.util.Comparator

public class IDKeyValueExtractor
extends com.tangosol.util.extractor.KeyExtractor
implements com.tangosol.io.ExternalizableLite

ValueExtractor which calls QueryCacheKey.getIDKey(). Used for indexing QueryCacheKeys by idKey within coherence.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.tangosol.util.Base
com.tangosol.util.Base.StackFrame
 
Field Summary
 
Fields inherited from class com.tangosol.util.extractor.KeyExtractor
m_extractor
 
Fields inherited from class com.tangosol.util.Base
POWER_0, POWER_G, POWER_K, POWER_M, POWER_T, UNIT_D, UNIT_H, UNIT_M, UNIT_MS, UNIT_NS, UNIT_S, UNIT_US
 
Constructor Summary
IDKeyValueExtractor()
           
 
Method Summary
 boolean equals(java.lang.Object o)
          All instances of this class are equal
 java.lang.Object extract(java.lang.Object object)
          Returns the value of QueryCacheKey.getIDKey().
static IDKeyValueExtractor getInstance()
          Not a singleton accessor sinces instances are serialized and passed around through coherence, but some degree of object creation can be avoided by using this within our code.
 int hashCode()
           
 void readExternal(java.io.DataInput dataInput)
           
 void writeExternal(java.io.DataOutput dataOutput)
           
 
Methods inherited from class com.tangosol.util.extractor.KeyExtractor
getExtractor, readExternal, toString, writeExternal
 
Methods inherited from class com.tangosol.util.extractor.AbstractExtractor
compare, compareEntries
 
Methods inherited from class com.tangosol.util.Base
azzert, azzert, azzert, azzertFailed, breakLines, breakLines, decimalValue, dup, dup, ensureRuntimeException, ensureRuntimeException, equals, equalsDeep, err, err, err, err, err, escape, formatDateTime, getCallerStackFrame, getCommonMonitor, getCommonMonitor, getContextClassLoader, getContextClassLoader, getErr, getLog, getMaxDecDigits, getMaxHexDigits, getOriginalException, getOut, getRandom, getRandomBinary, getRandomString, getSafeTimeMillis, getStackFrame, getStackFrames, getStackTrace, getStackTrace, hexValue, indentString, indentString, isDecimal, isHex, isLogEcho, isOctal, log, log, log, log, log, makeInteger, makeLong, makeThread, octalValue, out, out, out, out, out, pad, parseBandwidth, parseBandwidth, parseDelimitedString, parseHex, parseHex, parseMemorySize, parseMemorySize, parseTime, parseTime, parseTimeNanos, parseTimeNanos, printStackTrace, randomize, randomize, randomize, read, read, read, read, read, redirectAll, replace, setErr, setLog, setLogEcho, setOut, toBandwidthString, toBandwidthString, toCharEscape, toCrc, toCrc, toCrc, toDecString, toDelimitedString, toDelimitedString, toDelimitedString, toDelimitedString, toHex, toHex, toHexDump, toHexEscape, toHexEscape, toHexEscape, toHexString, toMemorySizeString, toMemorySizeString, toQuotedCharEscape, toQuotedStringEscape, toSqlString, toString, toStringEscape, toUnicodeEscape, trace, trace, trace, trace, trace, trace, trace, trace, trace, updateSafeTimeMillis
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IDKeyValueExtractor

public IDKeyValueExtractor()
Method Detail

getInstance

public static IDKeyValueExtractor getInstance()
Not a singleton accessor sinces instances are serialized and passed around through coherence, but some degree of object creation can be avoided by using this within our code.

Returns:
a cached instance.

extract

public java.lang.Object extract(java.lang.Object object)
Returns the value of QueryCacheKey.getIDKey().

Specified by:
extract in interface com.tangosol.util.ValueExtractor
Overrides:
extract in class com.tangosol.util.extractor.KeyExtractor
Parameters:
object - the {@link QueryCacheKey) to test.
Returns:
the value of QueryCacheKey.getIDKey().

readExternal

public void readExternal(java.io.DataInput dataInput)
                  throws java.io.IOException
Specified by:
readExternal in interface com.tangosol.io.ExternalizableLite
Overrides:
readExternal in class com.tangosol.util.extractor.KeyExtractor
Throws:
java.io.IOException

writeExternal

public void writeExternal(java.io.DataOutput dataOutput)
                   throws java.io.IOException
Specified by:
writeExternal in interface com.tangosol.io.ExternalizableLite
Overrides:
writeExternal in class com.tangosol.util.extractor.KeyExtractor
Throws:
java.io.IOException

equals

public boolean equals(java.lang.Object o)
All instances of this class are equal

Specified by:
equals in interface com.tangosol.util.ValueExtractor
Specified by:
equals in interface java.util.Comparator
Overrides:
equals in class com.tangosol.util.extractor.KeyExtractor

hashCode

public int hashCode()
Specified by:
hashCode in interface com.tangosol.util.ValueExtractor
Overrides:
hashCode in class com.tangosol.util.extractor.KeyExtractor

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.