|
Xindice API version 1.2m1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xindice.core.meta.inline.InlineMetaService
If the documents in a collection have headers, the Collection object holds an instance of this class. All services the collection needs for working with inline metadata are provided by this class.
Nested Class Summary | |
static class |
InlineMetaService.DatabaseEntry
Utility class for returning an InlineMetaMap and Value from readDatabaseEntry(Value) . |
Field Summary | |
static Class |
currentMapClass
The InlineMetaMap class associated with the current header version. |
static InlineMetaWriter |
currentWriter
The writer corresponding to the current header version. |
static InlineMetaReader[] |
readerByVersion
The known readers. |
Constructor Summary | |
InlineMetaService()
|
Method Summary | |
Value |
createValue(InlineMetaMap map,
byte[] data,
int offset,
int length)
Create a Value object containing the appropriate header and data. |
InlineMetaMap |
getEmptyMap()
Get an InlineMetaMap instance corresponding to the
current header version. |
boolean |
haveReaderForVersion(int version)
Returns true if a reader is available for the specified version. |
InlineMetaService.DatabaseEntry |
readDatabaseEntry(Value rawValue)
Given a Value object from the database,
disassemble it into its component metadata and entry data
components. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final InlineMetaReader[] readerByVersion
public static final InlineMetaWriter currentWriter
public static final Class currentMapClass
Constructor Detail |
public InlineMetaService()
Method Detail |
public InlineMetaMap getEmptyMap()
InlineMetaMap
instance corresponding to the
current header version. Used by Collection
to inform
the InlineMeta code of the metadata values for the entry being stored.
public Value createValue(InlineMetaMap map, byte[] data, int offset, int length) throws InlineMetaException
Value
object containing both, ready to store.
map
- containing metadatadata
- containing entry to be stored in databaseoffset
- in the data to the beginning of the entrylength
- of the entry
InlineMetaException
- if the metadata is incompletepublic boolean haveReaderForVersion(int version)
version
- of the header
public InlineMetaService.DatabaseEntry readDatabaseEntry(Value rawValue) throws InlineMetaException
Value
object from the database,
disassemble it into its component metadata and entry data
components.
rawValue
- containing raw header + entry data from the backing store
InlineMetaMap
and entry data in a Value
.
InlineMetaException
- if missing the reader for the header, or if
the header is corrupted.
|
Xindice API version 1.2m1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |