it.unimi.dsi.fastutil.ints.IntAVLTreeSet Java Examples
The following examples show how to use
it.unimi.dsi.fastutil.ints.IntAVLTreeSet.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DataFixerBuilder.java From DataFixerUpper with MIT License | 6 votes |
public DataFixer build(final Executor executor) { final DataFixerUpper fixerUpper = new DataFixerUpper(new Int2ObjectAVLTreeMap<>(schemas), new ArrayList<>(globalList), new IntAVLTreeSet(fixerVersions)); final IntBidirectionalIterator iterator = fixerUpper.fixerVersions().iterator(); while (iterator.hasNext()) { final int versionKey = iterator.nextInt(); final Schema schema = schemas.get(versionKey); for (final String typeName : schema.types()) { CompletableFuture.runAsync(() -> { final Type<?> dataType = schema.getType(() -> typeName); final TypeRewriteRule rule = fixerUpper.getRule(DataFixUtils.getVersion(versionKey), dataVersion); dataType.rewrite(rule, DataFixerUpper.OPTIMIZATION_RULE); }, executor).exceptionally(e -> { LOGGER.error("Unable to build datafixers", e); Runtime.getRuntime().exit(1); return null; }); } } return fixerUpper; }
Example #2
Source File: RhsFilterPruning.java From metanome-algorithms with Apache License 2.0 | 4 votes |
public RhsFilterPruning(int patternThreshold, double minSupportGain, double maxLevelSupportDrop, int possibleRhs) { super(patternThreshold, minSupportGain, maxLevelSupportDrop, 1.0); this.possibleRhs = new IntAVLTreeSet(); this.possibleRhs.add(possibleRhs); }
Example #3
Source File: RhsFilterPruning.java From metanome-algorithms with Apache License 2.0 | 4 votes |
public RhsFilterPruning(int patternThreshold, double minSupportGain, double maxLevelSupportDrop, Collection<Integer> possibleRhs) { super(patternThreshold, minSupportGain, maxLevelSupportDrop, 1.0); this.possibleRhs = new IntAVLTreeSet(possibleRhs); }
Example #4
Source File: RhsFilterPruning.java From metanome-algorithms with Apache License 2.0 | 4 votes |
public RhsFilterPruning(int patternThreshold, double minSupportGain, double maxLevelSupportDrop, int possibleRhs, double minCOnfidence) { super(patternThreshold, minSupportGain, maxLevelSupportDrop, minCOnfidence); this.possibleRhs = new IntAVLTreeSet(); this.possibleRhs.add(possibleRhs); }
Example #5
Source File: RhsFilterPruning.java From metanome-algorithms with Apache License 2.0 | 4 votes |
public RhsFilterPruning(int patternThreshold, double minSupportGain, double maxLevelSupportDrop, Collection<Integer> possibleRhs, double minConfidence) { super(patternThreshold, minSupportGain, maxLevelSupportDrop, minConfidence); this.possibleRhs = new IntAVLTreeSet(possibleRhs); }