Class: AppEngine::Datastore::ByteString

Inherits:
Blob
  • Object
show all
Defined in:
lib/appengine-apis/datastore_types.rb

Overview

A byte-string type, appropriate for storing short amounts of indexed data.

This behaves identically to Blob, except it’s used only for short, indexed byte strings.

Instance Method Summary collapse

Methods inherited from Blob

new_from_java

Instance Method Details

#to_javaObject



102
103
104
# File 'lib/appengine-apis/datastore_types.rb', line 102

def to_java
  JavaDatastore::ShortBlob.new(self.to_java_bytes)
end