|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.gdata.storage.lucenestorage.StorageEntryWrapper
public class StorageEntryWrapper
This immutable class wrapps ServerBaseEntry for an internal Storage representation of an entry. This class also acts as a Documentfactory for lucene documents to be stored inside the index.
Nested Class Summary | |
---|---|
static class |
StorageEntryWrapper.StorageOperation
Storage operations |
Field Summary | |
---|---|
static String |
FIELD_CONTENT
lucene field name entry content |
static String |
FIELD_ENTRY_ID
lucene field name Entry id |
static String |
FIELD_FEED_REFERENCE
lucene field name feed id |
static String |
FIELD_TIMESTAMP
lucene field name creating timestamp |
static String |
FIELD_VERSION
lucene field name entry version |
Constructor Summary | |
---|---|
StorageEntryWrapper(ServerBaseEntry entry,
StorageEntryWrapper.StorageOperation operation)
Creates a new StorageEntryWrapper. |
Method Summary | |
---|---|
int |
compareTo(StorageEntryWrapper arg0)
This compare method compares the timestamps of the wrapper instances. |
ProvidedService |
getConfigurator()
|
com.google.gdata.data.BaseEntry |
getEntry()
|
String |
getEntryId()
|
String |
getFeedId()
|
Document |
getLuceneDocument()
Returns a Lucene document representing the Wrapped Entry |
StorageEntryWrapper.StorageOperation |
getOperation()
|
Long |
getTimestamp()
|
int |
getVersion()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String FIELD_ENTRY_ID
public static final String FIELD_FEED_REFERENCE
public static final String FIELD_CONTENT
public static final String FIELD_TIMESTAMP
public static final String FIELD_VERSION
Constructor Detail |
---|
public StorageEntryWrapper(ServerBaseEntry entry, StorageEntryWrapper.StorageOperation operation) throws IOException
entry
- -
the entry to wrapoperation
- -
the StorageOperation
IOException
- -
if the entry content can not be generatedMethod Detail |
---|
public Document getLuceneDocument()
StorageWrapper
getLuceneDocument
in interface StorageWrapper
StorageWrapper.getLuceneDocument()
public com.google.gdata.data.BaseEntry getEntry()
public String getEntryId()
public String getFeedId()
public StorageEntryWrapper.StorageOperation getOperation()
public int compareTo(StorageEntryWrapper arg0)
compareTo
in interface Comparable<StorageEntryWrapper>
arg0
- -
the wrapper to compare
public ProvidedService getConfigurator()
ProvidedServiceConfig
public Long getTimestamp()
public int getVersion()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |