buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public Map<byte[], ColumnDefinition> column_metata = Collections.emptyMap(); }
public RawColumnDefinition[] column_metadata = new RawColumnDefinition[0]; }
public void start(BundleContext context) throws Exception { Twitter twitter = new Twitter(); Query query = new Query("from:theasf"); try { QueryResult result = twitter.search(query); List<Tweet> tweets = result.getTweets(); System.out.println("hits:" + tweets.size()); for (Tweet tweet : ...
public void start(BundleContext context) throws Exception { Twitter twitter = new Twitter(); Query query = new Query("from:theasf"); try { QueryResult result = twitter.search(query); List<Tweet> tweets = result.getTweets(); System.out.println("hits:" + tweets.size()); for (Tweet tweet : ...
public synchronized Similarity get(String field) { assert field != null; Similarity sim = previousMappings.get(field); if (sim == null) { sim = knownSims.get(Math.abs(perFieldSeed ^ field.hashCode()) % knownSims.size()); previousMappings.put(field, sim); } return sim; }
public synchronized Similarity get(String field) { assert field != null; Similarity sim = previousMappings.get(field); if (sim == null) { sim = knownSims.get(Math.max(0, Math.abs(perFieldSeed ^ field.hashCode())) % knownSims.size()); previousMappings.put(field, sim); } return sim; }
public boolean configFileExists(String collection, String fileName) throws KeeperException, InterruptedException { Stat stat = zkClient.exists(CONFIGS_ZKNODE + "/" + fileName, null); return stat != null; }
public boolean configFileExists(String collection, String fileName) throws KeeperException, InterruptedException { Stat stat = zkClient.exists(CONFIGS_ZKNODE + "/" + collection + "/" + fileName, null); return stat != null; }
public void run() { final Document doc = new Document(); doc.add(newField("content1", "aaa bbb ccc ddd", Field.Store.YES, Field.Index.ANALYZED)); doc.add(newField("content6", "aaa bbb ccc ddd", Field.Store.NO, Field.Index.ANALYZED, Field.TermVector.WITH_POSITIONS_OFFSETS)); doc.add(newFiel...
public void run() { final Document doc = new Document(); doc.add(newField("content1", "aaa bbb ccc ddd", Field.Store.YES, Field.Index.ANALYZED)); doc.add(newField("content6", "aaa bbb ccc ddd", Field.Store.NO, Field.Index.ANALYZED, Field.TermVector.WITH_POSITIONS_OFFSETS)); doc.add(newFiel...
public static void beforeTests() throws Exception { initCore("solrconfig-basic.xml","schema-docValuesFaceting.xml"); } int indexSize; List<FldType> types; Map<Comparable, Doc> model = null; boolean validateResponses = true; void init() { Random rand = random(); clearIndex(); model = null...
public static void beforeTests() throws Exception { initCore("solrconfig-basic.xml","schema-docValuesFaceting.xml"); } int indexSize; List<FldType> types; Map<Comparable, Doc> model = null; boolean validateResponses = true; void init() { Random rand = random(); clearIndex(); model = null...
public static void beforeTests() throws Exception { System.setProperty("enable.update.log", "false"); // schema12 doesn't support _version_ initCore("solrconfig.xml","schema12.xml"); } int indexSize; List<FldType> types; Map<Comparable, Doc> model = null; boolean validateResponses = true; void ...
public static void beforeTests() throws Exception { System.setProperty("enable.update.log", "false"); // schema12 doesn't support _version_ initCore("solrconfig.xml","schema12.xml"); } int indexSize; List<FldType> types; Map<Comparable, Doc> model = null; boolean validateResponses = true; void ...
public static String byteArrayToBase64(byte[] a, int offset, int len) { int aLen = len; int numFullGroups = aLen / 3; int numBytesInPartialGroup = aLen - 3 * numFullGroups; int resultLen = 4 * ((aLen + 2) / 3); StringBuffer result = new StringBuffer(resultLen); char[] intToAlpha = intToBase64;...
public static String byteArrayToBase64(byte[] a, int offset, int len) { int aLen = len; int numFullGroups = aLen / 3; int numBytesInPartialGroup = aLen - 3 * numFullGroups; int resultLen = 4 * ((aLen + 2) / 3); StringBuilder result = new StringBuilder(resultLen); char[] intToAlpha = intToBase6...
protected String concatFields(SolrInputDocument doc, String[] fields) { StringBuffer sb = new StringBuffer(); for (String fieldName : inputFields) { log.debug("Appending field "+fieldName); if (doc.containsKey(fieldName)) { Object content = doc.getFieldValue(fieldName); if(content ...
protected String concatFields(SolrInputDocument doc, String[] fields) { StringBuilder sb = new StringBuilder(); for (String fieldName : inputFields) { log.debug("Appending field "+fieldName); if (doc.containsKey(fieldName)) { Object content = doc.getFieldValue(fieldName); if(conten...
private void logConfig() { if (!LOG.isInfoEnabled()) return; StringBuffer config = new StringBuffer(); config.append("user : ").append(user).append(System.getProperty("line.separator"));
private void logConfig() { if (!LOG.isInfoEnabled()) return; StringBuilder config = new StringBuilder(); config.append("user : ").append(user).append(System.getProperty("line.separator"));
public synchronized String exec(String a, String b) { if (a == null || b == null) { return null; } int x; int y; int maxx; int maxy; int go[] = new int[4]; final int X = 1; final int Y = 2; final int R = 3; final int D = 0; /* * setup memory if need...
public synchronized String exec(String a, String b) { if (a == null || b == null) { return null; } int x; int y; int maxx; int maxy; int go[] = new int[4]; final int X = 1; final int Y = 2; final int R = 3; final int D = 0; /* * setup memory if need...
private String readFully(Reader stream) throws IOException { StringBuffer buffer = new StringBuffer(); int ch; while ((ch = stream.read()) != -1) { buffer.append((char) ch); } return buffer.toString(); }
private String readFully(Reader stream) throws IOException { StringBuilder buffer = new StringBuilder(); int ch; while ((ch = stream.read()) != -1) { buffer.append((char) ch); } return buffer.toString(); }
protected String getKey(TSTNode node) { StringBuffer getKeyBuffer = new StringBuffer(); getKeyBuffer.setLength(0);
protected String getKey(TSTNode node) { StringBuilder getKeyBuffer = new StringBuilder(); getKeyBuffer.setLength(0);
public StopFilter(boolean enablePositionIncrements, TokenStream in, Set<?> stopWords) { this(Version.LUCENE_CURRENT, enablePositionIncrements, in, stopWords, false); }
public StopFilter(boolean enablePositionIncrements, TokenStream in, Set<?> stopWords) { this(Version.LUCENE_30, enablePositionIncrements, in, stopWords, false); }
public void run() { try { rm.apply(); } catch (IOException e) { ...
public void run() { try { rm.apply(); } catch (IOException e) { ...
public Query rewrite(IndexReader reader) throws IOException { if (clauses.size() == 1) { // optimize 1-clause queries BooleanClause c = (BooleanClause)clauses.get(0); if (!c.isProhibited()) { // just return clause Query query = c.getQuery().rewrite(reader); // rewrit...
public Query rewrite(IndexReader reader) throws IOException { if (minNrShouldMatch == 0 && clauses.size() == 1) { // optimize 1-clause queries BooleanClause c = (BooleanClause)clauses.get(0); if (!c.isProhibited()) { // just return clause Query query = c.getQuery().rewr...
public void testByteSizeLimit() throws Exception { // tests that the max merge size constraint is applied during optimize. Directory dir = new RAMDirectory(); // Prepare an index w/ several small segments and a large one. IndexWriterConfig conf = newWriterConfig(); IndexWriter writer = new IndexW...
public void testByteSizeLimit() throws Exception { // tests that the max merge size constraint is applied during optimize. Directory dir = new RAMDirectory(); // Prepare an index w/ several small segments and a large one. IndexWriterConfig conf = newWriterConfig(); IndexWriter writer = new IndexW...
public long totalBytesSize() throws IOException { long total = 0; for (SegmentInfo info : segments) { total += info.sizeInBytes(); } return total; }
public long totalBytesSize() throws IOException { long total = 0; for (SegmentInfo info : segments) { total += info.sizeInBytes(true); } return total; }
protected long sizeBytes(SegmentInfo info) throws IOException { long byteSize = info.sizeInBytes(); if (calibrateSizeByDeletes) { int delCount = writer.get().numDeletedDocs(info); double delRatio = (info.docCount <= 0 ? 0.0f : ((float)delCount / (float)info.docCount)); assert delRatio <= 1.0...
protected long sizeBytes(SegmentInfo info) throws IOException { long byteSize = info.sizeInBytes(true); if (calibrateSizeByDeletes) { int delCount = writer.get().numDeletedDocs(info); double delRatio = (info.docCount <= 0 ? 0.0f : ((float)delCount / (float)info.docCount)); assert delRatio <=...
protected long size(SegmentInfo info) throws IOException { long byteSize = info.sizeInBytes(); float delRatio = (info.docCount <= 0 ? 0.0f : ((float)info.getDelCount() / (float)info.docCount)); return (info.docCount <= 0 ? byteSize : (long)((1.0f - delRatio) * byteSize)); }
protected long size(SegmentInfo info) throws IOException { long byteSize = info.sizeInBytes(true); float delRatio = (info.docCount <= 0 ? 0.0f : ((float)info.getDelCount() / (float)info.docCount)); return (info.docCount <= 0 ? byteSize : (long)((1.0f - delRatio) * byteSize)); }
public ColumnFamily getColumnFamily(QueryFilter filter, int gcBefore) throws IOException { assert columnFamily_.equals(filter.getColumnFamilyName()); // if we are querying subcolumns of a supercolumn, fetch the supercolumn with NQF, then filter in-memory. if (filter.path.superColumnName...
public ColumnFamily getColumnFamily(QueryFilter filter, int gcBefore) throws IOException { assert columnFamily_.equals(filter.getColumnFamilyName()); // if we are querying subcolumns of a supercolumn, fetch the supercolumn with NQF, then filter in-memory. if (filter.path.superColumnName...
protected void reduce(WritableComparable<?> key, Iterable<VectorWritable> values, Context context) throws IOException, InterruptedException { Iterator<VectorWritable> it = values.iterator(); if (!it.hasNext()) { return; } Vector value = it.next().get(); Iterator<Vector.Element> it1 = val...
protected void reduce(WritableComparable<?> key, Iterable<VectorWritable> values, Context context) throws IOException, InterruptedException { Iterator<VectorWritable> it = values.iterator(); if (!it.hasNext()) { return; } Vector value = it.next().get(); Iterator<Vector.Element> it1 = val...
public int compareDocToValue(int doc, Double valueObj) { final double value = valueObj; final double docValue = docVals.doubleVal(doc); if (docValue < value) { return -1; } else if (docValue > value) { return -1; } else { return 0; } } }
public int compareDocToValue(int doc, Double valueObj) { final double value = valueObj; final double docValue = docVals.doubleVal(doc); if (docValue < value) { return -1; } else if (docValue > value) { return 1; } else { return 0; } } }
public void testDummy() throws Exception { makeIndex(); assertNotNull(FieldCache.DEFAULT.getTermsIndex(subR, "ints")); assertNotNull(FieldCache.DEFAULT.getTerms(subR, "ints")); // NOTE: do not close reader/directory, else it // purges FC entries } }
public void testDummy() throws Exception { makeIndex(); assertNotNull(FieldCache.DEFAULT.getTermsIndex(subR, "ints")); assertNotNull(FieldCache.DEFAULT.getTerms(subR, "ints", false)); // NOTE: do not close reader/directory, else it // purges FC entries } }
public void testLengthPrefixAcrossTwoPages() throws Exception { Directory d = newDirectory(); IndexWriter w = new IndexWriter(d, new IndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random()))); Document doc = new Document(); byte[] bytes = new byte[32764]; BytesRef b = new BytesRef(); ...
public void testLengthPrefixAcrossTwoPages() throws Exception { Directory d = newDirectory(); IndexWriter w = new IndexWriter(d, new IndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random()))); Document doc = new Document(); byte[] bytes = new byte[32764]; BytesRef b = new BytesRef(); ...
public void run() { try { //NumericDocValues ndv = ar.getNumericDocValues("number"); FieldCache.Longs ndv = FieldCache.DEFAULT.getLongs(ar, "number", false); //BinaryDocValues bdv = ar.getBinaryDocValues("bytes"); BinaryDocValues bdv = FieldC...
public void run() { try { //NumericDocValues ndv = ar.getNumericDocValues("number"); FieldCache.Longs ndv = FieldCache.DEFAULT.getLongs(ar, "number", false); //BinaryDocValues bdv = ar.getBinaryDocValues("bytes"); BinaryDocValues bdv = FieldC...
public void setNextReader(AtomicReaderContext context) throws IOException { fromDocTerms = FieldCache.DEFAULT.getTerms(context.reader(), field); } }
public void setNextReader(AtomicReaderContext context) throws IOException { fromDocTerms = FieldCache.DEFAULT.getTerms(context.reader(), field, false); } }
public void testMakeReadMessage() { ArrayList<String> colList = new ArrayList<String>(); colList.add("col1"); colList.add("col2"); ReadCommand rm, rm2; rm = new SliceByNamesReadCommand("Table1", "row1", "foo", colList); rm2 = serializeAndDeserial...
public void testMakeReadMessage() { ArrayList<String> colList = new ArrayList<String>(); colList.add("col1"); colList.add("col2"); ReadCommand rm, rm2; rm = new SliceByNamesReadCommand("Table1", "row1", "foo", colList); rm2 = serializeAndDeserial...
private void executeGet(CommonTree ast) throws TException, NotFoundException, InvalidRequestException { if (!CliMain.isConnected()) return; int childCount = ast.getChildCount(); assert(childCount == 1); CommonTree columnFamilySpec = (CommonTree)ast.getChild(0); ...
private void executeGet(CommonTree ast) throws TException, NotFoundException, InvalidRequestException { if (!CliMain.isConnected()) return; int childCount = ast.getChildCount(); assert(childCount == 1); CommonTree columnFamilySpec = (CommonTree)ast.getChild(0); ...
public List<Map<String,String>> getRows() { String columnFamily_column; String superColumnKey = null; if (superColumnKey_ != null) { superColumnKey = (String)(superColumnKey_.get()); columnFamily_column = cfMetaData_.cfName + ":" + superColumnKey; ...
public List<Map<String,String>> getRows() { String columnFamily_column; String superColumnKey = null; if (superColumnKey_ != null) { superColumnKey = (String)(superColumnKey_.get()); columnFamily_column = cfMetaData_.cfName + ":" + superColumnKey; ...
public List<Map<String,String>> getRows() { Row row = null; try { String key = (String)(rowKey_.get()); ReadCommand readCommand = new SliceFromReadCommand(cfMetaData_.tableName, key, cfMetaData_.cfName, true, limit_); row = StorageProxy.readProtocol(re...
public List<Map<String,String>> getRows() { Row row = null; try { String key = (String)(rowKey_.get()); ReadCommand readCommand = new SliceFromReadCommand(cfMetaData_.tableName, key, cfMetaData_.cfName, true, offset_, limit_); row = StorageProxy.readPr...
private BundleRevision installBundle() { final Bundle bundle; InputStream is = ((RepositoryContent)resource).getContent(); try { bundle = provisionTo.getRegion().installBundle(getLocation(), is); }
private BundleRevision installBundle() { final Bundle bundle; InputStream is = ((RepositoryContent)resource).getContent(); try { bundle = provisionTo.getRegion().installBundleAtLocation(getLocation(), is); }
protected String getLocation() { return provisionTo.getSubsystemId() + "@" + provisionTo.getSymbolicName() + "@" + ResourceHelper.getSymbolicNameAttribute(resource); }
protected String getLocation() { return provisionTo.getLocation() + "!/" + ResourceHelper.getLocation(resource); }
public void eval(MockRAMDirectory dir) throws IOException { if (doFail && Thread.currentThread().getName().equals("main")) { StackTraceElement[] trace = new Exception().getStackTrace(); for (int i = 0; i < trace.length; i++) { if ("doFlush".equals(trace[i].getMethodName())) { ...
public void eval(MockRAMDirectory dir) throws IOException { if (doFail && Thread.currentThread().getName().equals("main")) { StackTraceElement[] trace = new Exception().getStackTrace(); for (int i = 0; i < trace.length; i++) { if ("flush".equals(trace[i].getMethodName())) { ...
public static void main(String[] args) { String usage = "java org.apache.lucene.demo.IndexFiles" + " [-index INDEX_PATH] [-docs DOCS_PATH] [-update]\n\n" + "This indexes the documents in DOCS_PATH, creating a Lucene index" + "in INDEX_PATH that can be searched wi...
public static void main(String[] args) { String usage = "java org.apache.lucene.demo.IndexFiles" + " [-index INDEX_PATH] [-docs DOCS_PATH] [-update]\n\n" + "This indexes the documents in DOCS_PATH, creating a Lucene index" + "in INDEX_PATH that can be searched wi...
public void testPayloadsPos0() throws Exception { Directory dir = newDirectory(); RandomIndexWriter writer = new RandomIndexWriter(random(), dir, new MockPayloadAnalyzer()); Document doc = new Document(); doc.add(new TextField("content", new StringReader( "a a b c d e a f g h i j a b k k"), Fi...
public void testPayloadsPos0() throws Exception { Directory dir = newDirectory(); RandomIndexWriter writer = new RandomIndexWriter(random(), dir, new MockPayloadAnalyzer()); Document doc = new Document(); doc.add(new TextField("content", new StringReader( "a a b c d e a f g h i j a b k k"))); ...
private SegmentInfoPerCommit indexDoc(IndexWriter writer, String fileName) throws Exception { File file = new File(workDir, fileName); Document doc = new Document(); InputStreamReader is = new InputStreamReader(new FileInputStream(file), "UTF-8"); doc.add(new TextField("contents", is, F...
private SegmentInfoPerCommit indexDoc(IndexWriter writer, String fileName) throws Exception { File file = new File(workDir, fileName); Document doc = new Document(); InputStreamReader is = new InputStreamReader(new FileInputStream(file), "UTF-8"); doc.add(new TextField("contents", is));...
public T get() throws TimeoutException, DigestMismatchException, IOException { try { long timeout = System.currentTimeMillis() - startTime + DatabaseDescriptor.getRpcTimeout(); boolean success; try { success = condition.await(timeou...
public T get() throws TimeoutException, DigestMismatchException, IOException { try { long timeout = DatabaseDescriptor.getRpcTimeout() - (System.currentTimeMillis() - startTime); boolean success; try { success = condition.await(time...
public void get() throws TimeoutException { try { long timeout = System.currentTimeMillis() - startTime + DatabaseDescriptor.getRpcTimeout(); boolean success; try { success = condition.await(timeout, TimeUnit.MILLISECONDS); ...
public void get() throws TimeoutException { try { long timeout = DatabaseDescriptor.getRpcTimeout() - (System.currentTimeMillis() - startTime); boolean success; try { success = condition.await(timeout, TimeUnit.MILLISECONDS); ...
public byte[] get(long timeout, TimeUnit tu) throws TimeoutException { lock_.lock(); try { boolean bVal = true; try { if ( !done_.get() ) { long overall_timeout = System.currentTimeMillis(...
public byte[] get(long timeout, TimeUnit tu) throws TimeoutException { lock_.lock(); try { boolean bVal = true; try { if ( !done_.get() ) { long overall_timeout = timeout - (System.current...
public int getTypeFormatId() { return StoredFormatIds.ACCESS_B2I_V3_ID; }
public int getTypeFormatId() { return StoredFormatIds.ACCESS_B2I_V4_ID; }
public synchronized NumericDocValues getNumeric(FieldInfo field) throws IOException { NumericDocValues instance = numericInstances.get(field.number); if (instance == null) { switch(LegacyDocValuesType.valueOf(field.getAttribute(legacyKey))) { case VAR_INTS: instance = loadVarIntsField(...
public synchronized NumericDocValues getNumeric(FieldInfo field) throws IOException { NumericDocValues instance = numericInstances.get(field.number); if (instance == null) { switch(LegacyDocValuesType.valueOf(field.getAttribute(legacyKey))) { case VAR_INTS: instance = loadVarIntsField(...
public Object getData(String query) { log(DIHLogLevels.ENTITY_META, "query", query); long start = System.currentTimeMillis(); try { return ds.getData(query); } catch (DataImportHandlerException de) { log(DIHLogLevels.ENTITY_EXCEPTION, null, de)...
public Object getData(String query) { log(DIHLogLevels.ENTITY_META, "query", query); long start = System.nanoTime(); try { return ds.getData(query); } catch (DataImportHandlerException de) { log(DIHLogLevels.ENTITY_EXCEPTION, null, de); ...
public void run() { // TODO each call to transferRanges re-flushes, this is potentially a lot of waste StreamOut.transferRanges(newEndpoint, Table.open(table), Arrays.asList(range), callback, OperationType.UNBOOTSTRAP); ...
public void run() { // TODO each call to transferRanges re-flushes, this is potentially a lot of waste StreamOut.transferRanges(newEndpoint, table, Arrays.asList(range), callback, OperationType.UNBOOTSTRAP); } ...
public void doVerb(Message message, String id) { if (logger.isDebugEnabled()) logger.debug("Received a StreamRequestMessage from {}", message.getFrom()); byte[] body = message.getMessageBody(); ByteArrayInputStream bufIn = new ByteArrayInputStream(body); try ...
public void doVerb(Message message, String id) { if (logger.isDebugEnabled()) logger.debug("Received a StreamRequestMessage from {}", message.getFrom()); byte[] body = message.getMessageBody(); ByteArrayInputStream bufIn = new ByteArrayInputStream(body); try ...
protected void mergeNumericField(MergeState mergeState) throws IOException { // first compute min and max value of live ones to be merged. long minValue = Long.MAX_VALUE; long maxValue = Long.MIN_VALUE; for (AtomicReader reader : mergeState.readers) { final int maxDoc = reader.maxDoc(); fi...
protected void mergeNumericField(MergeState mergeState) throws IOException { // first compute min and max value of live ones to be merged. long minValue = Long.MAX_VALUE; long maxValue = Long.MIN_VALUE; for (AtomicReader reader : mergeState.readers) { final int maxDoc = reader.maxDoc(); fi...
final private void handleMergeException(Throwable t, MergePolicy.OneMerge merge) throws IOException { if (infoStream != null) { message("handleMergeException: merge=" + merge.segString(directory) + " exc=" + t); } // Set the exception on the merge, so if // optimize() is waiting on us it sees ...
final private void handleMergeException(Throwable t, MergePolicy.OneMerge merge) throws IOException { if (infoStream != null) { message("handleMergeException: merge=" + merge.segString(directory) + " exc=" + t); } // Set the exception on the merge, so if // optimize() is waiting on us it sees ...
public static void cleanup() throws IOException { // clean up commitlog String[] directoryNames = { DatabaseDescriptor.getLogFileLocation(), }; for (String dirName : directoryNames) { File dir = new File(dirName); if (!dir.exists())...
public static void cleanup() throws IOException { // clean up commitlog String[] directoryNames = { DatabaseDescriptor.getCommitLogLocation(), }; for (String dirName : directoryNames) { File dir = new File(dirName); if (!dir.exists(...
protected void writeScalarStream (boolean chainedWithSameCorrelator, int codePoint, EXTDTAInputStream in, boolean writeNullByte) throws DRDAProtocolException { // Stream equivalent of "beginDss"... int spareDssLength = prepScalarStream( chainedWithSameCorrelator, ...
protected void writeScalarStream (boolean chainedWithSameCorrelator, int codePoint, EXTDTAInputStream in, boolean writeNullByte) throws DRDAProtocolException { // Stream equivalent of "beginDss"... int spareDssLength = prepScalarStream( chainedWithSameCorrelator, ...
public void testUpdate() throws Exception { String xml = "<random>" + " <document>" + " <node name=\"id\" enhance=\"2.2\" value=\"12345\"/>" + " <node name=\"name\" value=\"kitten\"/>" + " <node name=\"text\" enhance=\"3\" value=\"some other day\"/>" + " <node name=\"tit...
public void testUpdate() throws Exception { String xml = "<random>" + " <document>" + " <node name=\"id\" value=\"12345\"/>" + " <node name=\"name\" value=\"kitten\"/>" + " <node name=\"text\" enhance=\"3\" value=\"some other day\"/>" + " <node name=\"title\" enhance=\"4...
public synchronized Schema getSchema(Map<URI, NamespaceHandler> handlers) throws IOException, SAXException { Schema schema = null; // Find a schema that can handle all the requested namespaces // If it contains additional namespaces, it should not be a problem since // they won't be ...
public synchronized Schema getSchema(Map<URI, NamespaceHandler> handlers) throws IOException, SAXException { Schema schema = null; // Find a schema that can handle all the requested namespaces // If it contains additional namespaces, it should not be a problem since // they won't be ...
public void test() { //Positive test of FieldInfos assertTrue(testDoc != null); FieldInfos fieldInfos = new FieldInfos(); fieldInfos.add(testDoc); //Since the complement is stored as well in the fields map assertTrue(fieldInfos.size() == DocHelper.all.size()); //this is all b/c we are using th...
public void test() throws IOException { //Positive test of FieldInfos assertTrue(testDoc != null); FieldInfos fieldInfos = new FieldInfos(); fieldInfos.add(testDoc); //Since the complement is stored as well in the fields map assertTrue(fieldInfos.size() == DocHelper.all.size()); //this is all ...
public void close() { if (container != null) { for (SolrCore c : container.getCores()) { if (c.getOpenCount() > 1) throw new RuntimeException("SolrCore.getOpenCount()=="+core.getOpenCount()); } } if (container != null) { container.shutdown(); container = nu...
public void close() { if (container != null) { for (SolrCore c : container.getCores()) { if (c.getOpenCount() > 1) throw new RuntimeException("SolrCore.getOpenCount()=="+c.getOpenCount()); } } if (container != null) { container.shutdown(); container = null;...
public void run() { final Document doc = new Document(); doc.add(newField(r, "content1", "aaa bbb ccc ddd", Field.Store.YES, Field.Index.ANALYZED)); doc.add(newField(r, "content6", "aaa bbb ccc ddd", Field.Store.NO, Field.Index.ANALYZED, Field.TermVector.WITH_POSITIONS_OFFSETS)); doc.add(n...
public void run() { final Document doc = new Document(); doc.add(newField(r, "content1", "aaa bbb ccc ddd", Field.Store.YES, Field.Index.ANALYZED)); doc.add(newField(r, "content6", "aaa bbb ccc ddd", Field.Store.NO, Field.Index.ANALYZED, Field.TermVector.WITH_POSITIONS_OFFSETS)); doc.add(n...
public IndexWriter(Directory d, IndexWriterConfig conf) throws CorruptIndexException, LockObtainFailedException, IOException { config = (IndexWriterConfig) conf.clone(); directory = d; analyzer = conf.getAnalyzer(); setMessageID(defaultInfoStream); maxFieldLength = conf.getMaxFieldLength(); ...
public IndexWriter(Directory d, IndexWriterConfig conf) throws CorruptIndexException, LockObtainFailedException, IOException { config = (IndexWriterConfig) conf.clone(); directory = d; analyzer = conf.getAnalyzer(); setMessageID(defaultInfoStream); maxFieldLength = conf.getMaxFieldLength(); ...
public FieldConfig getFieldConfig(CharSequence fieldName) { // there is no field configuration, always return null return null; } }
public FieldConfig getFieldConfig(String fieldName) { // there is no field configuration, always return null return null; } }
public void buildFieldConfig(FieldConfig fieldConfig) { DateResolutionAttribute fieldDateResAttr = fieldConfig .addAttribute(DateResolutionAttribute.class); DateTools.Resolution dateRes = null; if (this.config.hasAttribute(FieldDateResolutionMapAttribute.class)) { FieldDateResolutionMapAttr...
public void buildFieldConfig(FieldConfig fieldConfig) { DateResolutionAttribute fieldDateResAttr = fieldConfig .addAttribute(DateResolutionAttribute.class); DateTools.Resolution dateRes = null; if (this.config.hasAttribute(FieldDateResolutionMapAttribute.class)) { FieldDateResolutionMapAttr...
public void buildFieldConfig(FieldConfig fieldConfig) { if (this.config.hasAttribute(FieldBoostMapAttribute.class)) { FieldBoostMapAttribute fieldBoostMapAttr = this.config.getAttribute(FieldBoostMapAttribute.class); BoostAttribute boostAttr = fieldConfig.addAttribute(BoostAttribute.class); ...
public void buildFieldConfig(FieldConfig fieldConfig) { if (this.config.hasAttribute(FieldBoostMapAttribute.class)) { FieldBoostMapAttribute fieldBoostMapAttr = this.config.getAttribute(FieldBoostMapAttribute.class); BoostAttribute boostAttr = fieldConfig.addAttribute(BoostAttribute.class); ...
protected void computeFeatureSet_() { // Support for QRYCLSIMP was added in 10.2.0 if (productLevel_.greaterThanOrEqualTo(10, 2, 0)) { supportsQryclsimp_ = true; } else { supportsQryclsimp_ = false; } supportsLayerBStreaming_ = p...
protected void computeFeatureSet_() { // Support for QRYCLSIMP was added in 10.2.0 if (productLevel_.greaterThanOrEqualTo(10, 2, 0)) { supportsQryclsimp_ = true; } else { supportsQryclsimp_ = false; } supportsLayerBStreaming_ = p...
public void testGetEndpointsDuringBootstrap() throws UnknownHostException, ConfigurationException { // the token difference will be RING_SIZE * 2. final int RING_SIZE = 10; TokenMetadata tmd = new TokenMetadata(); TokenMetadata oldTmd = StorageServiceAccessor.setTokenMetadata(tmd...
public void testGetEndpointsDuringBootstrap() throws UnknownHostException, ConfigurationException { // the token difference will be RING_SIZE * 2. final int RING_SIZE = 10; TokenMetadata tmd = new TokenMetadata(); TokenMetadata oldTmd = StorageServiceAccessor.setTokenMetadata(tmd...
public NamedList<Object> request(SolrRequest request) throws SolrServerException, IOException { connect(); // TODO: if you can hash here, you could favor the shard leader CloudState cloudState = zkStateReader.getCloudState(); SolrParams reqParams = request.getParams(); if (reqParams == null...
public NamedList<Object> request(SolrRequest request) throws SolrServerException, IOException { connect(); // TODO: if you can hash here, you could favor the shard leader CloudState cloudState = zkStateReader.getCloudState(); SolrParams reqParams = request.getParams(); if (reqParams == null...
private static boolean isEquinox(String bundleClassName) { if (bundleClassName.startsWith("org.eclipse.equinox")) { try { Class.forName("org.eclipse.osgi.framework.internal.core.BundleHost"); return true; } catch (ClassNotFoundException e) { } } return false; }
private static boolean isEquinox(String bundleClassName) { if (bundleClassName.startsWith("org.eclipse.osgi")) { try { Class.forName("org.eclipse.osgi.framework.internal.core.BundleHost"); return true; } catch (ClassNotFoundException e) { } } return false; }
private void logGCResults() { for (GarbageCollectorMXBean gc : beans) { Long previousTotal = gctimes.get(gc.getName()); Long total = gc.getCollectionTime(); if (previousTotal == null) previousTotal = 0L; if (previousTotal.equals(tot...
private void logGCResults() { for (GarbageCollectorMXBean gc : beans) { Long previousTotal = gctimes.get(gc.getName()); Long total = gc.getCollectionTime(); if (previousTotal == null) previousTotal = 0L; if (previousTotal.equals(tot...
private final static Map<String, AbstractJdbcType<?>> map = new HashMap<String, AbstractJdbcType<?>>(); static { map.put("org.apache.cassandra.db.marshal.AsciiType", JdbcAscii.instance); map.put("org.apache.cassandra.db.marshal.BooleanType", JdbcBoolean.instance); map.put("org.a...
private final static Map<String, AbstractJdbcType<?>> map = new HashMap<String, AbstractJdbcType<?>>(); static { map.put("org.apache.cassandra.db.marshal.AsciiType", JdbcAscii.instance); map.put("org.apache.cassandra.db.marshal.BooleanType", JdbcBoolean.instance); map.put("org.a...
public float sloppyFreq(int distance) { return 0.0f; } }; } }; final SimilarityProvider oldSim = searcher.getSimilarityProvider(); Scorer spanScorer; try { searcher.setSimilarityProvider(sim); SpanNearQuery snq = new Span...
public float sloppyFreq(int distance) { return 0.0f; } }; } }; final SimilarityProvider oldSim = searcher.getSimilarityProvider(); Scorer spanScorer; try { searcher.setSimilarityProvider(sim); SpanNearQuery snq = new Span...
public void testSort() throws Exception { IndexReader reader = null; Directory dir = null; final int numDocs = atLeast(1000); //final int numDocs = atLeast(50); final String[] tokens = new String[] {"a", "b", "c", "d", "e"}; if (VERBOSE) { System.out.println("TEST: make index"); ...
public void testSort() throws Exception { IndexReader reader = null; Directory dir = null; final int numDocs = atLeast(1000); //final int numDocs = atLeast(50); final String[] tokens = new String[] {"a", "b", "c", "d", "e"}; if (VERBOSE) { System.out.println("TEST: make index"); ...
public static DocsEnum getTermDocsEnum(IndexReader r, Bits liveDocs, String field, BytesRef term) throws IOException { return getTermDocsEnum(r, liveDocs, field, term); }
public static DocsEnum getTermDocsEnum(IndexReader r, Bits liveDocs, String field, BytesRef term) throws IOException { return getTermDocsEnum(r, liveDocs, field, term, DocsEnum.FLAG_FREQS); }
public void testRecoverAndOpen() throws IOException, ExecutionException, InterruptedException { RowMutation rm; rm = new RowMutation("Keyspace1", ByteBufferUtil.bytes("k1")); rm.add(new QueryPath("Indexed1", null, ByteBufferUtil.bytes("birthdate")), FBUtilities.toByteBuffer(1L), 0); ...
public void testRecoverAndOpen() throws IOException, ExecutionException, InterruptedException { RowMutation rm; rm = new RowMutation("Keyspace1", ByteBufferUtil.bytes("k1")); rm.add(new QueryPath("Indexed1", null, ByteBufferUtil.bytes("birthdate")), FBUtilities.toByteBuffer(1L), 0); ...
public String getColsValuesForValsByRound(int roundNum) { if (colForValByRound.size()==0) { return ""; } StringBuffer sb = new StringBuffer(); for (Iterator it = colForValByRound.keySet().iterator(); it.hasNext();) { String name = (String) it.next(); String colName = (String) colFor...
public String getColsValuesForValsByRound(int roundNum) { if (colForValByRound.size()==0) { return ""; } StringBuffer sb = new StringBuffer(); for (Iterator it = colForValByRound.keySet().iterator(); it.hasNext();) { String name = (String) it.next(); String colName = (String) colFor...
public float tf(int freq) { return hyperbolicTf(freq); } }; ss.setHyperbolicTfFactors(3.3f, 7.7f, Math.E, 5.0f); TFIDFSimilarity s = ss; for (int i = 1; i <=1000; i++) { assertTrue("MIN tf: i="+i+" : s="+s.tf(i), 3.3f <= s.tf(i)); assertTrue...
public float tf(float freq) { return hyperbolicTf(freq); } }; ss.setHyperbolicTfFactors(3.3f, 7.7f, Math.E, 5.0f); TFIDFSimilarity s = ss; for (int i = 1; i <=1000; i++) { assertTrue("MIN tf: i="+i+" : s="+s.tf(i), 3.3f <= s.tf(i)); assertTr...
public float tf(int freq) { return hyperbolicTf(freq); } }; }
public float tf(float freq) { return hyperbolicTf(freq); } }; }
public void testStressAdvance() throws Exception { for(int iter=0;iter<3;iter++) { if (VERBOSE) { System.out.println("\nTEST: iter=" + iter); } Directory dir = newDirectory(); RandomIndexWriter w = new RandomIndexWriter(random, dir); final Set<Integer> aDocs = new HashSet<Int...
public void testStressAdvance() throws Exception { for(int iter=0;iter<3;iter++) { if (VERBOSE) { System.out.println("\nTEST: iter=" + iter); } Directory dir = newDirectory(); RandomIndexWriter w = new RandomIndexWriter(random, dir); final Set<Integer> aDocs = new HashSet<Int...
public void doAfterFlush() { assertTrue("only " + docsInSegment.get() + " in segment", closing.get() || docsInSegment.get() >= 10); docsInSegment.set(0); sawAfterFlush.set(true); } }; w.setInfoStream(VERBOSE ? System.out : null); int id = 0; while(true) { ...
public void doAfterFlush() { assertTrue("only " + docsInSegment.get() + " in segment", closing.get() || docsInSegment.get() >= 7); docsInSegment.set(0); sawAfterFlush.set(true); } }; w.setInfoStream(VERBOSE ? System.out : null); int id = 0; while(true) { ...
private static FrameworkUtilWorker worker; static { Bundle b = FrameworkUtil.getBundle(AriesFrameworkUtil.class); String bundleClassName = b.getClass().getName(); if (isEquinox(bundleClassName)) { worker = new EquinoxWorker(); } else if (bundleClassName.startsWith("org.apache.felix")) { ...
private static FrameworkUtilWorker worker; static { Bundle b = FrameworkUtil.getBundle(AriesFrameworkUtil.class); String bundleClassName = b == null ? "": b.getClass().getName(); if (isEquinox(bundleClassName)) { worker = new EquinoxWorker(); } else if (bundleClassName.startsWith("org.apach...
private void executeSet(CommonTree ast) throws TException, InvalidRequestException, UnavailableException { if (!CliMain.isConnected()) return; int childCount = ast.getChildCount(); assert(childCount == 2); CommonTree columnFamilySpec = (CommonTree)ast.getChild(0); ...
private void executeSet(CommonTree ast) throws TException, InvalidRequestException, UnavailableException { if (!CliMain.isConnected()) return; int childCount = ast.getChildCount(); assert(childCount == 2); CommonTree columnFamilySpec = (CommonTree)ast.getChild(0); ...
public void testRandomPhrases() throws Exception { Directory dir = newDirectory(); Analyzer analyzer = new MockAnalyzer(random); RandomIndexWriter w = new RandomIndexWriter(random, dir, newIndexWriterConfig(TEST_VERSION_CURRENT, analyzer).setMergePolicy(newLogMergePolicy())); List<List<String>> docs...
public void testRandomPhrases() throws Exception { Directory dir = newDirectory(); Analyzer analyzer = new MockAnalyzer(random); RandomIndexWriter w = new RandomIndexWriter(random, dir, newIndexWriterConfig(TEST_VERSION_CURRENT, analyzer).setMergePolicy(newLogMergePolicy())); List<List<String>> docs...
public OrderedIntDoubleMapping clone() { return new OrderedIntDoubleMapping(indices, values, numMappings); }
public OrderedIntDoubleMapping clone() { return new OrderedIntDoubleMapping(indices.clone(), values.clone(), numMappings); }
public void doTest() throws Exception { boolean testsSuccesful = false; try { handle.clear(); handle.put("QTime", SKIPVAL); handle.put("timestamp", SKIPVAL); ZkStateReader zkStateReader = cloudClient.getZkStateReader(); // make sure we have leaders for each shard for (int j...
public void doTest() throws Exception { boolean testsSuccesful = false; try { handle.clear(); handle.put("QTime", SKIPVAL); handle.put("timestamp", SKIPVAL); ZkStateReader zkStateReader = cloudClient.getZkStateReader(); // make sure we have leaders for each shard for (int j...
public void doTest() throws Exception { handle.clear(); handle.put("QTime", SKIPVAL); handle.put("timestamp", SKIPVAL); // randomly turn on 1 seconds 'soft' commit randomlyEnableAutoSoftCommit(); del("*:*"); List<StopableIndexingThread> threads = new ArrayList<StopableIndex...
public void doTest() throws Exception { handle.clear(); handle.put("QTime", SKIPVAL); handle.put("timestamp", SKIPVAL); // randomly turn on 1 seconds 'soft' commit randomlyEnableAutoSoftCommit(); del("*:*"); List<StopableIndexingThread> threads = new ArrayList<StopableIndex...
public void testSpellCheckCollationResponse() throws Exception { getSolrServer(); SolrInputDocument doc = new SolrInputDocument(); doc.setField("id", "0"); doc.setField("name", "faith hope and love"); server.add(doc); doc = new SolrInputDocument(); doc.setField("id", "1"); doc.setField(...
public void testSpellCheckCollationResponse() throws Exception { getSolrServer(); SolrInputDocument doc = new SolrInputDocument(); doc.setField("id", "0"); doc.setField("name", "faith hope and love"); server.add(doc); doc = new SolrInputDocument(); doc.setField("id", "1"); doc.setField(...
private final static int MAX_VARCHAR_BYTE_LENGTH = 0xFFFF;
private final static int DEFAULT_BUFFER_SIZE = 32767; /** * The maximum length in bytes for strings sent by {@code writeLDString()}, * which is the maximum unsigned integer value that fits in two bytes. */ final static int MAX_VARCHAR_BYTE_LENGTH = 0xFFFF;
public void run() { try { while (run) { //int n = random.nextInt(2); if (type == 0) { int i = seq.addAndGet(1); Document doc = TestIndexWriterReader.createDocument(i, "index1", 10); writer.addDocument(doc); addCount++; } els...
public void run() { try { while (run) { //int n = random.nextInt(2); if (type == 0) { int i = seq.addAndGet(1); Document doc = DocHelper.createDocument(i, "index1", 10); writer.addDocument(doc); addCount++; } else if (type =...
protected void doTest() { try { createTestDatabase(); // Don't let error stream ruin the diff. System.err.close(); // The only test we need to run is the one for // Network Server; see functionTests/tools/ // dblook_test.java. runTest(3, testDBName, testDBName + "_new"); } catch (Exceptio...
protected void doTest() { try { createTestDatabase(dbCreationScript_1); // Don't let error stream ruin the diff. System.err.close(); // The only test we need to run is the one for // Network Server; see functionTests/tools/ // dblook_test.java. runTest(3, testDBName, testDBName + "_new"); ...
public PositionSize getPosition(DecoratedKey decoratedKey) throws IOException { if (!bf.isPresent(partitioner.convertToDiskFormat(decoratedKey))) return null; if (keyCache != null) { PositionSize cachedPosition = keyCache.get(decoratedKey); if (cachedP...
public PositionSize getPosition(DecoratedKey decoratedKey) throws IOException { if (!bf.isPresent(partitioner.convertToDiskFormat(decoratedKey))) return null; if (keyCache != null) { PositionSize cachedPosition = keyCache.get(decoratedKey); if (cachedP...
public void convict(InetAddress ep) { logger_.debug("Resetting pool for " + ep); getConnectionPool(ep).reset(); }
public void convict(InetAddress ep) { logger_.trace("Resetting pool for " + ep); getConnectionPool(ep).reset(); }
public String toString (String s) { return "filtered("+query.toString()+")"; }
public String toString (String s) { return "filtered("+query.toString(s)+")"; }
public static CharArraySet copy(final Set<?> set) { if(set == EMPTY_SET) return EMPTY_SET; return (set instanceof CharArraySet) ? copy((CharArraySet) set) : copy(Version.LUCENE_30, set); }
public static CharArraySet copy(final Set<?> set) { if(set == EMPTY_SET) return EMPTY_SET; return copy(Version.LUCENE_30, set); }
private NetSqlca parseSQLCAGRP(Typdef typdef) throws org.apache.derby.client.am.DisconnectException, SqlException { if (readFdocaOneByte() == CodePoint.NULLDATA) { return null; } int sqlcode = readFdocaInt(); byte[] sqlstate = readFdocaBytes(5); byte[] sqlerrproc ...
private NetSqlca parseSQLCAGRP(Typdef typdef) throws org.apache.derby.client.am.DisconnectException, SqlException { if (readFdocaOneByte() == CodePoint.NULLDATA) { return null; } int sqlcode = readFdocaInt(); byte[] sqlstate = readFdocaBytes(5); byte[] sqlerrproc ...
private int parseACCRDB() throws DRDAProtocolException { int codePoint; int svrcod = 0; copyToRequired(ACCRDB_REQUIRED); reader.markCollection(); codePoint = reader.getCodePoint(); while (codePoint != -1) { switch (codePoint) { //required case CodePoint.RDBACCCL: checkLength(CodePoin...
private int parseACCRDB() throws DRDAProtocolException { int codePoint; int svrcod = 0; copyToRequired(ACCRDB_REQUIRED); reader.markCollection(); codePoint = reader.getCodePoint(); while (codePoint != -1) { switch (codePoint) { //required case CodePoint.RDBACCCL: checkLength(CodePoin...
public void release() throws LockReleaseFailedException { if (!lockFile.delete()) throw new LockReleaseFailedException("failed to delete " + lockFile); }
public void release() throws LockReleaseFailedException { if (lockFile.exists() && !lockFile.delete()) throw new LockReleaseFailedException("failed to delete " + lockFile); }
public Class<? extends ListResourceBundle> run() { try { return b.loadClass(bundleName); } catch (ClassNotFoundException e) { return null; } } }); if (clazz ...
public Class<? extends ListResourceBundle> run() { try { return (Class<? extends ListResourceBundle>) b.loadClass(bundleName); } catch (ClassNotFoundException e) { return null; } } }...
public void testSortedBytes() throws IOException { Type[] types = new Type[] { Type.BYTES_FIXED_SORTED, Type.BYTES_VAR_SORTED }; for (Type type : types) { boolean fixed = type == Type.BYTES_FIXED_SORTED; final Directory d = newDirectory(); IndexWriterConfig cfg = newIndexWriterConfig(TEST_VE...
public void testSortedBytes() throws IOException { Type[] types = new Type[] { Type.BYTES_FIXED_SORTED, Type.BYTES_VAR_SORTED }; for (Type type : types) { boolean fixed = type == Type.BYTES_FIXED_SORTED; final Directory d = newDirectory(); IndexWriterConfig cfg = newIndexWriterConfig(TEST_VE...
public void testMeanShift() throws Exception { ClusteringTestUtils.writePointsToFile(sampleData, new Path(testdata, "file1"), fs, conf); DistanceMeasure measure = new EuclideanDistanceMeasure(); IKernelProfile kernelProfile = new TriangularKernelProfile(); Configuration conf = new Configuration(); ...
public void testMeanShift() throws Exception { ClusteringTestUtils.writePointsToFile(sampleData, new Path(testdata, "file1"), fs, conf); DistanceMeasure measure = new EuclideanDistanceMeasure(); IKernelProfile kernelProfile = new TriangularKernelProfile(); Configuration conf = new Configuration(); ...
public int setBytesX(long pos, byte[] bytes, int offset, int len) throws SqlException { /* Check if position is less than 0 and if true raise an exception */ if (pos <= 0L) { throw new SqlException(agent_.logWriter_, new Clien...
public int setBytesX(long pos, byte[] bytes, int offset, int len) throws SqlException { /* Check if position is less than 0 and if true raise an exception */ if (pos <= 0L) { throw new SqlException(agent_.logWriter_, new Clien...
public int setBytes(long pos, byte[] bytes, int offset, int len) throws SQLException { checkValidity(); if (pos - 1 > length()) throw Util.generateCsSQLException(SQLState.BLOB_POSITION_TOO_LARGE, new Long(pos)); if (pos < 1...
public int setBytes(long pos, byte[] bytes, int offset, int len) throws SQLException { checkValidity(); if (pos - 1 > length()) throw Util.generateCsSQLException(SQLState.BLOB_POSITION_TOO_LARGE, new Long(pos)); if (pos < 1...
public void testFuzzyKMeansSeqJob() throws Exception { List<VectorWritable> points = TestKmeansClustering.getPointsWritable(TestKmeansClustering.REFERENCE); Path pointsPath = getTestTempDirPath("points"); Path clustersPath = getTestTempDirPath("clusters"); Configuration conf = new Configuration(); ...
public void testFuzzyKMeansSeqJob() throws Exception { List<VectorWritable> points = TestKmeansClustering.getPointsWritable(TestKmeansClustering.REFERENCE); Path pointsPath = getTestTempDirPath("points"); Path clustersPath = getTestTempDirPath("clusters"); Configuration conf = new Configuration(); ...
private void handleCreateAction(SolrQueryRequest req, SolrQueryResponse rsp) throws InterruptedException, KeeperException { log.info("Creating Collection : " + req.getParamString()); Integer numReplicas = req.getParams().getInt(OverseerCollectionProcessor.REPLICATION_FACTOR, 0); String name = req.ge...
private void handleCreateAction(SolrQueryRequest req, SolrQueryResponse rsp) throws InterruptedException, KeeperException { log.info("Creating Collection : " + req.getParamString()); Integer numReplicas = req.getParams().getInt(OverseerCollectionProcessor.REPLICATION_FACTOR, 1); String name = req.ge...
public StorageService() { MBeanServer mbs = ManagementFactory.getPlatformMBeanServer(); try { mbs.registerMBean(this, new ObjectName("org.apache.cassandra.service:type=StorageService")); } catch (Exception e) { throw new RuntimeException(e)...
public StorageService() { MBeanServer mbs = ManagementFactory.getPlatformMBeanServer(); try { mbs.registerMBean(this, new ObjectName("org.apache.cassandra.service:type=StorageService")); } catch (Exception e) { throw new RuntimeException(e)...
protected TokenStreamComponents createComponents(String fieldName, Reader reader) { final Tokenizer source = new StandardTokenizer(matchVersion, reader); TokenStream result = new StandardFilter(matchVersion, source); result = new LowerCaseFilter(matchVersion, source); result = new StopFilter(mat...
protected TokenStreamComponents createComponents(String fieldName, Reader reader) { final Tokenizer source = new StandardTokenizer(matchVersion, reader); TokenStream result = new StandardFilter(matchVersion, source); result = new LowerCaseFilter(matchVersion, result); result = new StopFilter(mat...
protected DatacenterSyncWriteResponseHandler(Collection<InetAddress> writeEndpoints, Multimap<InetAddress, InetAddress> hintedEndpoints, ConsistencyLevel consistencyLevel, String table) { // Response is been managed by the map so make it 1 for the superclass. super(writeEndpoints, hintedEndpoint...
protected DatacenterSyncWriteResponseHandler(Collection<InetAddress> writeEndpoints, Multimap<InetAddress, InetAddress> hintedEndpoints, ConsistencyLevel consistencyLevel, String table) { // Response is been managed by the map so make it 1 for the superclass. super(writeEndpoints, hintedEndpoint...