Ejemplo n.º 1
0
 public override void Initialize(IndexDescriptor descriptor, IndexProgressor progressor, IndexQuery[] query, IndexOrder order, bool needsValues)
 {
     this.Descriptor          = descriptor;
     this.Progressor          = progressor;
     this.Query               = query;
     this.Order               = order;
     this.NeedsValuesConflict = needsValues;
 }
Ejemplo n.º 2
0
 public override void Close()
 {
     if (!_closed)
     {
         _closed = true;
         _progressor.close();
         _progressor = null;
     }
 }
Ejemplo n.º 3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void closeMustCloseAll()
        public virtual void CloseMustCloseAll()
        {
            IndexDescriptor         index      = TestIndexDescriptorFactory.forLabel(1, 2, 3);
            BridgingIndexProgressor progressor = new BridgingIndexProgressor(null, index.Schema().PropertyIds);

            IndexProgressor[] parts = new IndexProgressor[] { mock(typeof(IndexProgressor)), mock(typeof(IndexProgressor)) };

            // Given
            foreach (IndexProgressor part in parts)
            {
                progressor.Initialize(index, part, null, IndexOrder.NONE, false);
            }

            // When
            progressor.Close();

            // Then
            foreach (IndexProgressor part in parts)
            {
                verify(part, times(1)).close();
            }
        }
Ejemplo n.º 4
0
 public override void Initialize(IndexDescriptor descriptor, IndexProgressor progressor, IndexQuery[] query, IndexOrder indexOrder, bool needsValues)
 {
     this._progressor = progressor;
 }
Ejemplo n.º 5
0
 public IndexProgressorAnonymousInnerClass(IndexProgressor_NodeValueClientAnonymousInnerClass outerInstance, Org.Neo4j.Storageengine.Api.schema.IndexProgressor progressor)
 {
     this.outerInstance = outerInstance;
     this._progressor   = progressor;
 }