no effective change - format only

This commit is contained in:
Rob Bygrave
2016-11-17 19:06:26 +13:00
parent 709d4151f2
commit 82151872fd
10 changed files with 18 additions and 19 deletions
@@ -5,7 +5,7 @@ import java.io.IOException;
/**
* Update the document store using a Ebean ORM query.
* <p>
* Executes a forEach query and updates the document store with the bean object graph returned by the query.
* Executes a forEach query and updates the document store with the bean object graph returned by the query.
* </p>
*/
public interface DocStoreQueryUpdate<T> {
@@ -25,9 +25,9 @@ public interface DocStoreUpdateProcessor {
* to a queue for future processing.
* </p>
*
* @param docStoreUpdates The 'Bulk' and 'Queue' updates to the indexes for the transaction.
* @param bulkBatchSize The batch size to use for Bulk API calls specified on the transaction.
* If this is 0 then the default batch size is used.
* @param docStoreUpdates The 'Bulk' and 'Queue' updates to the indexes for the transaction.
* @param bulkBatchSize The batch size to use for Bulk API calls specified on the transaction.
* If this is 0 then the default batch size is used.
*/
void process(DocStoreUpdates docStoreUpdates, int bulkBatchSize);
@@ -20,7 +20,7 @@ public class DocMappingBuilder {
private final Stack<DocPropertyMapping> properties = new Stack<>();
private final Map<String,DocPropertyMapping> map = new LinkedHashMap<>();
private final Map<String, DocPropertyMapping> map = new LinkedHashMap<>();
/**
* Create with the document structure paths and docStore deployment annotation.
@@ -90,7 +90,7 @@ public class DocMappingBuilder {
DocPropertyMapping mapping = map.get(fullName);
if (mapping == null) {
throw new IllegalStateException("DocMapping for ["+fullName+"] but property not included in document?");
throw new IllegalStateException("DocMapping for [" + fullName + "] but property not included in document?");
}
mapping.apply(docMapping);
}
@@ -124,7 +124,7 @@ public class DocMappingBuilder {
*/
private static class SortableVisitor extends DocPropertyAdapter {
private Map<String,String> sortableMap = new LinkedHashMap<>();
private Map<String, String> sortableMap = new LinkedHashMap<>();
@Override
public void visitProperty(DocPropertyMapping property) {
@@ -132,7 +132,7 @@ public class DocMappingBuilder {
DocPropertyOptions options = property.getOptions();
if (options != null && Boolean.TRUE.equals(options.getSortable())) {
String fullPath = pathStack.peekFullPath(property.getName());
sortableMap.put(fullPath, fullPath+".raw");
sortableMap.put(fullPath, fullPath + ".raw");
}
}
@@ -76,7 +76,7 @@ public class DocPropertyMapping {
}
public String toString() {
return "name:"+name+" type:"+type+" options("+options+")";
return "name:" + name + " type:" + type + " options(" + options + ")";
}
/**
@@ -12,7 +12,6 @@ import com.avaje.ebeaninternal.server.core.PersistRequestBean;
import com.avaje.ebeaninternal.server.deploy.BeanDescriptor;
import com.avaje.ebeaninternal.server.deploy.BeanProperty;
import com.avaje.ebeaninternal.server.deploy.InheritInfo;
import com.avaje.ebeaninternal.server.deploy.InheritInfoVisitor;
import com.avaje.ebeaninternal.server.deploy.meta.DeployBeanDescriptor;
import com.avaje.ebeanservice.docstore.api.DocStoreBeanAdapter;
import com.avaje.ebeanservice.docstore.api.DocStoreUpdateContext;
@@ -224,7 +223,7 @@ public abstract class DocStoreBeanBaseAdapter<T> implements DocStoreBeanAdapter<
}
}
int[] pos = new int[posList.size()];
for (int i = 0; i <pos.length; i++) {
for (int i = 0; i < pos.length; i++) {
pos[i] = posList.get(i);
}
return pos;
@@ -244,7 +243,7 @@ public abstract class DocStoreBeanBaseAdapter<T> implements DocStoreBeanAdapter<
protected DocStructure derivePathProperties(PathProperties pathProps) {
boolean includeByDefault = (pathProps == null);
if (pathProps == null) {
if (pathProps == null) {
pathProps = new PathProperties();
}
@@ -1,8 +1,8 @@
package com.avaje.ebeanservice.docstore.api.support;
import com.avaje.ebean.plugin.BeanType;
import com.avaje.ebeanservice.docstore.api.DocStoreUpdateContext;
import com.avaje.ebeanservice.docstore.api.DocStoreUpdate;
import com.avaje.ebeanservice.docstore.api.DocStoreUpdateContext;
import com.avaje.ebeanservice.docstore.api.DocStoreUpdates;
import java.io.IOException;
@@ -5,7 +5,7 @@ import com.avaje.ebeanservice.docstore.api.DocStoreUpdates;
/**
* Checks if a persist request means an embedded/nested object in another document needs updating.
*
* <p>
* This has specific properties to check (so not all properties invalidate).
*/
public final class DocStoreEmbeddedInvalidationProperties extends DocStoreEmbeddedInvalidation {
@@ -1,8 +1,8 @@
package com.avaje.ebeanservice.docstore.api.support;
import com.avaje.ebean.plugin.BeanType;
import com.avaje.ebeanservice.docstore.api.DocStoreUpdateContext;
import com.avaje.ebeanservice.docstore.api.DocStoreUpdate;
import com.avaje.ebeanservice.docstore.api.DocStoreUpdateContext;
import com.avaje.ebeanservice.docstore.api.DocStoreUpdates;
import java.io.IOException;
@@ -22,9 +22,9 @@ public class DocStructure {
/**
* The embedded document structures by path.
*/
private final Map<String,PathProperties> embedded = new HashMap<>();
private final Map<String, PathProperties> embedded = new HashMap<>();
private final Map<String,PathProperties> manyRoot = new HashMap<>();
private final Map<String, PathProperties> manyRoot = new HashMap<>();
/**
* Create given an initial deployment doc mapping.
@@ -72,7 +72,7 @@ public class DocStructure {
public <T> void prepareMany(BeanDescriptor<T> desc) {
Set<String> strings = embedded.keySet();
for (String prop : strings) {
BeanPropertyAssoc<?> embProp = (BeanPropertyAssoc<?>)desc.findBeanProperty(prop);
BeanPropertyAssoc<?> embProp = (BeanPropertyAssoc<?>) desc.findBeanProperty(prop);
if (embProp.isMany()) {
prepare(prop, embProp);
}
@@ -3,8 +3,8 @@ package com.avaje.ebeanservice.docstore.none;
import com.avaje.ebean.DocumentStore;
import com.avaje.ebean.plugin.SpiServer;
import com.avaje.ebeaninternal.server.deploy.BeanDescriptor;
import com.avaje.ebeanservice.docstore.api.DocStoreBeanAdapter;
import com.avaje.ebeaninternal.server.deploy.meta.DeployBeanDescriptor;
import com.avaje.ebeanservice.docstore.api.DocStoreBeanAdapter;
import com.avaje.ebeanservice.docstore.api.DocStoreFactory;
import com.avaje.ebeanservice.docstore.api.DocStoreIntegration;
import com.avaje.ebeanservice.docstore.api.DocStoreUpdateProcessor;