コード例 #1
0
 @Override
 public void traverse(ObjectMapperListener objectMapperListener) {
   objectMapperListener.objectMapper(this);
   for (Mapper mapper : mappers.values()) {
     mapper.traverse(objectMapperListener);
   }
 }
コード例 #2
0
 @Override
 public void includeInAllIfNotSet(Boolean includeInAll) {
   if (this.includeInAll == null) {
     this.includeInAll = includeInAll;
   }
   // when called from outside, apply this on all the inner mappers
   for (Mapper mapper : mappers.values()) {
     if (mapper instanceof AllFieldMapper.IncludeInAll) {
       ((AllFieldMapper.IncludeInAll) mapper).includeInAllIfNotSet(includeInAll);
     }
   }
 }
コード例 #3
0
 @Override
 public UnmodifiableIterator<IndexShard> iterator() {
   return shards.values().iterator();
 }
コード例 #4
0
 @Override
 public void close() {
   for (Mapper mapper : mappers.values()) {
     mapper.close();
   }
 }
コード例 #5
0
 @Override
 public void traverse(FieldMapperListener fieldMapperListener) {
   for (Mapper mapper : mappers.values()) {
     mapper.traverse(fieldMapperListener);
   }
 }