Class StreamsDocument

  • All Implemented Interfaces:
    java.lang.Cloneable, java.lang.Iterable<java.util.Map.Entry<java.lang.String,​org.ojai.Value>>, java.util.Map<java.lang.String,​java.lang.Object>, org.ojai.Container, org.ojai.Document, org.ojai.JsonString, org.ojai.Value

    public class StreamsDocument
    extends com.mapr.db.rowcol.DBDocumentImpl
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface org.ojai.Value

        org.ojai.Value.Type
    • Field Summary

      • Fields inherited from class com.mapr.db.rowcol.KeyValue

        ArrayIndexTypeMask, ArrayIndexTypeShift, IsArrayElementMask, IsArrayElementShift, IsRootMask, IsRootShift, objValue, opType, primValue, type_
      • Fields inherited from interface org.ojai.Value

        TAG_BINARY, TAG_BYTE, TAG_DATE, TAG_DECIMAL, TAG_FLOAT, TAG_INT, TAG_INTERVAL, TAG_LONG, TAG_SHORT, TAG_TIME, TAG_TIMESTAMP, TYPE_CODE_ARRAY, TYPE_CODE_BINARY, TYPE_CODE_BOOLEAN, TYPE_CODE_BYTE, TYPE_CODE_DATE, TYPE_CODE_DECIMAL, TYPE_CODE_DOUBLE, TYPE_CODE_FLOAT, TYPE_CODE_INT, TYPE_CODE_INTERVAL, TYPE_CODE_LONG, TYPE_CODE_MAP, TYPE_CODE_NULL, TYPE_CODE_SHORT, TYPE_CODE_STRING, TYPE_CODE_TIME, TYPE_CODE_TIMESTAMP
    • Constructor Summary

      Constructors 
      Constructor Description
      StreamsDocument​(java.lang.String rowIdStr, int rowPartition, java.lang.String rowTopic, long rowOffset, java.lang.String producer, org.ojai.Document rowMsgDoc, int indexInRow, java.util.List<java.lang.Integer> projectedPathIds)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<java.lang.Integer> getProjectionIdList​(java.util.List<org.ojai.FieldPath> ps)  
      int size()  
      • Methods inherited from class com.mapr.db.rowcol.DBDocumentImpl

        asJsonString, asJsonString, asMap, asReader, asReader, asReader, clear, containsKey, containsValue, delete, delete, deserializeFromRowCol, empty, entrySet, equals, get, getBinary, getBinary, getBoolean, getBoolean, getBooleanObj, getBooleanObj, getByte, getByte, getByteObj, getByteObj, getCachedBuffers, getControlInfo, getControlInfo, getDate, getDate, getDecimal, getDecimal, getDOMFromCachedBuffer, getDouble, getDouble, getDoubleObj, getDoubleObj, getFloat, getFloat, getFloatObj, getFloatObj, getId, getIdAsString, getIdBinary, getIdString, getIndex, getInt, getInt, getInterval, getInterval, getIntObj, getIntObj, getJsonPathMap, getKeyValue, getKeyValue, getList, getList, getLong, getLong, getLongObj, getLongObj, getMap, getMap, getNeedDOMStruct, getShort, getShort, getShortObj, getShortObj, getString, getString, getStringWithTs, getTime, getTime, getTimestamp, getTimestamp, getUniqueValues, getValue, getValue, hashCode, insertKeyValue, isEmpty, isReadOnly, iterator, keySet, put, putAll, remove, serializeToRowCol, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setArray, setArray, setArray, setArray, setArray, setArray, setArray, setArray, setArray, setArray, setArray, setArray, setArray, setArray, setArray, setArray, setArray, setArray, setCachedBuffer, setId, setId, setId, setId, setMapOnDemand, setNull, setNull, setRecursiveNonDefaultColumnFamily, setSerializedJson, setSerializedJson, shallowCopy, toJavaBean, toString, toStringWithTimestamp, values
      • Methods inherited from class com.mapr.db.rowcol.KeyValueWithTS

        clone, equals, updateChecksumKeyValue, updateChecksumPrimaryType
      • Methods inherited from class com.mapr.db.rowcol.KeyValue

        checkType, getArrayIndexType, getBinary, getBoolean, getByte, getCFRootId, getDate, getDateAsInt, getDecimal, getDouble, getFloat, getInt, getInterval, getIntervalAsLong, getList, getLong, getMap, getObject, getOpType, getOrderOfField, getPrimValue, getRecord, getShort, getString, getTime, getTimeAsInt, getTimeDescriptor, getTimestamp, getTimestampAsLong, getType, isArrayElement, isContainerType, isPartOfNonDefaultColumnFamily, isRoot, isRootOfColumnFamily, setArrayIndex, setArrayIndexType, setCFRootId, setIsArrayElement, setIsRoot, setObjValue, setOpTypeAndFlags, setOrderOfField, setPartOfNonDefaultColumnFamily, setPrimValue, setRootFlags, setRootOfColumnFamily, toString, valueToString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
    • Constructor Detail

      • StreamsDocument

        public StreamsDocument​(java.lang.String rowIdStr,
                               int rowPartition,
                               java.lang.String rowTopic,
                               long rowOffset,
                               java.lang.String producer,
                               org.ojai.Document rowMsgDoc,
                               int indexInRow,
                               java.util.List<java.lang.Integer> projectedPathIds)
    • Method Detail

      • getProjectionIdList

        public static java.util.List<java.lang.Integer> getProjectionIdList​(java.util.List<org.ojai.FieldPath> ps)
      • size

        public int size()
        Specified by:
        size in interface org.ojai.Container
        Specified by:
        size in interface org.ojai.Document
        Specified by:
        size in interface java.util.Map<java.lang.String,​java.lang.Object>
        Overrides:
        size in class com.mapr.db.rowcol.DBDocumentImpl