object Annotation extends ValidatingThriftStructCodec3[Annotation] with StructBuilderFactory[Annotation] with Serializable
An annotation is similar to a log statement. It includes a host field which allows these events to be attributed properly, and also aggregatable.
- Alphabetic
- By Inheritance
- Annotation
- Serializable
- Serializable
- StructBuilderFactory
- ValidatingThriftStructCodec3
- ThriftStructCodec3
- ThriftStructCodec
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
class
Immutable extends Annotation
The default read-only implementation of Annotation.
The default read-only implementation of Annotation. You typically should not need to directly reference this class; instead, use the Annotation.apply method to construct new instances.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val HostField: TField
- val HostFieldManifest: Manifest[Endpoint]
- val Struct: TStruct
- val TimestampField: TField
- val TimestampFieldManifest: Manifest[Long]
- val ValueField: TField
- val ValueFieldManifest: Manifest[String]
- def apply(timestamp: Long, value: String, host: Option[Endpoint] = _root_.scala.None): Annotation
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
decode(_iprot: TProtocol): Annotation
- Definition Classes
- Annotation → ThriftStructCodec
-
def
encode(_item: Annotation, _oproto: TProtocol): Unit
- Definition Classes
- Annotation → ThriftStructCodec
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
lazy val
fieldInfos: List[ThriftStructFieldInfo]
Field information in declaration order.
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
lazy val
metaData: ThriftStructMetaData[Annotation]
- Definition Classes
- Annotation → ThriftStructCodec
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
newBuilder(): StructBuilder[Annotation]
- Definition Classes
- Annotation → StructBuilderFactory
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val structAnnotations: Map[String, String]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
ttypeToString(byte: Byte): String
- Attributes
- protected
- Definition Classes
- ThriftStructCodec3
- def unapply(_item: Annotation): Option[(Long, String, Option[Endpoint])]
- lazy val unsafeEmpty: Annotation
-
def
validate(_item: Annotation): Unit
Checks that all required fields are non-null.
-
final
def
validateField[U <: ValidatingThriftStruct[U]](any: Any): Seq[Issue]
- Attributes
- protected
- Definition Classes
- ValidatingThriftStructCodec3
-
final
def
validateFieldValue[U <: ValidatingThriftStruct[U]](fieldName: String, fieldValue: Any, fieldAnnotations: Map[String, String], thriftValidator: ThriftValidator): Set[ThriftValidationViolation]
- Attributes
- protected
- Definition Classes
- ValidatingThriftStructCodec3
-
def
validateInstanceValue(item: Annotation): Set[ThriftValidationViolation]
Validate that all validation annotations on the struct meet the criteria defined in the corresponding com.twitter.scrooge.validation.ThriftConstraintValidator.
Validate that all validation annotations on the struct meet the criteria defined in the corresponding com.twitter.scrooge.validation.ThriftConstraintValidator.
- Definition Classes
- Annotation → ValidatingThriftStructCodec3
-
def
validateNewInstance(item: Annotation): Seq[Issue]
Checks that the struct is a valid as a new instance.
Checks that the struct is a valid as a new instance. If there are any missing required or construction required fields, return a non-empty list.
- Definition Classes
- Annotation → ValidatingThriftStructCodec3
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def withoutPassthroughFields(original: Annotation): Annotation
- object Immutable extends ThriftStructCodec3[Annotation] with Serializable