@Override public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); term = options.get("term").getBytes(UTF_8); for (int i = 0; i < right.length; i++) { right[i] = -1; } for (int i = 0; i < term.length; i++) { right[term[i] & 0xff] = i; } }
@Override public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); this.ttls = new TTLSet(options); currentTime = System.currentTimeMillis(); }
@Override public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); cso = new CfCqSliceOpts(options); }
@Override public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { if (options == null) throw new IllegalArgumentException(TTL + " must be set for AgeOffFilter"); String ttl = options.get(TTL); if (ttl == null) throw new IllegalArgumentException(TTL + " must be set for AgeOffFilter"); super.init(source, options, env); threshold = Long.parseLong(ttl); String time = options.get(CURRENT_TIME); if (time != null) currentTime = Long.parseLong(time); else currentTime = System.currentTimeMillis(); // add sanity checks for threshold and currentTime? }
@Override public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); if (options.containsKey(START_BOUND)) { startBound = options.get(START_BOUND); } else { startBound = null; } if (options.containsKey(START_INCLUSIVE)) { startInclusive = Boolean.parseBoolean(options.get(START_INCLUSIVE)); } else { startInclusive = true; } if (options.containsKey(END_BOUND)) { endBound = options.get(END_BOUND); } else { endBound = null; } if (options.containsKey(END_INCLUSIVE)) { endInclusive = Boolean.parseBoolean(options.get(END_INCLUSIVE)); } else { endInclusive = false; } }
@Override public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); if (env.getIteratorScope() == IteratorScope.scan) { throw new IOException("This iterator not intended for use at scan time"); } bulkTxStatusCache = new HashMap<>(); arbitrator = getArbitrator(((SystemIteratorEnvironment) env).getServerContext()); }
@Override public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); if (options.containsKey(ROW_REGEX)) { rowMatcher = Pattern.compile(options.get(ROW_REGEX)).matcher("");
"start and/or end must be set for " + TimestampFilter.class.getName()); super.init(source, options, env);
@Override public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); validateOptions(options); this.filterInvalid = Boolean.parseBoolean(options.get(FILTER_INVALID_ONLY)); if (!filterInvalid) { String auths = options.get(AUTHS); Authorizations authObj = auths == null || auths.isEmpty() ? new Authorizations() : new Authorizations(auths.getBytes(UTF_8)); this.ve = new VisibilityEvaluator(authObj); } this.cache = new LRUMap(1000); }
@Override public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); this.currentTime = System.currentTimeMillis(); } }
@Override public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); term = options.get("term").getBytes(UTF_8); for (int i = 0; i < right.length; i++) { right[i] = -1; } for (int i = 0; i < term.length; i++) { right[term[i] & 0xff] = i; } }
@Override public void init(SortedKeyValueIterator<Key, Value> source, Map<String, String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); this.divisor = Integer.parseInt(options.get(DIVISOR_OPT)); this.remainder = Integer.parseInt(options.get(REMAINDER_OPT)); }
@Override public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); readOptions(options); }
@Override public void init(SortedKeyValueIterator<Key, Value> source, Map<String, String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); this.vertexIdsSet = SetOfStringsEncoder.decodeFromString(options.get(SETTING_VERTEX_IDS)); }
@Override public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); cso = new CfCqSliceOpts(options); }
@Override public void init(SortedKeyValueIterator<Key, Value> source, Map<String, String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); this.vertexIdsSet = SetOfStringsEncoder.decodeFromString(options.get(SETTING_VERTEX_IDS)); }
@Override public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); this.ttls = new TTLSet(options); currentTime = System.currentTimeMillis(); }
@Override public void init(SortedKeyValueIterator<Key, Value> source, Map<String, String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); if (options.containsKey(MathTwoScalar.SCALAR_TYPE)) scalarType = MathTwoScalar.ScalarType.valueOf(options.get(MathTwoScalar.SCALAR_TYPE)); if (scalarType == MathTwoScalar.ScalarType.LONG_OR_DOUBLE) scalarType = MathTwoScalar.ScalarType.DOUBLE; handleOptions(options); log.debug("minValue="+minValue+" maxValue="+maxValue+" useColQ="+useColQ+" prefixColQ="+ (new String(prefixColQ, StandardCharsets.UTF_8))); }
@Override public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); if (env.getIteratorScope() == IteratorScope.scan) { throw new IOException("This iterator not intended for use at scan time"); } bulkTxStatusCache = new HashMap<>(); arbitrator = getArbitrator(); }
@Override public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException { super.init(source, options, env); if (env.getIteratorScope() == IteratorScope.scan) { throw new IOException("This iterator not intended for use at scan time"); } bulkTxStatusCache = new HashMap<Long,MetadataBulkLoadFilter.Status>(); arbitrator = getArbitrator(); }