@Override boolean equalsTo(Expr expr) { CreateIndex other = (CreateIndex) expr; return this.unique == other.unique && this.indexName.equals(other.indexName) && TUtil.checkEquals(this.sortSpecs, other.sortSpecs) && TUtil.checkEquals(this.params, other.params) && this.methodSpec.equals(other.methodSpec) && this.external == other.external; }
createIndexNode.setIndexMethod(IndexMethod.valueOf(createIndex.getMethodSpec().getName().toUpperCase())); if (createIndex.isExternal()) { createIndexNode.setIndexPath(new Path(createIndex.getIndexPath()).toUri());
createIndexNode.setIndexMethod(IndexMethod.valueOf(createIndex.getMethodSpec().getName().toUpperCase())); if (createIndex.isExternal()) { createIndexNode.setIndexPath(new Path(createIndex.getIndexPath()).toUri());
createIndex.setMethodSpec(new IndexMethodSpec(methodName));
createIndex.setMethodSpec(new IndexMethodSpec(methodName));
public CreateIndex(final String indexName, final SortSpec[] sortSpecs) { super(OpType.CreateIndex); this.indexName = indexName; this.sortSpecs = sortSpecs; this.methodSpec = new IndexMethodSpec("TWO_LEVEL_BIN_TREE"); }
public CreateIndex(final String indexName, final SortSpec[] sortSpecs) { super(OpType.CreateIndex); this.indexName = indexName; this.sortSpecs = sortSpecs; this.methodSpec = new IndexMethodSpec("TWO_LEVEL_BIN_TREE"); }
@Override boolean equalsTo(Expr expr) { CreateIndex other = (CreateIndex) expr; return this.unique == other.unique && this.indexName.equals(other.indexName) && TUtil.checkEquals(this.sortSpecs, other.sortSpecs) && TUtil.checkEquals(this.params, other.params) && this.methodSpec.equals(other.methodSpec) && this.external == other.external; }