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

27
LINES

< > BotCompany Repo | #1029370 // ILCCompactIndex

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

Libraryless. Click here for Pure Java version (68L/1K).

1  
asclass ILCCompactIndex {
2  
  S its(int idx) { ret itemToString(idx); }
3  
  abstract S itemToString(int idx);
4  
  abstract int numLeftPairs(int symbol);
5  
  abstract int numRightPairs(int symbol);
6  
  abstract int[] getLeftPairs(int symbol);
7  
  abstract int[] getRightPairs(int symbol);
8  
  abstract int getProdLength(int idx);
9  
  abstract int getOccurrences(int idx);
10  
  abstract int lookupLiteral(char c);
11  
  int pairLeft(int idx) { ret firstIntFromLong(getPair(idx)); }
12  
  int pairRight(int idx) { ret secondIntFromLong(getPair(idx)); }
13  
  abstract long getPair(int idx);
14  
  abstract int numberOfSymbols();
15  
  abstract S filePartToString(int iFile, int from, int to);
16  
  
17  
  abstract IntegerIterator getRightPairsStartingWith(int symbol, S from);
18  
  abstract IntegerIterator getLeftPairsEndingWith(int symbol, S from);
19  
  abstract L<Int> symbolToFiles(int symbol); // values start at numberOfSymbols()
20  
  abstract S symbolToProtocol(int symbol, O... _);
21  
  abstract int getFile(int iFile); // iFile starts at 0
22  
  abstract int getFileLength(int iFile); // iFile starts at 0
23  
  abstract int nFiles();
24  
  abstract int nLiterals();
25  
  abstract bool isPair(int symbol);
26  
  abstract CharacterIterator itemCharIteratorWithSkip(int symbol, int skip); 
27  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1029370
Snippet name: ILCCompactIndex
Eternal ID of this version: #1029370/17
Text MD5: e85d3f36aa737b0511bc077ab1ecd11d
Transpilation MD5: 33d75cd415041e340c9a12b925a06155
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-08-17 17:04:51
Source code size: 1244 bytes / 27 lines
Pitched / IR pitched: No / No
Views / Downloads: 276 / 614
Version history: 16 change(s)
Referenced in: [show references]