/** * Getting IndexType object from indexType string * @param indexTypeAsString - string return by parser corresponding to IndexType * @return IndexType - an IndexType object */ private IndexType getIndexTypeFromString(String indexTypeAsString) { IndexType indexType; try { indexType = IndexType.findByValue(new Integer(indexTypeAsString)); } catch (NumberFormatException e) { try { // if this is not an integer lets try to get IndexType by name indexType = IndexType.valueOf(indexTypeAsString); } catch (IllegalArgumentException ie) { throw new RuntimeException("IndexType '" + indexTypeAsString + "' is unsupported.", ie); } } if (indexType == null) { throw new RuntimeException("IndexType '" + indexTypeAsString + "' is unsupported."); } return indexType; }
case 3: // INDEX_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.index_type = IndexType.findByValue(iprot.readI32()); struct.setIndex_typeIsSet(true); } else {
case 3: // INDEX_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.index_type = IndexType.findByValue(iprot.readI32()); struct.setIndex_typeIsSet(true); } else {
case 3: // INDEX_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.index_type = IndexType.findByValue(iprot.readI32()); struct.setIndex_typeIsSet(true); } else {
BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.index_type = IndexType.findByValue(iprot.readI32()); struct.setIndex_typeIsSet(true);
BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.index_type = IndexType.findByValue(iprot.readI32()); struct.setIndex_typeIsSet(true);
BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.index_type = IndexType.findByValue(iprot.readI32()); struct.setIndex_typeIsSet(true);