org.neo4j.graphdb.schema.Schema.getIndexPopulationProgress()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(3.5k)|赞(0)|评价(0)|浏览(120)

本文整理了Java中org.neo4j.graphdb.schema.Schema.getIndexPopulationProgress()方法的一些代码示例,展示了Schema.getIndexPopulationProgress()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Schema.getIndexPopulationProgress()方法的具体详情如下:
包路径:org.neo4j.graphdb.schema.Schema
类名称:Schema
方法名:getIndexPopulationProgress

Schema.getIndexPopulationProgress介绍

[英]Poll the database for the population progress. This can be used to track the progress of the population job associated to the given index. If the index is IndexState#POPULATING or IndexState#ONLINE, the state will contain current progress. If the index is IndexState#FAILED then the state returned from this method should be regarded as invalid.
[中]对数据库中的人口进展情况进行民意调查。这可用于跟踪与给定索引关联的总体工作的进度。如果索引是IndexState#POPULATING或IndexState#ONLINE,则该状态将包含当前进度。如果索引为IndexState#FAILED,则此方法返回的状态应视为无效。

代码示例

代码示例来源:origin: neo4j/neo4j

public ListRepresentation getSchemaIndexes()
{
  Iterable<IndexDefinition> definitions = graphDb.schema().getIndexes();
  Iterable<IndexDefinitionRepresentation> representations = map( definition -> new IndexDefinitionRepresentation( definition,
      graphDb.schema().getIndexState( definition ),
      graphDb.schema().getIndexPopulationProgress( definition ) ), definitions );
  return new ListRepresentation( RepresentationType.INDEX_DEFINITION, representations );
}

代码示例来源:origin: neo4j/neo4j

public ListRepresentation getSchemaIndexes( String labelName )
{
  Iterable<IndexDefinition> definitions = graphDb.schema().getIndexes( label( labelName ) );
  Iterable<IndexDefinitionRepresentation> representations = map( definition -> new IndexDefinitionRepresentation( definition,
      graphDb.schema().getIndexState( definition ),
      graphDb.schema().getIndexPopulationProgress( definition ) ), definitions );
  return new ListRepresentation( RepresentationType.INDEX_DEFINITION, representations );
}

代码示例来源:origin: neo4j/neo4j

progress = schema.getIndexPopulationProgress( indexDefinition );

代码示例来源:origin: org.neo4j/neo4j-shell

@Override
public IndexPopulationProgress getIndexPopulationProgress( IndexDefinition index )
{
  return actual.getIndexPopulationProgress( index );
}

代码示例来源:origin: org.neo4j/neo4j-shell

private void printIndexProgress( Output out, org.neo4j.graphdb.schema.Schema schema, Label[] labels,
    String property ) throws RemoteException
{
  for ( IndexDefinition index : indexesByLabelAndProperty( schema, labels, property ) )
  {
    out.println( String.format( "%s: %1.1f%%", index.getLabel().name(),
        schema.getIndexPopulationProgress( index ).getCompletedPercentage() ) );
  }
}

代码示例来源:origin: org.neo4j.app/neo4j-server

public ListRepresentation getSchemaIndexes()
{
  Iterable<IndexDefinition> definitions = graphDb.schema().getIndexes();
  Iterable<IndexDefinitionRepresentation> representations = map( definition -> new IndexDefinitionRepresentation( definition,
      graphDb.schema().getIndexState( definition ),
      graphDb.schema().getIndexPopulationProgress( definition ) ), definitions );
  return new ListRepresentation( RepresentationType.INDEX_DEFINITION, representations );
}

代码示例来源:origin: org.neo4j.app/neo4j-server

public ListRepresentation getSchemaIndexes( String labelName )
{
  Iterable<IndexDefinition> definitions = graphDb.schema().getIndexes( label( labelName ) );
  Iterable<IndexDefinitionRepresentation> representations = map( definition -> new IndexDefinitionRepresentation( definition,
      graphDb.schema().getIndexState( definition ),
      graphDb.schema().getIndexPopulationProgress( definition ) ), definitions );
  return new ListRepresentation( RepresentationType.INDEX_DEFINITION, representations );
}

代码示例来源:origin: org.neo4j.examples/neo4j-examples

schema.getIndexPopulationProgress( indexDefinition ).getCompletedPercentage() ) );

相关文章