@Test public void uniqueIdForFreshIndex() throws Exception{ IndexDefinition defn = IndexDefinition.newBuilder(root, builder.getNodeState(), "/foo").build(); assertEquals("0", defn.getUniqueId()); builder.child(":status"); defn = IndexDefinition.newBuilder(root, builder.getNodeState(),"/foo").build(); assertNull(defn.getUniqueId()); }
public static Builder newBuilder(NodeState root, NodeState defn, String indexPath){ return (Builder)new Builder() .root(root) .defn(defn) .indexPath(indexPath); }
LuceneIndexDefinition extends IndexDefinition { public static Builder newBuilder(NodeState root, NodeState defn, String indexPath){ return (Builder)new Builder() .root(root) .defn(defn) .indexPath(indexPath); } }
LuceneIndexDefinition extends IndexDefinition { public static Builder newBuilder(NodeState root, NodeState defn, String indexPath){ return (Builder)new Builder() .root(root) .defn(defn) .indexPath(indexPath); } LuceneIndexDefinition(NodeState root, NodeState defn, String indexPath);   LuceneIndexDefinition(NodeState root, NodeState defn, IndexFormatVersion version, String uid, String indexPath); }
LuceneIndexDefinition extends IndexDefinition { public static Builder newBuilder(NodeState root, NodeState defn, String indexPath){ return (Builder)new Builder() .root(root) .defn(defn) .indexPath(indexPath); } LuceneIndexDefinition(NodeState root, NodeState defn, String indexPath);   LuceneIndexDefinition(NodeState root, NodeState defn, IndexFormatVersion version, String uid, String indexPath); static Builder newBuilder(NodeState root, NodeState defn, String indexPath); boolean saveDirListing(); @Nullable Codec getCodec(); @NotNull MergePolicy getMergePolicy(); Analyzer getAnalyzer(); }
LuceneIndexDefinition extends IndexDefinition { public static Builder newBuilder(NodeState root, NodeState defn, String indexPath){ return (Builder)new Builder() .root(root) .defn(defn) .indexPath(indexPath); } LuceneIndexDefinition(NodeState root, NodeState defn, String indexPath);   LuceneIndexDefinition(NodeState root, NodeState defn, IndexFormatVersion version, String uid, String indexPath); static Builder newBuilder(NodeState root, NodeState defn, String indexPath); boolean saveDirListing(); @Nullable Codec getCodec(); @NotNull MergePolicy getMergePolicy(); Analyzer getAnalyzer();  }