public class Document extends Object
Row
using a
DocumentConverter
and to be sourced by a DocumentSource
.
A document does not require any schema. A document will hold key/value pairs
where keys are always strings, but values may be arbitrary values.Constructor and Description |
---|
Document(Map<String,?> values,
Object sourceObject) |
Document(String sourceCollectionName,
Map<String,?> values,
Object sourceObject) |
Modifier and Type | Method and Description |
---|---|
String |
getSourceCollectionName()
Gets the collection/table name as defined in the source, or a hint about
a table name of this document.
|
Object |
getSourceObject()
Gets the source representation of the document, if any.
|
Map<String,?> |
getValues()
Gets the values of the document.
|
public Object getSourceObject()
public String getSourceCollectionName()
DocumentSource
does not have any knowledge about the originating
collection name, or if there is no logical way to determine such a name.Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.