|
Oracle® Coherence Java API Reference v3.5 E14977-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tangosol.util.Base
com.tangosol.util.BitHelper
com.tangosol.util.ExternalizableHelper
com.tangosol.util.extractor.AbstractExtractor
com.tangosol.util.extractor.PofExtractor
public class PofExtractor
POF-based ValueExtractor implementation.
Field Summary |
---|
Fields inherited from class com.tangosol.util.extractor.AbstractExtractor |
---|
KEY, m_nTarget, VALUE |
Constructor Summary | |
---|---|
PofExtractor()
Default constructor (necessary for the PortableObject interface). |
|
PofExtractor(int iProp)
Constructs a PofExtractor based on a property index. |
|
PofExtractor(PofNavigator navigator)
Constructs a PofExtractor based on a POF navigator. |
|
PofExtractor(PofNavigator navigator,
int nTarget)
Constructs a PofExtractor based on a POF navigator and the entry extraction target. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Compare the PofExtractor with another object to determine equality. |
java.lang.Object |
extractFromEntry(java.util.Map.Entry entry)
Extracts the value from the passed Entry object. |
PofNavigator |
getNavigator()
Obtain the POF navigator for this extractor. |
int |
hashCode()
Determine a hash value for the PofExtractor object according to the general Object.hashCode() contract. |
void |
readExternal(PofReader in)
Restore the contents of a user type instance by reading its state using the specified PofReader object. |
java.lang.String |
toString()
Return a human-readable description for this PofExtractor. |
void |
writeExternal(PofWriter out)
Save the contents of a POF user type instance by writing its state using the specified PofWriter object. |
Methods inherited from class com.tangosol.util.extractor.AbstractExtractor |
---|
compare, compareEntries, extract |
Methods inherited from class com.tangosol.util.BitHelper |
---|
countBits, countBits, countBits, indexOfLSB, indexOfLSB, indexOfLSB, indexOfMSB, indexOfMSB, indexOfMSB, rotateLeft, rotateLeft, rotateLeft, rotateRight, rotateRight, rotateRight, toBitString, toBitString, toBitString |
Constructor Detail |
---|
public PofExtractor()
public PofExtractor(int iProp)
PofExtractor extractor = new PofExtractor(new SimplePofPath(iProp), VALUE);
iProp
- property indexpublic PofExtractor(PofNavigator navigator)
navigator
- POF navigatorpublic PofExtractor(PofNavigator navigator, int nTarget)
navigator
- POF navigatornTarget
- one of the AbstractExtractor.VALUE
or AbstractExtractor.KEY
valuesMethod Detail |
---|
public java.lang.Object extractFromEntry(java.util.Map.Entry entry)
BinaryEntry
interface.
extractFromEntry
in class AbstractExtractor
entry
- an Entry object to extract a value from
java.lang.UnsupportedOperationException
- if the specified Entry is not
a POF-encoded BinaryEntry
or the serializer is not
a PofContextpublic PofNavigator getNavigator()
public boolean equals(java.lang.Object o)
equals
in interface ValueExtractor
equals
in interface java.util.Comparator
o
- the reference object with which to compare
public int hashCode()
Object.hashCode()
contract.
hashCode
in interface ValueExtractor
public java.lang.String toString()
toString
in interface ValueExtractor
public void readExternal(PofReader in) throws java.io.IOException
readExternal
in interface PortableObject
in
- the PofReader from which to read the object's state
java.io.IOException
- if an I/O error occurspublic void writeExternal(PofWriter out) throws java.io.IOException
writeExternal
in interface PortableObject
out
- the PofWriter to which to write the object's state
java.io.IOException
- if an I/O error occurs
|
Oracle® Coherence Java API Reference v3.5 E14977-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |