http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/94d579dd/blur-thrift/src/main/java/org/apache/blur/thrift/generated/Blur.java ---------------------------------------------------------------------- diff --git a/blur-thrift/src/main/java/org/apache/blur/thrift/generated/Blur.java b/blur-thrift/src/main/java/org/apache/blur/thrift/generated/Blur.java index 5d81b30..6ddace7 100644 --- a/blur-thrift/src/main/java/org/apache/blur/thrift/generated/Blur.java +++ b/blur-thrift/src/main/java/org/apache/blur/thrift/generated/Blur.java @@ -57,6 +57,8 @@ public class Blur { */ public interface Iface { + public Response execute(String table, String commandName, Arguments arguments) throws BlurException, org.apache.blur.thirdparty.thrift_0_9_0.TException; + /** * Creates a table with the given TableDescriptor. * @@ -443,6 +445,8 @@ public class Blur { public interface AsyncIface { + public void execute(String table, String commandName, Arguments arguments, org.apache.blur.thirdparty.thrift_0_9_0.async.AsyncMethodCallback<AsyncClient.execute_call> resultHandler) throws org.apache.blur.thirdparty.thrift_0_9_0.TException; + public void createTable(TableDescriptor tableDescriptor, org.apache.blur.thirdparty.thrift_0_9_0.async.AsyncMethodCallback<AsyncClient.createTable_call> resultHandler) throws org.apache.blur.thirdparty.thrift_0_9_0.TException; public void enableTable(String table, org.apache.blur.thirdparty.thrift_0_9_0.async.AsyncMethodCallback<AsyncClient.enableTable_call> resultHandler) throws org.apache.blur.thirdparty.thrift_0_9_0.TException; @@ -553,6 +557,34 @@ public class Blur { super(iprot, oprot); } + public Response execute(String table, String commandName, Arguments arguments) throws BlurException, org.apache.blur.thirdparty.thrift_0_9_0.TException + { + send_execute(table, commandName, arguments); + return recv_execute(); + } + + public void send_execute(String table, String commandName, Arguments arguments) throws org.apache.blur.thirdparty.thrift_0_9_0.TException + { + execute_args args = new execute_args(); + args.setTable(table); + args.setCommandName(commandName); + args.setArguments(arguments); + sendBase("execute", args); + } + + public Response recv_execute() throws BlurException, org.apache.blur.thirdparty.thrift_0_9_0.TException + { + execute_result result = new execute_result(); + receiveBase(result, "execute"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.ex != null) { + throw result.ex; + } + throw new org.apache.blur.thirdparty.thrift_0_9_0.TApplicationException(org.apache.blur.thirdparty.thrift_0_9_0.TApplicationException.MISSING_RESULT, "execute failed: unknown result"); + } + public void createTable(TableDescriptor tableDescriptor) throws BlurException, org.apache.blur.thirdparty.thrift_0_9_0.TException { send_createTable(tableDescriptor); @@ -1650,6 +1682,44 @@ public class Blur { super(protocolFactory, clientManager, transport); } + public void execute(String table, String commandName, Arguments arguments, org.apache.blur.thirdparty.thrift_0_9_0.async.AsyncMethodCallback<execute_call> resultHandler) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { + checkReady(); + execute_call method_call = new execute_call(table, commandName, arguments, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class execute_call extends org.apache.blur.thirdparty.thrift_0_9_0.async.TAsyncMethodCall { + private String table; + private String commandName; + private Arguments arguments; + public execute_call(String table, String commandName, Arguments arguments, org.apache.blur.thirdparty.thrift_0_9_0.async.AsyncMethodCallback<execute_call> resultHandler, org.apache.blur.thirdparty.thrift_0_9_0.async.TAsyncClient client, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolFactory protocolFactory, org.apache.blur.thirdparty.thrift_0_9_0.transport.TNonblockingTransport transport) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.table = table; + this.commandName = commandName; + this.arguments = arguments; + } + + public void write_args(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { + prot.writeMessageBegin(new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMessage("execute", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMessageType.CALL, 0)); + execute_args args = new execute_args(); + args.setTable(table); + args.setCommandName(commandName); + args.setArguments(arguments); + args.write(prot); + prot.writeMessageEnd(); + } + + public Response getResult() throws BlurException, org.apache.blur.thirdparty.thrift_0_9_0.TException { + if (getState() != org.apache.blur.thirdparty.thrift_0_9_0.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.blur.thirdparty.thrift_0_9_0.transport.TMemoryInputTransport memoryTransport = new org.apache.blur.thirdparty.thrift_0_9_0.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_execute(); + } + } + public void createTable(TableDescriptor tableDescriptor, org.apache.blur.thirdparty.thrift_0_9_0.async.AsyncMethodCallback<createTable_call> resultHandler) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { checkReady(); createTable_call method_call = new createTable_call(tableDescriptor, resultHandler, this, ___protocolFactory, ___transport); @@ -3111,6 +3181,7 @@ public class Blur { } private static <I extends Iface> Map<String, org.apache.blur.thirdparty.thrift_0_9_0.ProcessFunction<I, ? extends org.apache.blur.thirdparty.thrift_0_9_0.TBase>> getProcessMap(Map<String, org.apache.blur.thirdparty.thrift_0_9_0.ProcessFunction<I, ? extends org.apache.blur.thirdparty.thrift_0_9_0.TBase>> processMap) { + processMap.put("execute", new execute()); processMap.put("createTable", new createTable()); processMap.put("enableTable", new enableTable()); processMap.put("disableTable", new disableTable()); @@ -3158,6 +3229,30 @@ public class Blur { return processMap; } + public static class execute<I extends Iface> extends org.apache.blur.thirdparty.thrift_0_9_0.ProcessFunction<I, execute_args> { + public execute() { + super("execute"); + } + + public execute_args getEmptyArgsInstance() { + return new execute_args(); + } + + protected boolean isOneway() { + return false; + } + + public execute_result getResult(I iface, execute_args args) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { + execute_result result = new execute_result(); + try { + result.success = iface.execute(args.table, args.commandName, args.arguments); + } catch (BlurException ex) { + result.ex = ex; + } + return result; + } + } + public static class createTable<I extends Iface> extends org.apache.blur.thirdparty.thrift_0_9_0.ProcessFunction<I, createTable_args> { public createTable() { super("createTable"); @@ -4205,28 +4300,28 @@ public class Blur { } - public static class createTable_args implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<createTable_args, createTable_args._Fields>, java.io.Serializable, Cloneable { - private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct STRUCT_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct("createTable_args"); + public static class execute_args implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<execute_args, execute_args._Fields>, java.io.Serializable, Cloneable { + private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct STRUCT_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct("execute_args"); - private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField TABLE_DESCRIPTOR_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("tableDescriptor", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, (short)1); + private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField TABLE_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("table", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, (short)1); + private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField COMMAND_NAME_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("commandName", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, (short)2); + private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField ARGUMENTS_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("arguments", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, (short)3); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new createTable_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new createTable_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new execute_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new execute_argsTupleSchemeFactory()); } - /** - * the TableDescriptor. - */ - public TableDescriptor tableDescriptor; // required + public String table; // required + public String commandName; // required + public Arguments arguments; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.blur.thirdparty.thrift_0_9_0.TFieldIdEnum { - /** - * the TableDescriptor. - */ - TABLE_DESCRIPTOR((short)1, "tableDescriptor"); + TABLE((short)1, "table"), + COMMAND_NAME((short)2, "commandName"), + ARGUMENTS((short)3, "arguments"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); @@ -4241,8 +4336,12 @@ public class Blur { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // TABLE_DESCRIPTOR - return TABLE_DESCRIPTOR; + case 1: // TABLE + return TABLE; + case 2: // COMMAND_NAME + return COMMAND_NAME; + case 3: // ARGUMENTS + return ARGUMENTS; default: return null; } @@ -4286,77 +4385,151 @@ public class Blur { public static final Map<_Fields, org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.TABLE_DESCRIPTOR, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("tableDescriptor", org.apache.blur.thirdparty.thrift_0_9_0.TFieldRequirementType.DEFAULT, - new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.StructMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, TableDescriptor.class))); + tmpMap.put(_Fields.TABLE, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("table", org.apache.blur.thirdparty.thrift_0_9_0.TFieldRequirementType.DEFAULT, + new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldValueMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING))); + tmpMap.put(_Fields.COMMAND_NAME, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("commandName", org.apache.blur.thirdparty.thrift_0_9_0.TFieldRequirementType.DEFAULT, + new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldValueMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING))); + tmpMap.put(_Fields.ARGUMENTS, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("arguments", org.apache.blur.thirdparty.thrift_0_9_0.TFieldRequirementType.DEFAULT, + new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.StructMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, Arguments.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData.addStructMetaDataMap(createTable_args.class, metaDataMap); + org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData.addStructMetaDataMap(execute_args.class, metaDataMap); } - public createTable_args() { + public execute_args() { } - public createTable_args( - TableDescriptor tableDescriptor) + public execute_args( + String table, + String commandName, + Arguments arguments) { this(); - this.tableDescriptor = tableDescriptor; + this.table = table; + this.commandName = commandName; + this.arguments = arguments; } /** * Performs a deep copy on <i>other</i>. */ - public createTable_args(createTable_args other) { - if (other.isSetTableDescriptor()) { - this.tableDescriptor = new TableDescriptor(other.tableDescriptor); + public execute_args(execute_args other) { + if (other.isSetTable()) { + this.table = other.table; + } + if (other.isSetCommandName()) { + this.commandName = other.commandName; + } + if (other.isSetArguments()) { + this.arguments = new Arguments(other.arguments); } } - public createTable_args deepCopy() { - return new createTable_args(this); + public execute_args deepCopy() { + return new execute_args(this); } @Override public void clear() { - this.tableDescriptor = null; + this.table = null; + this.commandName = null; + this.arguments = null; } - /** - * the TableDescriptor. - */ - public TableDescriptor getTableDescriptor() { - return this.tableDescriptor; + public String getTable() { + return this.table; } - /** - * the TableDescriptor. - */ - public createTable_args setTableDescriptor(TableDescriptor tableDescriptor) { - this.tableDescriptor = tableDescriptor; + public execute_args setTable(String table) { + this.table = table; return this; } - public void unsetTableDescriptor() { - this.tableDescriptor = null; + public void unsetTable() { + this.table = null; } - /** Returns true if field tableDescriptor is set (has been assigned a value) and false otherwise */ - public boolean isSetTableDescriptor() { - return this.tableDescriptor != null; + /** Returns true if field table is set (has been assigned a value) and false otherwise */ + public boolean isSetTable() { + return this.table != null; } - public void setTableDescriptorIsSet(boolean value) { + public void setTableIsSet(boolean value) { if (!value) { - this.tableDescriptor = null; + this.table = null; + } + } + + public String getCommandName() { + return this.commandName; + } + + public execute_args setCommandName(String commandName) { + this.commandName = commandName; + return this; + } + + public void unsetCommandName() { + this.commandName = null; + } + + /** Returns true if field commandName is set (has been assigned a value) and false otherwise */ + public boolean isSetCommandName() { + return this.commandName != null; + } + + public void setCommandNameIsSet(boolean value) { + if (!value) { + this.commandName = null; + } + } + + public Arguments getArguments() { + return this.arguments; + } + + public execute_args setArguments(Arguments arguments) { + this.arguments = arguments; + return this; + } + + public void unsetArguments() { + this.arguments = null; + } + + /** Returns true if field arguments is set (has been assigned a value) and false otherwise */ + public boolean isSetArguments() { + return this.arguments != null; + } + + public void setArgumentsIsSet(boolean value) { + if (!value) { + this.arguments = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case TABLE_DESCRIPTOR: + case TABLE: if (value == null) { - unsetTableDescriptor(); + unsetTable(); } else { - setTableDescriptor((TableDescriptor)value); + setTable((String)value); + } + break; + + case COMMAND_NAME: + if (value == null) { + unsetCommandName(); + } else { + setCommandName((String)value); + } + break; + + case ARGUMENTS: + if (value == null) { + unsetArguments(); + } else { + setArguments((Arguments)value); } break; @@ -4365,8 +4538,14 @@ public class Blur { public Object getFieldValue(_Fields field) { switch (field) { - case TABLE_DESCRIPTOR: - return getTableDescriptor(); + case TABLE: + return getTable(); + + case COMMAND_NAME: + return getCommandName(); + + case ARGUMENTS: + return getArguments(); } throw new IllegalStateException(); @@ -4379,8 +4558,12 @@ public class Blur { } switch (field) { - case TABLE_DESCRIPTOR: - return isSetTableDescriptor(); + case TABLE: + return isSetTable(); + case COMMAND_NAME: + return isSetCommandName(); + case ARGUMENTS: + return isSetArguments(); } throw new IllegalStateException(); } @@ -4389,21 +4572,39 @@ public class Blur { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof createTable_args) - return this.equals((createTable_args)that); + if (that instanceof execute_args) + return this.equals((execute_args)that); return false; } - public boolean equals(createTable_args that) { + public boolean equals(execute_args that) { if (that == null) return false; - boolean this_present_tableDescriptor = true && this.isSetTableDescriptor(); - boolean that_present_tableDescriptor = true && that.isSetTableDescriptor(); - if (this_present_tableDescriptor || that_present_tableDescriptor) { - if (!(this_present_tableDescriptor && that_present_tableDescriptor)) + boolean this_present_table = true && this.isSetTable(); + boolean that_present_table = true && that.isSetTable(); + if (this_present_table || that_present_table) { + if (!(this_present_table && that_present_table)) return false; - if (!this.tableDescriptor.equals(that.tableDescriptor)) + if (!this.table.equals(that.table)) + return false; + } + + boolean this_present_commandName = true && this.isSetCommandName(); + boolean that_present_commandName = true && that.isSetCommandName(); + if (this_present_commandName || that_present_commandName) { + if (!(this_present_commandName && that_present_commandName)) + return false; + if (!this.commandName.equals(that.commandName)) + return false; + } + + boolean this_present_arguments = true && this.isSetArguments(); + boolean that_present_arguments = true && that.isSetArguments(); + if (this_present_arguments || that_present_arguments) { + if (!(this_present_arguments && that_present_arguments)) + return false; + if (!this.arguments.equals(that.arguments)) return false; } @@ -4415,20 +4616,40 @@ public class Blur { return 0; } - public int compareTo(createTable_args other) { + public int compareTo(execute_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - createTable_args typedOther = (createTable_args)other; + execute_args typedOther = (execute_args)other; - lastComparison = Boolean.valueOf(isSetTableDescriptor()).compareTo(typedOther.isSetTableDescriptor()); + lastComparison = Boolean.valueOf(isSetTable()).compareTo(typedOther.isSetTable()); if (lastComparison != 0) { return lastComparison; } - if (isSetTableDescriptor()) { - lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.tableDescriptor, typedOther.tableDescriptor); + if (isSetTable()) { + lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.table, typedOther.table); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetCommandName()).compareTo(typedOther.isSetCommandName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetCommandName()) { + lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.commandName, typedOther.commandName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetArguments()).compareTo(typedOther.isSetArguments()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetArguments()) { + lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.arguments, typedOther.arguments); if (lastComparison != 0) { return lastComparison; } @@ -4450,14 +4671,30 @@ public class Blur { @Override public String toString() { - StringBuilder sb = new StringBuilder("createTable_args("); + StringBuilder sb = new StringBuilder("execute_args("); boolean first = true; - sb.append("tableDescriptor:"); - if (this.tableDescriptor == null) { + sb.append("table:"); + if (this.table == null) { sb.append("null"); } else { - sb.append(this.tableDescriptor); + sb.append(this.table); + } + first = false; + if (!first) sb.append(", "); + sb.append("commandName:"); + if (this.commandName == null) { + sb.append("null"); + } else { + sb.append(this.commandName); + } + first = false; + if (!first) sb.append(", "); + sb.append("arguments:"); + if (this.arguments == null) { + sb.append("null"); + } else { + sb.append(this.arguments); } first = false; sb.append(")"); @@ -4467,8 +4704,8 @@ public class Blur { public void validate() throws org.apache.blur.thirdparty.thrift_0_9_0.TException { // check for required fields // check for sub-struct validity - if (tableDescriptor != null) { - tableDescriptor.validate(); + if (arguments != null) { + arguments.validate(); } } @@ -4488,15 +4725,15 @@ public class Blur { } } - private static class createTable_argsStandardSchemeFactory implements SchemeFactory { - public createTable_argsStandardScheme getScheme() { - return new createTable_argsStandardScheme(); + private static class execute_argsStandardSchemeFactory implements SchemeFactory { + public execute_argsStandardScheme getScheme() { + return new execute_argsStandardScheme(); } } - private static class createTable_argsStandardScheme extends StandardScheme<createTable_args> { + private static class execute_argsStandardScheme extends StandardScheme<execute_args> { - public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol iprot, createTable_args struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { + public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol iprot, execute_args struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -4506,11 +4743,27 @@ public class Blur { break; } switch (schemeField.id) { - case 1: // TABLE_DESCRIPTOR + case 1: // TABLE + if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING) { + struct.table = iprot.readString(); + struct.setTableIsSet(true); + } else { + org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // COMMAND_NAME + if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING) { + struct.commandName = iprot.readString(); + struct.setCommandNameIsSet(true); + } else { + org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // ARGUMENTS if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT) { - struct.tableDescriptor = new TableDescriptor(); - struct.tableDescriptor.read(iprot); - struct.setTableDescriptorIsSet(true); + struct.arguments = new Arguments(); + struct.arguments.read(iprot); + struct.setArgumentsIsSet(true); } else { org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -4526,13 +4779,23 @@ public class Blur { struct.validate(); } - public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol oprot, createTable_args struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { + public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol oprot, execute_args struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.tableDescriptor != null) { - oprot.writeFieldBegin(TABLE_DESCRIPTOR_FIELD_DESC); - struct.tableDescriptor.write(oprot); + if (struct.table != null) { + oprot.writeFieldBegin(TABLE_FIELD_DESC); + oprot.writeString(struct.table); + oprot.writeFieldEnd(); + } + if (struct.commandName != null) { + oprot.writeFieldBegin(COMMAND_NAME_FIELD_DESC); + oprot.writeString(struct.commandName); + oprot.writeFieldEnd(); + } + if (struct.arguments != null) { + oprot.writeFieldBegin(ARGUMENTS_FIELD_DESC); + struct.arguments.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -4541,56 +4804,79 @@ public class Blur { } - private static class createTable_argsTupleSchemeFactory implements SchemeFactory { - public createTable_argsTupleScheme getScheme() { - return new createTable_argsTupleScheme(); + private static class execute_argsTupleSchemeFactory implements SchemeFactory { + public execute_argsTupleScheme getScheme() { + return new execute_argsTupleScheme(); } } - private static class createTable_argsTupleScheme extends TupleScheme<createTable_args> { + private static class execute_argsTupleScheme extends TupleScheme<execute_args> { @Override - public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, createTable_args struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { + public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, execute_args struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetTableDescriptor()) { + if (struct.isSetTable()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetTableDescriptor()) { - struct.tableDescriptor.write(oprot); + if (struct.isSetCommandName()) { + optionals.set(1); + } + if (struct.isSetArguments()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetTable()) { + oprot.writeString(struct.table); + } + if (struct.isSetCommandName()) { + oprot.writeString(struct.commandName); + } + if (struct.isSetArguments()) { + struct.arguments.write(oprot); } } @Override - public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, createTable_args struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { + public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, execute_args struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.tableDescriptor = new TableDescriptor(); - struct.tableDescriptor.read(iprot); - struct.setTableDescriptorIsSet(true); + struct.table = iprot.readString(); + struct.setTableIsSet(true); + } + if (incoming.get(1)) { + struct.commandName = iprot.readString(); + struct.setCommandNameIsSet(true); + } + if (incoming.get(2)) { + struct.arguments = new Arguments(); + struct.arguments.read(iprot); + struct.setArgumentsIsSet(true); } } } } - public static class createTable_result implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<createTable_result, createTable_result._Fields>, java.io.Serializable, Cloneable { - private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct STRUCT_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct("createTable_result"); + public static class execute_result implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<execute_result, execute_result._Fields>, java.io.Serializable, Cloneable { + private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct STRUCT_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct("execute_result"); + private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField SUCCESS_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("success", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, (short)0); private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField EX_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("ex", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, (short)1); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new createTable_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new createTable_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new execute_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new execute_resultTupleSchemeFactory()); } + public Response success; // required public BlurException ex; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.blur.thirdparty.thrift_0_9_0.TFieldIdEnum { + SUCCESS((short)0, "success"), EX((short)1, "ex"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); @@ -4606,6 +4892,8 @@ public class Blur { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; case 1: // EX return EX; default: @@ -4651,45 +4939,77 @@ public class Blur { public static final Map<_Fields, org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("success", org.apache.blur.thirdparty.thrift_0_9_0.TFieldRequirementType.DEFAULT, + new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.StructMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, Response.class))); tmpMap.put(_Fields.EX, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("ex", org.apache.blur.thirdparty.thrift_0_9_0.TFieldRequirementType.DEFAULT, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldValueMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData.addStructMetaDataMap(createTable_result.class, metaDataMap); + org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData.addStructMetaDataMap(execute_result.class, metaDataMap); } - public createTable_result() { + public execute_result() { } - public createTable_result( + public execute_result( + Response success, BlurException ex) { this(); + this.success = success; this.ex = ex; } /** * Performs a deep copy on <i>other</i>. */ - public createTable_result(createTable_result other) { + public execute_result(execute_result other) { + if (other.isSetSuccess()) { + this.success = new Response(other.success); + } if (other.isSetEx()) { this.ex = new BlurException(other.ex); } } - public createTable_result deepCopy() { - return new createTable_result(this); + public execute_result deepCopy() { + return new execute_result(this); } @Override public void clear() { + this.success = null; this.ex = null; } + public Response getSuccess() { + return this.success; + } + + public execute_result setSuccess(Response success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + public BlurException getEx() { return this.ex; } - public createTable_result setEx(BlurException ex) { + public execute_result setEx(BlurException ex) { this.ex = ex; return this; } @@ -4711,6 +5031,14 @@ public class Blur { public void setFieldValue(_Fields field, Object value) { switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Response)value); + } + break; + case EX: if (value == null) { unsetEx(); @@ -4724,6 +5052,9 @@ public class Blur { public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + case EX: return getEx(); @@ -4738,6 +5069,8 @@ public class Blur { } switch (field) { + case SUCCESS: + return isSetSuccess(); case EX: return isSetEx(); } @@ -4748,15 +5081,24 @@ public class Blur { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof createTable_result) - return this.equals((createTable_result)that); + if (that instanceof execute_result) + return this.equals((execute_result)that); return false; } - public boolean equals(createTable_result that) { + public boolean equals(execute_result that) { if (that == null) return false; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { @@ -4774,14 +5116,24 @@ public class Blur { return 0; } - public int compareTo(createTable_result other) { + public int compareTo(execute_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - createTable_result typedOther = (createTable_result)other; + execute_result typedOther = (execute_result)other; + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.success, typedOther.success); + if (lastComparison != 0) { + return lastComparison; + } + } lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx()); if (lastComparison != 0) { return lastComparison; @@ -4809,9 +5161,17 @@ public class Blur { @Override public String toString() { - StringBuilder sb = new StringBuilder("createTable_result("); + StringBuilder sb = new StringBuilder("execute_result("); boolean first = true; + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); @@ -4844,15 +5204,15 @@ public class Blur { } } - private static class createTable_resultStandardSchemeFactory implements SchemeFactory { - public createTable_resultStandardScheme getScheme() { - return new createTable_resultStandardScheme(); + private static class execute_resultStandardSchemeFactory implements SchemeFactory { + public execute_resultStandardScheme getScheme() { + return new execute_resultStandardScheme(); } } - private static class createTable_resultStandardScheme extends StandardScheme<createTable_result> { + private static class execute_resultStandardScheme extends StandardScheme<execute_result> { - public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol iprot, createTable_result struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { + public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol iprot, execute_result struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -4862,6 +5222,15 @@ public class Blur { break; } switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT) { + struct.success = new Response(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; case 1: // EX if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT) { struct.ex = new BlurException(); @@ -4882,10 +5251,15 @@ public class Blur { struct.validate(); } - public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol oprot, createTable_result struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { + public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol oprot, execute_result struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + struct.success.write(oprot); + oprot.writeFieldEnd(); + } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); @@ -4897,32 +5271,43 @@ public class Blur { } - private static class createTable_resultTupleSchemeFactory implements SchemeFactory { - public createTable_resultTupleScheme getScheme() { - return new createTable_resultTupleScheme(); + private static class execute_resultTupleSchemeFactory implements SchemeFactory { + public execute_resultTupleScheme getScheme() { + return new execute_resultTupleScheme(); } } - private static class createTable_resultTupleScheme extends TupleScheme<createTable_result> { + private static class execute_resultTupleScheme extends TupleScheme<execute_result> { @Override - public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, createTable_result struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { + public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, execute_result struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetEx()) { + if (struct.isSetSuccess()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); + if (struct.isSetEx()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetSuccess()) { + struct.success.write(oprot); + } if (struct.isSetEx()) { struct.ex.write(oprot); } } @Override - public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, createTable_result struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { + public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, execute_result struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { + struct.success = new Response(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { struct.ex = new BlurException(); struct.ex.read(iprot); struct.setExIsSet(true); @@ -4932,28 +5317,28 @@ public class Blur { } - public static class enableTable_args implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<enableTable_args, enableTable_args._Fields>, java.io.Serializable, Cloneable { - private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct STRUCT_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct("enableTable_args"); + public static class createTable_args implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<createTable_args, createTable_args._Fields>, java.io.Serializable, Cloneable { + private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct STRUCT_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct("createTable_args"); - private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField TABLE_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("table", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, (short)1); + private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField TABLE_DESCRIPTOR_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("tableDescriptor", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, (short)1); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new enableTable_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new enableTable_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new createTable_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new createTable_argsTupleSchemeFactory()); } /** - * the table name. + * the TableDescriptor. */ - public String table; // required + public TableDescriptor tableDescriptor; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.blur.thirdparty.thrift_0_9_0.TFieldIdEnum { /** - * the table name. + * the TableDescriptor. */ - TABLE((short)1, "table"); + TABLE_DESCRIPTOR((short)1, "tableDescriptor"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); @@ -4968,8 +5353,8 @@ public class Blur { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // TABLE - return TABLE; + case 1: // TABLE_DESCRIPTOR + return TABLE_DESCRIPTOR; default: return null; } @@ -5013,77 +5398,77 @@ public class Blur { public static final Map<_Fields, org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.TABLE, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("table", org.apache.blur.thirdparty.thrift_0_9_0.TFieldRequirementType.DEFAULT, - new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldValueMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING))); + tmpMap.put(_Fields.TABLE_DESCRIPTOR, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("tableDescriptor", org.apache.blur.thirdparty.thrift_0_9_0.TFieldRequirementType.DEFAULT, + new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.StructMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, TableDescriptor.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData.addStructMetaDataMap(enableTable_args.class, metaDataMap); + org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData.addStructMetaDataMap(createTable_args.class, metaDataMap); } - public enableTable_args() { + public createTable_args() { } - public enableTable_args( - String table) + public createTable_args( + TableDescriptor tableDescriptor) { this(); - this.table = table; + this.tableDescriptor = tableDescriptor; } /** * Performs a deep copy on <i>other</i>. */ - public enableTable_args(enableTable_args other) { - if (other.isSetTable()) { - this.table = other.table; + public createTable_args(createTable_args other) { + if (other.isSetTableDescriptor()) { + this.tableDescriptor = new TableDescriptor(other.tableDescriptor); } } - public enableTable_args deepCopy() { - return new enableTable_args(this); + public createTable_args deepCopy() { + return new createTable_args(this); } @Override public void clear() { - this.table = null; + this.tableDescriptor = null; } /** - * the table name. + * the TableDescriptor. */ - public String getTable() { - return this.table; + public TableDescriptor getTableDescriptor() { + return this.tableDescriptor; } /** - * the table name. + * the TableDescriptor. */ - public enableTable_args setTable(String table) { - this.table = table; + public createTable_args setTableDescriptor(TableDescriptor tableDescriptor) { + this.tableDescriptor = tableDescriptor; return this; } - public void unsetTable() { - this.table = null; + public void unsetTableDescriptor() { + this.tableDescriptor = null; } - /** Returns true if field table is set (has been assigned a value) and false otherwise */ - public boolean isSetTable() { - return this.table != null; + /** Returns true if field tableDescriptor is set (has been assigned a value) and false otherwise */ + public boolean isSetTableDescriptor() { + return this.tableDescriptor != null; } - public void setTableIsSet(boolean value) { + public void setTableDescriptorIsSet(boolean value) { if (!value) { - this.table = null; + this.tableDescriptor = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case TABLE: + case TABLE_DESCRIPTOR: if (value == null) { - unsetTable(); + unsetTableDescriptor(); } else { - setTable((String)value); + setTableDescriptor((TableDescriptor)value); } break; @@ -5092,8 +5477,8 @@ public class Blur { public Object getFieldValue(_Fields field) { switch (field) { - case TABLE: - return getTable(); + case TABLE_DESCRIPTOR: + return getTableDescriptor(); } throw new IllegalStateException(); @@ -5106,8 +5491,8 @@ public class Blur { } switch (field) { - case TABLE: - return isSetTable(); + case TABLE_DESCRIPTOR: + return isSetTableDescriptor(); } throw new IllegalStateException(); } @@ -5116,21 +5501,21 @@ public class Blur { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof enableTable_args) - return this.equals((enableTable_args)that); + if (that instanceof createTable_args) + return this.equals((createTable_args)that); return false; } - public boolean equals(enableTable_args that) { + public boolean equals(createTable_args that) { if (that == null) return false; - boolean this_present_table = true && this.isSetTable(); - boolean that_present_table = true && that.isSetTable(); - if (this_present_table || that_present_table) { - if (!(this_present_table && that_present_table)) + boolean this_present_tableDescriptor = true && this.isSetTableDescriptor(); + boolean that_present_tableDescriptor = true && that.isSetTableDescriptor(); + if (this_present_tableDescriptor || that_present_tableDescriptor) { + if (!(this_present_tableDescriptor && that_present_tableDescriptor)) return false; - if (!this.table.equals(that.table)) + if (!this.tableDescriptor.equals(that.tableDescriptor)) return false; } @@ -5142,20 +5527,20 @@ public class Blur { return 0; } - public int compareTo(enableTable_args other) { + public int compareTo(createTable_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - enableTable_args typedOther = (enableTable_args)other; + createTable_args typedOther = (createTable_args)other; - lastComparison = Boolean.valueOf(isSetTable()).compareTo(typedOther.isSetTable()); + lastComparison = Boolean.valueOf(isSetTableDescriptor()).compareTo(typedOther.isSetTableDescriptor()); if (lastComparison != 0) { return lastComparison; } - if (isSetTable()) { - lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.table, typedOther.table); + if (isSetTableDescriptor()) { + lastComparison = org.apache.blur.thirdparty.thrift_0_9_0.TBaseHelper.compareTo(this.tableDescriptor, typedOther.tableDescriptor); if (lastComparison != 0) { return lastComparison; } @@ -5177,14 +5562,14 @@ public class Blur { @Override public String toString() { - StringBuilder sb = new StringBuilder("enableTable_args("); + StringBuilder sb = new StringBuilder("createTable_args("); boolean first = true; - sb.append("table:"); - if (this.table == null) { + sb.append("tableDescriptor:"); + if (this.tableDescriptor == null) { sb.append("null"); } else { - sb.append(this.table); + sb.append(this.tableDescriptor); } first = false; sb.append(")"); @@ -5194,6 +5579,9 @@ public class Blur { public void validate() throws org.apache.blur.thirdparty.thrift_0_9_0.TException { // check for required fields // check for sub-struct validity + if (tableDescriptor != null) { + tableDescriptor.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -5212,15 +5600,15 @@ public class Blur { } } - private static class enableTable_argsStandardSchemeFactory implements SchemeFactory { - public enableTable_argsStandardScheme getScheme() { - return new enableTable_argsStandardScheme(); + private static class createTable_argsStandardSchemeFactory implements SchemeFactory { + public createTable_argsStandardScheme getScheme() { + return new createTable_argsStandardScheme(); } } - private static class enableTable_argsStandardScheme extends StandardScheme<enableTable_args> { + private static class createTable_argsStandardScheme extends StandardScheme<createTable_args> { - public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol iprot, enableTable_args struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { + public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol iprot, createTable_args struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -5230,10 +5618,11 @@ public class Blur { break; } switch (schemeField.id) { - case 1: // TABLE - if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING) { - struct.table = iprot.readString(); - struct.setTableIsSet(true); + case 1: // TABLE_DESCRIPTOR + if (schemeField.type == org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT) { + struct.tableDescriptor = new TableDescriptor(); + struct.tableDescriptor.read(iprot); + struct.setTableDescriptorIsSet(true); } else { org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -5249,13 +5638,13 @@ public class Blur { struct.validate(); } - public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol oprot, enableTable_args struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { + public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol oprot, createTable_args struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.table != null) { - oprot.writeFieldBegin(TABLE_FIELD_DESC); - oprot.writeString(struct.table); + if (struct.tableDescriptor != null) { + oprot.writeFieldBegin(TABLE_DESCRIPTOR_FIELD_DESC); + struct.tableDescriptor.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -5264,49 +5653,50 @@ public class Blur { } - private static class enableTable_argsTupleSchemeFactory implements SchemeFactory { - public enableTable_argsTupleScheme getScheme() { - return new enableTable_argsTupleScheme(); + private static class createTable_argsTupleSchemeFactory implements SchemeFactory { + public createTable_argsTupleScheme getScheme() { + return new createTable_argsTupleScheme(); } } - private static class enableTable_argsTupleScheme extends TupleScheme<enableTable_args> { + private static class createTable_argsTupleScheme extends TupleScheme<createTable_args> { @Override - public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, enableTable_args struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { + public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, createTable_args struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetTable()) { + if (struct.isSetTableDescriptor()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); - if (struct.isSetTable()) { - oprot.writeString(struct.table); + if (struct.isSetTableDescriptor()) { + struct.tableDescriptor.write(oprot); } } @Override - public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, enableTable_args struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { + public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, createTable_args struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.table = iprot.readString(); - struct.setTableIsSet(true); + struct.tableDescriptor = new TableDescriptor(); + struct.tableDescriptor.read(iprot); + struct.setTableDescriptorIsSet(true); } } } } - public static class enableTable_result implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<enableTable_result, enableTable_result._Fields>, java.io.Serializable, Cloneable { - private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct STRUCT_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct("enableTable_result"); + public static class createTable_result implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<createTable_result, createTable_result._Fields>, java.io.Serializable, Cloneable { + private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct STRUCT_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct("createTable_result"); private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField EX_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("ex", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, (short)1); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new enableTable_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new enableTable_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new createTable_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new createTable_resultTupleSchemeFactory()); } public BlurException ex; // required @@ -5376,13 +5766,13 @@ public class Blur { tmpMap.put(_Fields.EX, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("ex", org.apache.blur.thirdparty.thrift_0_9_0.TFieldRequirementType.DEFAULT, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldValueMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData.addStructMetaDataMap(enableTable_result.class, metaDataMap); + org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData.addStructMetaDataMap(createTable_result.class, metaDataMap); } - public enableTable_result() { + public createTable_result() { } - public enableTable_result( + public createTable_result( BlurException ex) { this(); @@ -5392,14 +5782,14 @@ public class Blur { /** * Performs a deep copy on <i>other</i>. */ - public enableTable_result(enableTable_result other) { + public createTable_result(createTable_result other) { if (other.isSetEx()) { this.ex = new BlurException(other.ex); } } - public enableTable_result deepCopy() { - return new enableTable_result(this); + public createTable_result deepCopy() { + return new createTable_result(this); } @Override @@ -5411,7 +5801,7 @@ public class Blur { return this.ex; } - public enableTable_result setEx(BlurException ex) { + public createTable_result setEx(BlurException ex) { this.ex = ex; return this; } @@ -5470,12 +5860,12 @@ public class Blur { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof enableTable_result) - return this.equals((enableTable_result)that); + if (that instanceof createTable_result) + return this.equals((createTable_result)that); return false; } - public boolean equals(enableTable_result that) { + public boolean equals(createTable_result that) { if (that == null) return false; @@ -5496,13 +5886,13 @@ public class Blur { return 0; } - public int compareTo(enableTable_result other) { + public int compareTo(createTable_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - enableTable_result typedOther = (enableTable_result)other; + createTable_result typedOther = (createTable_result)other; lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx()); if (lastComparison != 0) { @@ -5531,7 +5921,7 @@ public class Blur { @Override public String toString() { - StringBuilder sb = new StringBuilder("enableTable_result("); + StringBuilder sb = new StringBuilder("createTable_result("); boolean first = true; sb.append("ex:"); @@ -5566,15 +5956,15 @@ public class Blur { } } - private static class enableTable_resultStandardSchemeFactory implements SchemeFactory { - public enableTable_resultStandardScheme getScheme() { - return new enableTable_resultStandardScheme(); + private static class createTable_resultStandardSchemeFactory implements SchemeFactory { + public createTable_resultStandardScheme getScheme() { + return new createTable_resultStandardScheme(); } } - private static class enableTable_resultStandardScheme extends StandardScheme<enableTable_result> { + private static class createTable_resultStandardScheme extends StandardScheme<createTable_result> { - public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol iprot, enableTable_result struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { + public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol iprot, createTable_result struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -5604,7 +5994,7 @@ public class Blur { struct.validate(); } - public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol oprot, enableTable_result struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { + public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol oprot, createTable_result struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -5619,16 +6009,16 @@ public class Blur { } - private static class enableTable_resultTupleSchemeFactory implements SchemeFactory { - public enableTable_resultTupleScheme getScheme() { - return new enableTable_resultTupleScheme(); + private static class createTable_resultTupleSchemeFactory implements SchemeFactory { + public createTable_resultTupleScheme getScheme() { + return new createTable_resultTupleScheme(); } } - private static class enableTable_resultTupleScheme extends TupleScheme<enableTable_result> { + private static class createTable_resultTupleScheme extends TupleScheme<createTable_result> { @Override - public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, enableTable_result struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { + public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, createTable_result struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetEx()) { @@ -5641,7 +6031,7 @@ public class Blur { } @Override - public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, enableTable_result struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { + public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, createTable_result struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -5654,15 +6044,15 @@ public class Blur { } - public static class disableTable_args implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<disableTable_args, disableTable_args._Fields>, java.io.Serializable, Cloneable { - private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct STRUCT_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct("disableTable_args"); + public static class enableTable_args implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<enableTable_args, enableTable_args._Fields>, java.io.Serializable, Cloneable { + private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct STRUCT_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct("enableTable_args"); private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField TABLE_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("table", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, (short)1); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new disableTable_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new disableTable_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new enableTable_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new enableTable_argsTupleSchemeFactory()); } /** @@ -5738,13 +6128,13 @@ public class Blur { tmpMap.put(_Fields.TABLE, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("table", org.apache.blur.thirdparty.thrift_0_9_0.TFieldRequirementType.DEFAULT, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldValueMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData.addStructMetaDataMap(disableTable_args.class, metaDataMap); + org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData.addStructMetaDataMap(enableTable_args.class, metaDataMap); } - public disableTable_args() { + public enableTable_args() { } - public disableTable_args( + public enableTable_args( String table) { this(); @@ -5754,14 +6144,14 @@ public class Blur { /** * Performs a deep copy on <i>other</i>. */ - public disableTable_args(disableTable_args other) { + public enableTable_args(enableTable_args other) { if (other.isSetTable()) { this.table = other.table; } } - public disableTable_args deepCopy() { - return new disableTable_args(this); + public enableTable_args deepCopy() { + return new enableTable_args(this); } @Override @@ -5779,7 +6169,7 @@ public class Blur { /** * the table name. */ - public disableTable_args setTable(String table) { + public enableTable_args setTable(String table) { this.table = table; return this; } @@ -5838,12 +6228,12 @@ public class Blur { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof disableTable_args) - return this.equals((disableTable_args)that); + if (that instanceof enableTable_args) + return this.equals((enableTable_args)that); return false; } - public boolean equals(disableTable_args that) { + public boolean equals(enableTable_args that) { if (that == null) return false; @@ -5864,13 +6254,13 @@ public class Blur { return 0; } - public int compareTo(disableTable_args other) { + public int compareTo(enableTable_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - disableTable_args typedOther = (disableTable_args)other; + enableTable_args typedOther = (enableTable_args)other; lastComparison = Boolean.valueOf(isSetTable()).compareTo(typedOther.isSetTable()); if (lastComparison != 0) { @@ -5899,7 +6289,7 @@ public class Blur { @Override public String toString() { - StringBuilder sb = new StringBuilder("disableTable_args("); + StringBuilder sb = new StringBuilder("enableTable_args("); boolean first = true; sb.append("table:"); @@ -5934,15 +6324,15 @@ public class Blur { } } - private static class disableTable_argsStandardSchemeFactory implements SchemeFactory { - public disableTable_argsStandardScheme getScheme() { - return new disableTable_argsStandardScheme(); + private static class enableTable_argsStandardSchemeFactory implements SchemeFactory { + public enableTable_argsStandardScheme getScheme() { + return new enableTable_argsStandardScheme(); } } - private static class disableTable_argsStandardScheme extends StandardScheme<disableTable_args> { + private static class enableTable_argsStandardScheme extends StandardScheme<enableTable_args> { - public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol iprot, disableTable_args struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { + public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol iprot, enableTable_args struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -5971,7 +6361,7 @@ public class Blur { struct.validate(); } - public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol oprot, disableTable_args struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { + public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol oprot, enableTable_args struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -5986,16 +6376,16 @@ public class Blur { } - private static class disableTable_argsTupleSchemeFactory implements SchemeFactory { - public disableTable_argsTupleScheme getScheme() { - return new disableTable_argsTupleScheme(); + private static class enableTable_argsTupleSchemeFactory implements SchemeFactory { + public enableTable_argsTupleScheme getScheme() { + return new enableTable_argsTupleScheme(); } } - private static class disableTable_argsTupleScheme extends TupleScheme<disableTable_args> { + private static class enableTable_argsTupleScheme extends TupleScheme<enableTable_args> { @Override - public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, disableTable_args struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { + public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, enableTable_args struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetTable()) { @@ -6008,7 +6398,7 @@ public class Blur { } @Override - public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, disableTable_args struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { + public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, enableTable_args struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -6020,15 +6410,15 @@ public class Blur { } - public static class disableTable_result implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<disableTable_result, disableTable_result._Fields>, java.io.Serializable, Cloneable { - private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct STRUCT_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct("disableTable_result"); + public static class enableTable_result implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<enableTable_result, enableTable_result._Fields>, java.io.Serializable, Cloneable { + private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct STRUCT_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct("enableTable_result"); private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField EX_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("ex", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, (short)1); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new disableTable_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new disableTable_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new enableTable_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new enableTable_resultTupleSchemeFactory()); } public BlurException ex; // required @@ -6098,13 +6488,13 @@ public class Blur { tmpMap.put(_Fields.EX, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("ex", org.apache.blur.thirdparty.thrift_0_9_0.TFieldRequirementType.DEFAULT, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldValueMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData.addStructMetaDataMap(disableTable_result.class, metaDataMap); + org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData.addStructMetaDataMap(enableTable_result.class, metaDataMap); } - public disableTable_result() { + public enableTable_result() { } - public disableTable_result( + public enableTable_result( BlurException ex) { this(); @@ -6114,14 +6504,14 @@ public class Blur { /** * Performs a deep copy on <i>other</i>. */ - public disableTable_result(disableTable_result other) { + public enableTable_result(enableTable_result other) { if (other.isSetEx()) { this.ex = new BlurException(other.ex); } } - public disableTable_result deepCopy() { - return new disableTable_result(this); + public enableTable_result deepCopy() { + return new enableTable_result(this); } @Override @@ -6133,7 +6523,7 @@ public class Blur { return this.ex; } - public disableTable_result setEx(BlurException ex) { + public enableTable_result setEx(BlurException ex) { this.ex = ex; return this; } @@ -6192,12 +6582,12 @@ public class Blur { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof disableTable_result) - return this.equals((disableTable_result)that); + if (that instanceof enableTable_result) + return this.equals((enableTable_result)that); return false; } - public boolean equals(disableTable_result that) { + public boolean equals(enableTable_result that) { if (that == null) return false; @@ -6218,13 +6608,13 @@ public class Blur { return 0; } - public int compareTo(disableTable_result other) { + public int compareTo(enableTable_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - disableTable_result typedOther = (disableTable_result)other; + enableTable_result typedOther = (enableTable_result)other; lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx()); if (lastComparison != 0) { @@ -6253,7 +6643,7 @@ public class Blur { @Override public String toString() { - StringBuilder sb = new StringBuilder("disableTable_result("); + StringBuilder sb = new StringBuilder("enableTable_result("); boolean first = true; sb.append("ex:"); @@ -6288,15 +6678,15 @@ public class Blur { } } - private static class disableTable_resultStandardSchemeFactory implements SchemeFactory { - public disableTable_resultStandardScheme getScheme() { - return new disableTable_resultStandardScheme(); + private static class enableTable_resultStandardSchemeFactory implements SchemeFactory { + public enableTable_resultStandardScheme getScheme() { + return new enableTable_resultStandardScheme(); } } - private static class disableTable_resultStandardScheme extends StandardScheme<disableTable_result> { + private static class enableTable_resultStandardScheme extends StandardScheme<enableTable_result> { - public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol iprot, disableTable_result struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { + public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol iprot, enableTable_result struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -6326,7 +6716,7 @@ public class Blur { struct.validate(); } - public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol oprot, disableTable_result struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { + public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol oprot, enableTable_result struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -6341,16 +6731,16 @@ public class Blur { } - private static class disableTable_resultTupleSchemeFactory implements SchemeFactory { - public disableTable_resultTupleScheme getScheme() { - return new disableTable_resultTupleScheme(); + private static class enableTable_resultTupleSchemeFactory implements SchemeFactory { + public enableTable_resultTupleScheme getScheme() { + return new enableTable_resultTupleScheme(); } } - private static class disableTable_resultTupleScheme extends TupleScheme<disableTable_result> { + private static class enableTable_resultTupleScheme extends TupleScheme<enableTable_result> { @Override - public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, disableTable_result struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { + public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, enableTable_result struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetEx()) { @@ -6363,7 +6753,7 @@ public class Blur { } @Override - public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, disableTable_result struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { + public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, enableTable_result struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -6376,37 +6766,28 @@ public class Blur { } - public static class removeTable_args implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<removeTable_args, removeTable_args._Fields>, java.io.Serializable, Cloneable { - private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct STRUCT_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct("removeTable_args"); + public static class disableTable_args implements org.apache.blur.thirdparty.thrift_0_9_0.TBase<disableTable_args, disableTable_args._Fields>, java.io.Serializable, Cloneable { + private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct STRUCT_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TStruct("disableTable_args"); private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField TABLE_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("table", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, (short)1); - private static final org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField DELETE_INDEX_FILES_FIELD_DESC = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TField("deleteIndexFiles", org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.BOOL, (short)2); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new removeTable_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new removeTable_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new disableTable_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new disableTable_argsTupleSchemeFactory()); } /** * the table name. */ public String table; // required - /** - * true to remove the index storage and false if to preserve. - */ - public boolean deleteIndexFiles; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.blur.thirdparty.thrift_0_9_0.TFieldIdEnum { /** * the table name. */ - TABLE((short)1, "table"), - /** - * true to remove the index storage and false if to preserve. - */ - DELETE_INDEX_FILES((short)2, "deleteIndexFiles"); + TABLE((short)1, "table"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); @@ -6423,8 +6804,6 @@ public class Blur { switch(fieldId) { case 1: // TABLE return TABLE; - case 2: // DELETE_INDEX_FILES - return DELETE_INDEX_FILES; default: return null; } @@ -6465,52 +6844,41 @@ public class Blur { } // isset id assignments - private static final int __DELETEINDEXFILES_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TABLE, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("table", org.apache.blur.thirdparty.thrift_0_9_0.TFieldRequirementType.DEFAULT, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldValueMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING))); - tmpMap.put(_Fields.DELETE_INDEX_FILES, new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData("deleteIndexFiles", org.apache.blur.thirdparty.thrift_0_9_0.TFieldRequirementType.DEFAULT, - new org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldValueMetaData(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData.addStructMetaDataMap(removeTable_args.class, metaDataMap); + org.apache.blur.thirdparty.thrift_0_9_0.meta_data.FieldMetaData.addStructMetaDataMap(disableTable_args.class, metaDataMap); } - public removeTable_args() { + public disableTable_args() { } - public removeTable_args( - String table, - boolean deleteIndexFiles) + public disableTable_args( + String table) { this(); this.table = table; - this.deleteIndexFiles = deleteIndexFiles; - setDeleteIndexFilesIs
<TRUNCATED>
