Class BytesRefDataAccess

java.lang.Object
net.openhft.chronicle.hash.AbstractData<org.apache.lucene.util.BytesRef>
org.opengrok.suggest.popular.impl.chronicle.BytesRefDataAccess
All Implemented Interfaces:
net.openhft.chronicle.bytes.CommonMarshallable, net.openhft.chronicle.core.io.Resettable, net.openhft.chronicle.hash.Data<org.apache.lucene.util.BytesRef>, net.openhft.chronicle.hash.serialization.DataAccess<org.apache.lucene.util.BytesRef>, net.openhft.chronicle.hash.serialization.StatefulCopyable<net.openhft.chronicle.hash.serialization.DataAccess<org.apache.lucene.util.BytesRef>>, net.openhft.chronicle.wire.Marshallable, net.openhft.chronicle.wire.ReadMarshallable, net.openhft.chronicle.wire.WriteMarshallable, net.openhft.chronicle.wire.WriteValue

public class BytesRefDataAccess extends net.openhft.chronicle.hash.AbstractData<org.apache.lucene.util.BytesRef> implements net.openhft.chronicle.hash.serialization.DataAccess<org.apache.lucene.util.BytesRef>
BytesRef data serializer for ChronicleMap. Modified from ...
  • Field Summary

    Fields inherited from interface net.openhft.chronicle.wire.ReadMarshallable

    DISCARD

    Fields inherited from interface net.openhft.chronicle.wire.WriteMarshallable

    EMPTY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.openhft.chronicle.bytes.RandomDataInput
     
    net.openhft.chronicle.hash.serialization.DataAccess<org.apache.lucene.util.BytesRef>
     
    org.apache.lucene.util.BytesRef
    get()
     
    net.openhft.chronicle.hash.Data<org.apache.lucene.util.BytesRef>
    getData(@NotNull org.apache.lucene.util.BytesRef instance)
     
    org.apache.lucene.util.BytesRef
    getUsing(@Nullable org.apache.lucene.util.BytesRef using)
     
    long
     
    void
    readMarshallable(@NotNull net.openhft.chronicle.wire.WireIn wireIn)
     
    long
     
    void
     
    void
    writeMarshallable(@NotNull net.openhft.chronicle.wire.WireOut wireOut)
     

    Methods inherited from class net.openhft.chronicle.hash.AbstractData

    equals, hashCode, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.openhft.chronicle.bytes.CommonMarshallable

    usesSelfDescribingMessage

    Methods inherited from interface net.openhft.chronicle.hash.Data

    dataEquals, dataHashCode, dataToString, equivalent, hash, writeTo

    Methods inherited from interface net.openhft.chronicle.wire.Marshallable

    $fieldInfoMap, $fieldInfos, className, copyTo, deepCopy, getField, getLongField, mergeToMap, reset, setField, setLongField

    Methods inherited from interface net.openhft.chronicle.wire.ReadMarshallable

    unexpectedField

    Methods inherited from interface net.openhft.chronicle.wire.WriteMarshallable

    binaryWireSize, writeValue
  • Constructor Details

    • BytesRefDataAccess

      public BytesRefDataAccess()
  • Method Details

    • bytes

      public net.openhft.chronicle.bytes.RandomDataInput bytes()
      Specified by:
      bytes in interface net.openhft.chronicle.hash.Data<org.apache.lucene.util.BytesRef>
    • offset

      public long offset()
      Specified by:
      offset in interface net.openhft.chronicle.hash.Data<org.apache.lucene.util.BytesRef>
    • size

      public long size()
      Specified by:
      size in interface net.openhft.chronicle.hash.Data<org.apache.lucene.util.BytesRef>
    • get

      public org.apache.lucene.util.BytesRef get()
      Specified by:
      get in interface net.openhft.chronicle.hash.Data<org.apache.lucene.util.BytesRef>
    • getUsing

      public org.apache.lucene.util.BytesRef getUsing(@Nullable @Nullable org.apache.lucene.util.BytesRef using)
      Specified by:
      getUsing in interface net.openhft.chronicle.hash.Data<org.apache.lucene.util.BytesRef>
    • getData

      public net.openhft.chronicle.hash.Data<org.apache.lucene.util.BytesRef> getData(@NotNull @NotNull org.apache.lucene.util.BytesRef instance)
      Specified by:
      getData in interface net.openhft.chronicle.hash.serialization.DataAccess<org.apache.lucene.util.BytesRef>
    • uninit

      public void uninit()
      Specified by:
      uninit in interface net.openhft.chronicle.hash.serialization.DataAccess<org.apache.lucene.util.BytesRef>
    • copy

      public net.openhft.chronicle.hash.serialization.DataAccess<org.apache.lucene.util.BytesRef> copy()
      Specified by:
      copy in interface net.openhft.chronicle.hash.serialization.StatefulCopyable<net.openhft.chronicle.hash.serialization.DataAccess<org.apache.lucene.util.BytesRef>>
    • writeMarshallable

      public void writeMarshallable(@NotNull @NotNull net.openhft.chronicle.wire.WireOut wireOut)
      Specified by:
      writeMarshallable in interface net.openhft.chronicle.wire.Marshallable
      Specified by:
      writeMarshallable in interface net.openhft.chronicle.wire.WriteMarshallable
    • readMarshallable

      public void readMarshallable(@NotNull @NotNull net.openhft.chronicle.wire.WireIn wireIn)
      Specified by:
      readMarshallable in interface net.openhft.chronicle.wire.Marshallable
      Specified by:
      readMarshallable in interface net.openhft.chronicle.wire.ReadMarshallable