@Override public Content createContent(String uri, ContentCreateOptions options, boolean copyCollections, boolean copyMetadata, boolean copyQuality) throws IOException { if (copyCollections || copyMetadata || copyQuality) { setContentOptions(options, copyCollections, copyMetadata, copyQuality); } return ContentFactory.newContent(uri, getContentAsMarkLogicNode().get(), options); } }
@Override public void write(NodePath path, MarkLogicNode record) throws IOException, InterruptedException { if (record == null || record.get() == null) { throw new UnsupportedOperationException("Record node is null."); } else if (record.get().getNodeType() != Node.ELEMENT_NODE) { throw new UnsupportedOperationException("Unsupported node type: " + record.get().getNodeType());
} else if (value instanceof MarkLogicNode) { content = ContentFactory.newContent(uri, ((MarkLogicNode) value).get(), options); } else if (value instanceof BytesWritable) { content = ContentFactory.newContent(uri,
} else if (value instanceof MarkLogicNode) { content = ContentFactory.newContent(uri, ((MarkLogicNode) value).get(), options); } else if (value instanceof BytesWritable) { content = ContentFactory.newContent(uri,
return ValueFactory.newValue(valueType, ((DoubleWritable)value).get()); } else if (value instanceof MarkLogicNode) { return ValueFactory.newValue(valueType, ((MarkLogicNode)value).get()); } else { throw new UnsupportedOperationException("Value " +
((MarkLogicNode)value).get(), options); } else if (value instanceof ForestDocument) { ContentCreateOptions newOptions = options;