Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

12
LINES

< > BotCompany Repo | #1030599 // printConceptIndices

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (14667L/94K).

1  
svoid printConceptIndices(Concepts cc default db_mainConcepts()) {
2  
  if (cc == null) ret;
3  
  Set<Class<? extends Concept>> classes = joinSets(keys(cc.fieldIndices), keys(cc.ciFieldIndices));
4  
  print(n2(classes, "indexed class", "indexed classes") + ".");
5  
  for (Class<? extends Concept> c : classes) {
6  
    print("Indices on " + c + ":");
7  
    for (S field, IFieldIndex idx : cc.fieldIndices.get(c))
8  
      print("  " + field + ": " + idx);
9  
    for (S field, IFieldIndex idx : cc.ciFieldIndices.get(c))
10  
      print("  " + field + " [case-insensitive]: " + idx);
11  
  }
12  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030599
Snippet name: printConceptIndices
Eternal ID of this version: #1030599/3
Text MD5: a6da36cb73c39aa9fc14cb284cc72a34
Transpilation MD5: 626505f9383afdce6cbbf26d3548e048
Author: stefan
Category: javax / concepts
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-01-17 03:24:41
Source code size: 574 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 214 / 303
Version history: 2 change(s)
Referenced in: [show references]