@Test public void codecConfig() throws Exception{ LuceneIndexDefinition defn = new LuceneIndexDefinition(root, builder.getNodeState(), "/foo"); assertNotNull(defn.getCodec()); assertEquals(oakCodec.getName(), defn.getCodec().getName()); builder.setProperty(FulltextIndexConstants.FULL_TEXT_ENABLED, false); defn = new LuceneIndexDefinition(root, builder.getNodeState(), "/foo"); assertNull(defn.getCodec()); Codec simple = Codec.getDefault(); builder.setProperty(LuceneIndexConstants.CODEC_NAME, simple.getName()); defn = new LuceneIndexDefinition(root, builder.getNodeState(), "/foo"); assertNotNull(defn.getCodec()); assertEquals(simple.getName(), defn.getCodec().getName()); }
@Nullable public Codec getCodec() { return codec; }
LuceneIndexDefinition extends IndexDefinition { @Nullable public Codec getCodec() { return codec; } }
LuceneIndexDefinition extends IndexDefinition { @Nullable public Codec getCodec() { return codec; } LuceneIndexDefinition(NodeState root, NodeState defn, String indexPath);   LuceneIndexDefinition(NodeState root, NodeState defn, IndexFormatVersion version, String uid, String indexPath); }
LuceneIndexDefinition extends IndexDefinition { @Nullable public Codec getCodec() { return codec; } 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 { @Nullable public Codec getCodec() { return codec; } 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();  }