Package org.solbase.indexer.writable

Examples of org.solbase.indexer.writable.TermDocMetadataWritable


      mapWritable.put(new BytesWritable(Bytes.toBytes("doc")), docWritable);

      for (TermDocMetadata metadata : metadatas) {
        byte[] key = metadata.getFieldTermKey();
        ByteBuffer buf = metadata.serialize();
        TermDocMetadataWritable writable = new TermDocMetadataWritable(docId, Bytes.toBytes(buf), key);
        mapWritable.put(new BytesWritable(key), writable);
      }
      context.write(new BytesWritable(checksum), mapWritable);
    } catch (InterruptedException e) {
      e.printStackTrace();
View Full Code Here


            counter++;

          } else if (wrt instanceof TermDocMetadataWritable) {
            // gather all of docs given field key (field/value)
            TermDocMetadataWritable metadata = (TermDocMetadataWritable) wrt;

            // convert key to byte array
            // byte[] fieldTermKey = key.getBytes();
            byte[] termValue = metadata.getTermDocMetadata();
            _key = metadata.getFieldTermKey();

            int docId = metadata.getDocId();

            Put put = null;

            switch (TermDocMetadataLoader.storageType) {
            case KEY_ONLY: {
View Full Code Here

TOP

Related Classes of org.solbase.indexer.writable.TermDocMetadataWritable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.