Tabnine Logo
IllegalArgument
Code IndexAdd Tabnine to your IDE (free)

How to use
IllegalArgument
in
org.apache.hadoop.hbase.thrift.generated

Best Java code snippets using org.apache.hadoop.hbase.thrift.generated.IllegalArgument (Showing top 20 results out of 315)

origin: apache/hbase

public IllegalArgument deepCopy() {
 return new IllegalArgument(this);
}
origin: apache/hbase

@Override
public boolean equals(java.lang.Object that) {
 if (that == null)
  return false;
 if (that instanceof IllegalArgument)
  return this.equals((IllegalArgument)that);
 return false;
}
origin: apache/hbase

@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
 switch (field) {
 case MESSAGE:
  return getMessage();
 }
 throw new java.lang.IllegalStateException();
}
origin: apache/hbase

public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
 switch (field) {
 case MESSAGE:
  if (value == null) {
   unsetMessage();
  } else {
   setMessage((java.lang.String)value);
  }
  break;
 }
}
origin: apache/hbase

public void read(org.apache.thrift.protocol.TProtocol iprot, IllegalArgument struct) throws org.apache.thrift.TException {
 org.apache.thrift.protocol.TField schemeField;
 iprot.readStructBegin();
 while (true)
 {
  schemeField = iprot.readFieldBegin();
  if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
   break;
  }
  switch (schemeField.id) {
   case 1: // MESSAGE
    if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
     struct.message = iprot.readString();
     struct.setMessageIsSet(true);
    } else { 
     org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    }
    break;
   default:
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
  }
  iprot.readFieldEnd();
 }
 iprot.readStructEnd();
 // check for required fields of primitive type, which can't be checked in the validate method
 struct.validate();
}
origin: apache/hbase

/**
 * Performs a deep copy on <i>other</i>.
 */
public IllegalArgument(IllegalArgument other) {
 if (other.isSetMessage()) {
  this.message = other.message;
 }
}
origin: apache/hbase

public void write(org.apache.thrift.protocol.TProtocol oprot, IllegalArgument struct) throws org.apache.thrift.TException {
 struct.validate();
 oprot.writeStructBegin(STRUCT_DESC);
 if (struct.message != null) {
  oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
  oprot.writeString(struct.message);
  oprot.writeFieldEnd();
 }
 oprot.writeFieldStop();
 oprot.writeStructEnd();
}
origin: apache/hbase

private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
 try {
  read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
 } catch (org.apache.thrift.TException te) {
  throw new java.io.IOException(te);
 }
}
origin: apache/hbase

private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
 try {
  write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
 } catch (org.apache.thrift.TException te) {
  throw new java.io.IOException(te);
 }
}
origin: apache/hbase

 @Override
 public void read(org.apache.thrift.protocol.TProtocol prot, IllegalArgument struct) throws org.apache.thrift.TException {
  org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
  java.util.BitSet incoming = iprot.readBitSet(1);
  if (incoming.get(0)) {
   struct.message = iprot.readString();
   struct.setMessageIsSet(true);
  }
 }
}
origin: apache/hbase

@Override
public int hashCode() {
 int hashCode = 1;
 hashCode = hashCode * 8191 + ((isSetMessage()) ? 131071 : 524287);
 if (isSetMessage())
  hashCode = hashCode * 8191 + message.hashCode();
 return hashCode;
}
origin: larsgeorge/hbase-book

public void setFieldValue(_Fields field, Object value) {
 switch (field) {
 case MESSAGE:
  if (value == null) {
   unsetMessage();
  } else {
   setMessage((String)value);
  }
  break;
 }
}
origin: larsgeorge/hbase-book

public void read(org.apache.thrift.protocol.TProtocol iprot, IllegalArgument struct) throws org.apache.thrift.TException {
 org.apache.thrift.protocol.TField schemeField;
 iprot.readStructBegin();
 while (true)
 {
  schemeField = iprot.readFieldBegin();
  if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
   break;
  }
  switch (schemeField.id) {
   case 1: // MESSAGE
    if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
     struct.message = iprot.readString();
     struct.setMessageIsSet(true);
    } else { 
     org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    }
    break;
   default:
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
  }
  iprot.readFieldEnd();
 }
 iprot.readStructEnd();
 // check for required fields of primitive type, which can't be checked in the validate method
 struct.validate();
}
origin: larsgeorge/hbase-book

public void write(org.apache.thrift.protocol.TProtocol oprot, IllegalArgument struct) throws org.apache.thrift.TException {
 struct.validate();
 oprot.writeStructBegin(STRUCT_DESC);
 if (struct.message != null) {
  oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
  oprot.writeString(struct.message);
  oprot.writeFieldEnd();
 }
 oprot.writeFieldStop();
 oprot.writeStructEnd();
}
origin: larsgeorge/hbase-book

private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
 try {
  read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
 } catch (org.apache.thrift.TException te) {
  throw new java.io.IOException(te);
 }
}
origin: larsgeorge/hbase-book

private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
 try {
  write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
 } catch (org.apache.thrift.TException te) {
  throw new java.io.IOException(te);
 }
}
origin: larsgeorge/hbase-book

 @Override
 public void read(org.apache.thrift.protocol.TProtocol prot, IllegalArgument struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  BitSet incoming = iprot.readBitSet(1);
  if (incoming.get(0)) {
   struct.message = iprot.readString();
   struct.setMessageIsSet(true);
  }
 }
}
origin: apache/hbase

@Override
public void scannerClose(int id) throws IOError, IllegalArgument {
 LOG.debug("scannerClose: id={}", id);
 ResultScannerWrapper resultScannerWrapper = getScanner(id);
 if (resultScannerWrapper == null) {
  LOG.warn("scanner ID is invalid");
  throw new IllegalArgument("scanner ID is invalid");
 }
 resultScannerWrapper.getScanner().close();
 removeScanner(id);
}
origin: apache/hbase

public boolean equals(IllegalArgument that) {
 if (that == null)
  return false;
 if (this == that)
  return true;
 boolean this_present_message = true && this.isSetMessage();
 boolean that_present_message = true && that.isSetMessage();
 if (this_present_message || that_present_message) {
  if (!(this_present_message && that_present_message))
   return false;
  if (!this.message.equals(that.message))
   return false;
 }
 return true;
}
origin: larsgeorge/hbase-book

public void setFieldValue(_Fields field, Object value) {
 switch (field) {
 case MESSAGE:
  if (value == null) {
   unsetMessage();
  } else {
   setMessage((String)value);
  }
  break;
 }
}
org.apache.hadoop.hbase.thrift.generatedIllegalArgument

Javadoc

An IllegalArgument exception indicates an illegal or invalid argument was passed into a procedure.

Most used methods

  • <init>
    Performs a deep copy on other.
  • equals
  • getMessage
  • isSetMessage
    Returns true if field message is set (has been assigned a value) and false otherwise
  • read
  • setMessage
  • setMessageIsSet
  • unsetMessage
  • validate
  • write
  • scheme
  • scheme

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (Timer)
  • getApplicationContext (Context)
  • setContentView (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Notification (javax.management)
  • JTable (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • IsNull (org.hamcrest.core)
    Is the value null?
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now