예제 #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void setup() throws java.io.IOException
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void Setup()
        {
            _index = LuceneSchemaIndexBuilder.create(IndexDescriptorFactory.forSchema(SchemaDescriptorFactory.forLabel(1, 1)), Config.defaults()).withFileSystem(Fs).withIndexRootFolder(Directory.directory()).build();
            _index.create();
            _index.open();
        }
예제 #2
0
 public IIndexBuilder AlterIndex(SchemaIndex index)
 {
     AddStatement(AlterIndexInternal(index));
     return(this);
 }
예제 #3
0
 public UniqueLuceneIndexPopulatingUpdater(LuceneIndexWriter writer, int[] propertyKeyIds, SchemaIndex luceneIndex, NodePropertyAccessor nodePropertyAccessor, UniqueIndexSampler sampler) : base(writer)
 {
     this._propertyKeyIds       = propertyKeyIds;
     this._luceneIndex          = luceneIndex;
     this._nodePropertyAccessor = nodePropertyAccessor;
     this._sampler = sampler;
 }