Package

com.twitter

scrooge

Permalink

package scrooge

Visibility
  1. Public
  2. All

Type Members

  1. trait LazyTProtocol extends TProtocol

    Permalink

    An extension to the TProtocol to enable lazy reading

    An extension to the TProtocol to enable lazy reading

    Three main classes of operations are intended to be enabled here:

    1) Enable caching of a backing Array[Byte] so we can serialize quickly what we just deserialized if unchanged. 2) Enabling deferred string decoding, since string decoding is an expensive operation if we don't need the string large savings can be had avoiding this for all strings in our deserialization path. 3) Optional fields require boxing + allocations during deserialization for primitive types, this stores the offset to those types instead, doing a lazy instantiation of the Option when the field is first accessed.

  2. final class TArrayByteTransport extends TTransport

    Permalink
  3. case class TFieldBlob(field: TField, data: Array[Byte]) extends Product with Serializable

    Permalink

    This class encapsulates a TField reference with a TCompactProtocol-encoded binary blob.

  4. class TLazyBinaryProtocol extends TBinaryProtocol with LazyTProtocol

    Permalink
  5. class TReusableMemoryTransport extends TTransport

    Permalink

    A version of TMemoryTransport that allows for reuse in order to minimize object allocations.

  6. trait ThriftEnum extends TEnum

    Permalink
  7. trait ThriftException extends Exception

    Permalink
  8. trait ThriftMethod extends AnyRef

    Permalink

    Metadata for a thrift method.

  9. trait ThriftResponse[Result] extends AnyRef

    Permalink
  10. trait ThriftService extends AnyRef

    Permalink

    A marker trait for interfaces that represent thrift services.

  11. trait ThriftStruct extends AnyRef

    Permalink
  12. trait ThriftStructCodec[T <: ThriftStruct] extends AnyRef

    Permalink

    A trait encapsulating the logic for encoding and decoding a specific thrift struct type.

    A trait encapsulating the logic for encoding and decoding a specific thrift struct type. The methods encoder and decoder are used by scrooge2 generated code, but are now deprecated. scrooge3 generated code uses encode and decode.

  13. abstract class ThriftStructCodec3[T <: ThriftStruct] extends ThriftStructCodec[T]

    Permalink

    structs generated by scrooge3 will extends this base class, which provides implementations for the deprecated encoder/decoder methods that depend on encode and decode, which are generated.

  14. final class ThriftStructField[T <: ThriftStruct] extends AnyRef

    Permalink
  15. final class ThriftStructFieldInfo extends AnyRef

    Permalink

    Field information to be embedded in a generated struct's companion class.

    Field information to be embedded in a generated struct's companion class. Allows for reflection on field types.

  16. final class ThriftStructMetaData[T <: ThriftStruct] extends AnyRef

    Permalink

    A simple class for generic introspection on ThriftStruct classes.

  17. trait ThriftUnion extends AnyRef

    Permalink

    Unions are tagged with this trait as well as with ThriftStruct.

  18. final class ThriftUnionFieldInfo[UnionFieldType <: ThriftUnion with ThriftStruct, ContainedType] extends AnyRef

    Permalink

    Field information to be embedded in a generated union's companion class.

    Field information to be embedded in a generated union's companion class.

    UnionFieldType

    The type of the union field represented by this class

    ContainedType

    The type of the value contained in the union field represented by this class

  19. trait ToThriftService extends AnyRef

    Permalink

    A trait indicating that this can be converted to a ThriftService

Value Members

  1. object TArrayByteTransport

    Permalink

    TArrayByteTransport decodes Array[Byte] to primitive types This is a replacement transport optimized for Array[Byte] and the TLazyBinaryProtocol

    TArrayByteTransport decodes Array[Byte] to primitive types This is a replacement transport optimized for Array[Byte] and the TLazyBinaryProtocol

    NB. This class/transport is not thread safe, and contains mutable state.

  2. object TFieldBlob extends Serializable

    Permalink
  3. object TLazyBinaryProtocol

    Permalink

    This is an implementation of the LazyTProtocol trait in scrooge-core This is not thread safe and maintains state.

    This is an implementation of the LazyTProtocol trait in scrooge-core This is not thread safe and maintains state. It also heavily uses inline annotations and marks things as final where possible to avoid virtual indirects. Its in a benchmark package as a POC, we may want to do something a bit different when it comes to a version for scrooge-serializer or elsewhere. Though it is a fully functional protocol that will deserialize/serialize any thrift.

  4. object TReusableMemoryTransport

    Permalink
  5. object ThriftResponse

    Permalink
  6. object ThriftUtil

    Permalink

Ungrouped