예제 #1
0
 @Override
 public void readFrom(StreamInput in) throws IOException {
   readFrom(
       in,
       InternalSearchHits.streamContext()
           .streamShardTarget(InternalSearchHits.StreamContext.ShardTargetType.STREAM));
 }
예제 #2
0
 public static InternalSearchHit readSearchHit(
     StreamInput in, InternalSearchHits.StreamContext context) throws IOException {
   InternalSearchHit hit = new InternalSearchHit();
   hit.readFrom(in, context);
   return hit;
 }