summaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-08-29 13:05:56 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2019-08-29 13:05:56 +0200
commit7329fa33954740d789809535b26e6d3a06ce4a46 (patch)
tree974793c619d158ed14e07422bfb289a97f6df9b2 /document
parent61b0981510ad66d75496a7e1b6618d69ba90f7b0 (diff)
Call addFieldSets for genrated document types in order for fieldSet and fieldSetAll to work.
Verify that _zcurve generated fields are not exposet in the default fieldSet().
Diffstat (limited to 'document')
-rwxr-xr-xdocument/src/main/java/com/yahoo/document/DocumentType.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/document/src/main/java/com/yahoo/document/DocumentType.java b/document/src/main/java/com/yahoo/document/DocumentType.java
index 2c9fe7b30d1..08b0fe94046 100755
--- a/document/src/main/java/com/yahoo/document/DocumentType.java
+++ b/document/src/main/java/com/yahoo/document/DocumentType.java
@@ -398,6 +398,13 @@ public class DocumentType extends StructuredDataType {
return field;
}
+ /**
+ * All fields defined in the document and its parents
+ * This is for internal use
+ * Use {@link #fieldSet()} instead or {@link #fieldSetAll()} if you really want all fields
+ * @return All fields defined in the document and its parents
+ */
+ @Override
public Collection<Field> getFields() {
Collection<Field> collection = new LinkedList<>();
@@ -439,7 +446,7 @@ public class DocumentType extends StructuredDataType {
}
/**
- * This is identical to @link fieldSet, but in addition extra hidden synthetic fields are returned.
+ * This is identical to {@link #fieldSet()} fieldSet}, but in addition extra hidden synthetic fields are returned.
* @return an unmodifiable snapshot of the all fields in this type
*/
public Set<Field> fieldSetAll() {