コード例 #1
0
 @Override
 protected void serialize( MappingSerializer serializer )
 {
     for ( String indexName : indexManager.relationshipIndexNames() )
     {
         RelationshipIndex index = indexManager.forRelationships( indexName );
         serializer.putMapping( indexName,
                 new RelationshipIndexRepresentation( indexName, indexManager.getConfiguration( index ) ) );
     }
 }
コード例 #2
0
  @Override
  protected void serialize(final MappingSerializer serializer) {
    indexManager.nodeIndexNames();

    for (String indexName : indexManager.nodeIndexNames()) {
      Index<Node> index = indexManager.forNodes(indexName);
      serializer.putMapping(
          indexName, new NodeIndexRepresentation(indexName, indexManager.getConfiguration(index)));
    }
  }